Error: ENOENT: no such file or directory, open '/root/.code-server/globalStorage/state.json'
See original GitHub issueDebian Buster x64, using Docker
docker run -p 4141:8443 -v /media/codeserver:/root/project codercom/code-server code-server --allow-http --no-auth
INFO WebSocket opened / {"client":1,"ip":"192.168.1.10"}
INFO Created data directory
INFO WebSocket closed / {"client":1,"code":1001}
INFO WebSocket opened / {"client":2,"ip":"192.168.1.10"}
INFO Created data directory
INFO WebSocket closed / {"client":2,"code":1001}
INFO WebSocket opened / {"client":3,"ip":"192.168.1.10"}
INFO Created data directory
INFO WebSocket closed / {"client":3,"code":1006}
fs.js:646
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open '/root/.code-server/globalStorage/state.json'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.writeFileSync (fs.js:1299:33)
at IncomingMessage.e.on (/usr/local/bin/code-server:557:107020)
at emitNone (events.js:106:13)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Error: ENOENT: no such file or directory, open '. /file.json' #9
It cannot seem to find the files which are there. I was able to require the file I needed as js with the...
Read more >How to resolve Nodejs: Error: ENOENT: no such file or directory
Your app is expecting to find a file at /home/embah/node/nodeapp/config/config.json but that file does not exist (which is what ENOENT ...
Read more >no such file or directory, open \package.json install bootstrap ...
✓ Solved: npm WARN saveError ENOENT : no such file or directory, open \package. json install bootstrap.
Read more >ENOENT No Such File or Directory Open - YouTube
In This Video We Will See How to Fix npm ERR Code ENOENT npm ERR syscall Open Error or ENOENT No Such File...
Read more >no such file or directory, open '/usr/app/package.json' CI error ...
as you see i'm already wrote COPY package*.json /usr/app/ when i'm try to run docker-compose run bona_api ls it only returns node_modules.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@coderasher I restarted the docker command and it seemed to run without crashing the second time
Latest release should fix this.