question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: ENOENT: no such file or directory, open '/root/.code-server/globalStorage/state.json'

See original GitHub issue

Debian 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:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nol166commented, Mar 12, 2019

@coderasher I restarted the docker command and it seemed to run without crashing the second time

0reactions
code-ashercommented, Apr 17, 2019

Latest release should fix this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found