Skip to content

Error: Unexpected error disk I/O error #32571

Closed as not planned
Closed as not planned

Description

@chrissound

Description

[chris@worksoul:/vmTmp/git-repos/DevDashboard/1UGMsy6K]$ opencode --log-level DEBUG debug config
Error: Unexpected error

disk I/O error

[chris@worksoul:/vmTmp/git-repos/DevDashboard/1UGMsy6K]$ opencode --version
1.17.7

Plugins

No response

OpenCode version

1.17.7

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Nixos

Terminal

No response

Activity

  1. ericzhan-ops commented on Jul 3, 2026

    @ericzhan-ops

    Upgrade host libseccomp package >= 2.5.2 version

  2. jychoi-hpc commented on Aug 12, 2026

    @jychoi-hpc

    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
    

    Using opencode version 1.18.16:

    $ opencode --version
    1.18.16
    
  3. chrissound commented on Aug 12, 2026

    @chrissound
    Author

    it's likely due to running on a vm with a 9p shared filesystem...

  4. jychoi-hpc commented on Aug 12, 2026

    @jychoi-hpc

    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?

  5. chrissound commented on Aug 12, 2026

    @chrissound
    Author

    you can try set $HOME to a place that isn't under a 9p mount

  6. jychoi-hpc commented on Aug 13, 2026

    @jychoi-hpc

    @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
    
  7. neriousy commented on Oct 1, 2026

    @neriousy
    Member

    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.

  8. chrissound commented on Oct 1, 2026

    @chrissound
    Author

    Ideally you should inform the user of this limitation rather than showing a generic error and having them needing to find this exact issue..

  9. neriousy commented on Oct 1, 2026

    @neriousy
    Member

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions