Skip to content

ENOSPC: no space left on device #55186

Closed as duplicate
Closed as duplicate

Description

@AnthoniusHendriyanto

Description

The OpenCode TUI crashed with an unexpected error.

Error: ENOSPC: no space left on device, watch '/home/anthonius/.config/opencode'

Stack trace:

Error: ENOSPC: no space left on device, watch '/home/anthonius/.config/opencode'
    at watch (unknown)
    at new FSWatcher (internal:fs/watch:101:31)
    at watch (internal:fs/watch:172:23)
    at e$e (/$bunfs/root/chunk-zyhmjtrm.js:3:55127)
    at qi (/$bunfs/root/chunk-ar23td3k.js:2:6895)
    at get (/$bunfs/root/chunk-ar23td3k.js:2:17796)
    at children (/$bunfs/root/chunk-x9rnes4v.js:2590:3713)
    at <anonymous> (/$bunfs/root/chunk-ar23td3k.js:2:14476)
    at Ve (/$bunfs/root/chunk-ar23td3k.js:2:9872)
    at K (/$bunfs/root/chunk-ar23td3k.js:2:9653)

Plugins

graphify, ponytail

OpenCode version

2.0.28

Steps to reproduce

I'm not sure how it usually works, but when I try to open OpenCode again, this is what happens.

I'm also not sure if it's related to storage, since I still have plenty of free space on my laptop.

Screenshot and/or share link

Image

Operating System

Ubuntu 24.04.4 LTS / Linux 6.11.0-29-generic (x64)

Terminal

xterm-256color / Tilix

Activity

  1. opencode-agent commented on Oct 13, 2026

    @opencode-agent
    Contributor

    Thanks for the report! I think this is a duplicate of #52776. In both, the TUI crashes at startup while it sets up a watch on ~/.config/opencode to reload config changes, and Linux refuses the watch.

    The error says "no space left on device", but here it usually doesn't mean your disk is full. It means your user has run out of inotify watches (fs.inotify.max_user_watches). Every program you run shares that limit, including editors, language servers and other file watchers. A fix that stops this from crashing the TUI is proposed in #52788.

    Until that lands, raising the limit should let OpenCode start:

    sudo sysctl fs.inotify.max_user_watches=524288
    # to keep the setting after a reboot:
    echo 'fs.inotify.max_user_watches=524288' | sudo tee /etc/sysctl.d/99-inotify.conf

    Possible duplicates and related issues, most likely first:

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different. Please follow #52776 for updates.

  2. opencode-agent commented on Oct 14, 2026

    @opencode-agent
    Contributor

    I haven't heard back, so I'm closing this as a duplicate of #52776. It's the same crash: the TUI can't set up its watch on ~/.config/opencode because your user has run out of inotify watches. That's why your disk still has free space. Please follow #52776 for updates. A fix is proposed in #52788.

    Until it lands, raising fs.inotify.max_user_watches should let OpenCode start, for example sudo sysctl fs.inotify.max_user_watches=524288. If your problem turns out to be different, reply here and we can reopen it.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions