ENOENT: no such file or directory, open '/root/.code-server/Backups/workspaces.json'
code-serverversion: v1.31.1-100- OS Version: Ubuntu 18.10
Steps to Reproduce
- use docker to start code-server, wait a while
- and you will see this error:
ERROR SHARED stderr {"data":"Uncaught Exception: Error: ENOENT: no such file or directory, open '/root/.code-server/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/root/.code-server/Backups/workspaces.json'\n at Timeout.eval [as _onTimeout] (eval at exports.requireModule (/usr/local/bin/code-server:468:27336), <anonymous
>:76664:31)\n at ontimeout (timers.js:498:11)\n at tryOnTimeout (timers.js:323:5)\n at Timer.listOnTimeout (timers.js:
290:5)\n"}
it cannot be just empty file. try to put the contents that from my previous comment.
@yusef-ho try running mkdir -p /home/yusef/.code-server/User/workspaceStorage
it cannot be just empty file. try to put the contents that from my previous comment.
@tunnckoCore it's not an empty and it is as your comment of content.
@yusef-ho try running
mkdir -p /home/yusef/.code-server/User/workspaceStorage@kylecarbs yes, i did this before seeing reply, it worked perfectly, thanks
Just wanted to note that it is working for me on a fresh install via the binary now as well. Without any fooling around with folders or arguments.
This is the error I am currently getting on google cloud platform, with both Ubuntu 16 and 18
INFO Started (click the link below to open):
INFO http://localhost:80/
INFO
INFO Starting shared process [1/5]...
INFO Connected to shared process
WARN Uncaught Exception: Error: Unexpected end of JSON input
SyntaxError: Unexpected end of JSON input
at JSON.parse (
@okabamac what version/release of the binary are you running?
@Multishifties 1.691-vsc1.33.0
@Multishifties I also tried with 1.691-vsc1.33.0 released 14 hours ago and I am having the unexpected end of json input error I moved code-server to my /bin folder
@okabamac what version/release of the binary are you running?
1.691-vsc1.33.0
I pushed a commit which should resolve the JSON message, but it doesn't cause any issues so you can safely ignore it until the next release.
@code-asher OK that will be amazing