You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am also getting the same error. I believe I have libseccomp 2.5.3 in my system. Is there any way to debug this error? Any way to print verbose message? Here is my output:
$ opencode --print-logs --log-level DEBUG run hello
Error: Unexpected error
disk I/O error
@chrissound, thank you for the information. Yes, $HOME works.
Based on your suggestion, I found that setting the OpenCode database location (using the OPENCODE_DB environment variable) to a path that is not under a 9p mount works. For example:
OPENCODE_DB=/dir/to/somewhere/opencode.db opencode run hello
Closing this one. The error comes from the environment, not OpenCode: SQLite can't reliably lock its database on a 9p shared filesystem. The workaround is to put the database on a local disk, either with the OPENCODE_DB environment variable or by pointing $HOME at a non-9p location.
If you see disk I/O error with the database on a local filesystem, please open a new issue.
Activity
ericzhan-ops commentedon Jul 3, 2026
Upgrade host libseccomp package >= 2.5.2 version
jychoi-hpc commentedon Aug 12, 2026
I am also getting the same error. I believe I have libseccomp 2.5.3 in my system. Is there any way to debug this error? Any way to print verbose message? Here is my output:
Using opencode version 1.18.16:
chrissound commentedon Aug 12, 2026
it's likely due to running on a vm with a 9p shared filesystem...
jychoi-hpc commentedon Aug 12, 2026
Thanks for the info. That makes sense. I’m trying to run this within a SLURM job allocation on Frontier at ORNL. Is there a workaround for this?
chrissound commentedon Aug 12, 2026
you can try set $HOME to a place that isn't under a 9p mount
jychoi-hpc commentedon Aug 13, 2026
@chrissound, thank you for the information. Yes, $HOME works.
Based on your suggestion, I found that setting the OpenCode database location (using the OPENCODE_DB environment variable) to a path that is not under a 9p mount works. For example:
neriousy commentedon Oct 1, 2026
Closing this one. The error comes from the environment, not OpenCode: SQLite can't reliably lock its database on a 9p shared filesystem. The workaround is to put the database on a local disk, either with the
OPENCODE_DBenvironment variable or by pointing$HOMEat a non-9p location.If you see
disk I/O errorwith the database on a local filesystem, please open a new issue.chrissound commentedon Oct 1, 2026
Ideally you should inform the user of this limitation rather than showing a generic error and having them needing to find this exact issue..
neriousy commentedon Oct 1, 2026
Yeah you're right - i will try to look into it how to better show the error, that one is probably a generic sqlite error returned from upstream