Skip to content

muti user can't run at linux [EEXIST: file already exists, mkdir '/tmp/opencode'] #50259

Closed as not planned

Description

@hewm2008

Description

see follow:

Installing opencode version: 1.18.31

Image

-rw-rw-r-- 1 liqg liqg 0 Sep 21 06:10 /tmp/opencode
but i am an other user, can't mkdir -p the same Dir at the same time

Plugins

No response

OpenCode version

1.18.31

Steps to reproduce

repeat~

Screenshot and/or share link

above

Operating System

linux

Terminal

opencode

Activity

  1. hewm2008 commented on Sep 21, 2026

    @hewm2008
    Author

    mkdir -p "$HOME/.tmp"
    TMPDIR="$HOME/.tmp" opencode

    done

  2. Shalin-Shah-2002 commented on Oct 3, 2026

    @Shalin-Shah-2002

    I reproduced this (a regular file at $TMPDIR/opencode makes startup fail with this exact EEXIST) and opened a fix: #52973. The tmp directory is now per-user (opencode-<uid> on POSIX) instead of one shared /tmp/opencode.

  3. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions