Skip to content

Discord bot token set - Error: EACCES: permission denied, copyfile '/sandbox/.openclaw/openclaw.json #606

Closed

Description

@heartsiddharth1

Description

Error: EACCES: permission denied, copyfile '/sandbox/.openclaw/openclaw.json.3911.e5b68777-7135-4594-9ec1-0dfd400a4117.tmp' -> '/sandbox/.openclaw/openclaw.json'

Reproduction Steps

get inside the sandbox and then run openclaw onboard and then you can setup the bot token for discord and once you set the channels and discord allowfrom

Error: EACCES: permission denied, copyfile '/sandbox/.openclaw/openclaw.json.3911.e5b68777-7135-4594-9ec1-0dfd400a4117.tmp' -> '/sandbox/.openclaw/openclaw.json'

Environment

Ubuntu Server 24.04 LTS

Debug Output

◇  Configure Discord channels access?
│  Yes
│
◇  Discord channels access
│  Open (allow all channels)
│
◇  Selected channels ────────────────────────────────────────────╮
│                                                                │
│  Discord — very well supported right now. Docs:                │
│  discord  │
│                                                                │
├────────────────────────────────────────────────────────────────╯
Error: EACCES: permission denied, copyfile '/sandbox/.openclaw/openclaw.json.4372.1dfbfaec-f7ec-4615-941e-ae4c452087f4.tmp' -> '/sandbox/.openclaw/openclaw.json'
sandbox@helper:~$

Logs

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Activity

  1. changed the title [-]Discord bot toekn set - Error: EACCES: permission denied, copyfile '/sandbox/.openclaw/openclaw.json[/-] [+]Discord bot token set - Error: EACCES: permission denied, copyfile '/sandbox/.openclaw/openclaw.json[/+] on Mar 21, 2026
  2. zibouddd commented on Mar 21, 2026

    @zibouddd

    same problem

  3. added a commit that references this issue on Mar 22, 2026
    4a82743
  4. itsmeritesh commented on Mar 22, 2026

    @itsmeritesh

    I'm facing this issue on my ubuntu box when I tried installing nemoclaw. Should I wait for the new build? How do I proceed with onboarding?

  5. vietnhatthai commented on Mar 23, 2026

    @vietnhatthai

    Same

  6. elbee-cyber commented on Mar 24, 2026

    @elbee-cyber

    #514 sandbox having write access to this basically singular fail point is a huge security risk, but on the same token, openclaw expects you to write to it after deployment anyway so its a weird trade-off.

    If you want to make openclaw.json writable again you can just comment out 152-156 of the Dockerfile and then nemoclaw destroy and onboard. then every live modification should work fine

    just keep in mind the security risks mentioned in the issue (such as being able to forward the origin and let the internet talk to it) its a weird issue because there is functionally legitimate reason to modify this file but i get what theyre trying to do. for a safer temporary fix i suggest you modify the config to the preset channels and models etc inside the config var before deploying. you could customize it with the json readable and then copy it into the redeployment build which is what i did. hope this helps

  7. thadreber-web commented on Mar 30, 2026

    @thadreber-web

    This is the same root cause as #719 — DAC permissions on /sandbox/.openclaw/ block writes despite the Landlock policy allowing them. See this comment for the root cause analysis and Dockerfile fix.

  8. added
    platform: ubuntu
    integration: discord
    and removed on Mar 30, 2026
  9. kjw3 commented on Apr 9, 2026

    @kjw3
    Contributor

    Working plan update: this issue matches the current sandbox design tension around immutable openclaw.json. NemoClaw now bakes channel config at image build time and does not support runtime repair of /sandbox/.openclaw/openclaw.json from inside the sandbox.

    Planned handling:

    • docs and diagnostics will be updated so openclaw doctor --fix is not treated as the primary repair path for sandbox-baked Discord config
    • we will keep the native messaging design and avoid reintroducing the bridge as the default fix
    • Discord remediation work is proceeding on branch fix/discord-native-remediation alongside the native gateway/proxy investigation

    I’m treating this as a real UX/product bug, but secondary to the gateway/native-path failures. The goal is to make the immutable-config behavior explicit and avoid sending users down a dead-end repair path.

  10. wscurran commented on Apr 13, 2026

    @wscurran
    Contributor

    This is the same EACCES on .openclaw state that was fixed in the onboard and setup flows — see #572 for the full root cause. The fix passes NEMOCLAW_DISABLE_DEVICE_AUTH=1 so the pairing step doesn't block sandbox startup with a permission error. If you're still hitting this on the current version, please reopen with fresh logs.

  11. added theissue type on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    integration: discordplatform: ubuntu

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions