code-server icon indicating copy to clipboard operation
code-server copied to clipboard

ENOENT: no such file or directory, open '/root/.code-server/Backups/workspaces.json'

Open wwbmmm opened this issue 7 years ago • 71 comments

  • code-server version: v1.31.1-100
  • OS Version: Ubuntu 18.10

Steps to Reproduce

  1. use docker to start code-server, wait a while
  2. 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"}

wwbmmm avatar Mar 08 '19 04:03 wwbmmm

it cannot be just empty file. try to put the contents that from my previous comment.

tunnckoCore avatar Apr 01 '19 11:04 tunnckoCore

@yusef-ho try running mkdir -p /home/yusef/.code-server/User/workspaceStorage

kylecarbs avatar Apr 01 '19 13:04 kylecarbs

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

yusef-ho avatar Apr 01 '19 19:04 yusef-ho

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.

ndom91 avatar Apr 04 '19 09:04 ndom91

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 () at pfs_1.readFile.then.contents (/home/travis/build/codercom/code-server/packages/server/build/boo tstrap-fork.js.gz:77277:45) at at Timeout.setTimeout [as _onTimeout] (/home/travis/build/codercom/code-server/packages/server/bui ld/bootstrap-fork.js.gz:52540:31) at ontimeout (timers.js:498:11) at tryOnTimeout (timers.js:323:5) at Timer.listOnTimeout (timers.js:290:5) I have tried deleted and created new vms but its not working

okabamac avatar Apr 05 '19 04:04 okabamac

@okabamac what version/release of the binary are you running?

MichaelDesantis avatar Apr 05 '19 15:04 MichaelDesantis

@Multishifties 1.691-vsc1.33.0

okabamac avatar Apr 07 '19 04:04 okabamac

@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 avatar Apr 07 '19 05:04 okabamac

@okabamac what version/release of the binary are you running?

1.691-vsc1.33.0

okabamac avatar Apr 07 '19 17:04 okabamac

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 avatar Apr 08 '19 17:04 code-asher

@code-asher OK that will be amazing

okabamac avatar Apr 09 '19 17:04 okabamac