File Lock Conflict: Unable to Create Snapshot Lock File
Resolved 💬 2 comments Opened Jul 16, 2025 by josh-abram Closed Jul 19, 2025
Bug Description
When you launch a second instance of claude, get the following error and claude crashs
: [Error: ENOENT: no such file or directory, stat '/home/joshua/.claude/shell-snapshots/snapshot-bash-1752669055543-4cb4d5.sh.lock'] {
errno: -2,
code: 'ECOMPROMISED',
syscall: 'stat',
path: '/home/joshua/.claude/shell-snapshots/snapshot-bash-1752669055543-4cb4d5.sh.lock'
}
Environment Info
- Platform: linux
- Terminal: cursor
- Version: 1.0.53
- Feedback ID: 72e9051e-b455-4d95-9fe9-65defc6250f2
Errors
[{"error":"Error: 1: 1 [59775:0716/231815.220528:ERROR:ozone_platform_x11.cc(246)] Missing X server or $DISPLAY\n[59775:0716/231815.220576:ERROR:env.cc(257)] The platform failed to initialize. Exiting.\n\n at Lq6 (file:///home/joshua/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1208:5219)\n at async qq6 (file:///home/joshua/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1208:2582)","timestamp":"2025-07-16T13:18:16.937Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗