Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wwbmmm opened this issue Mar 8, 2019 · 71 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@wwbmmm
Copy link

wwbmmm commented Mar 8, 2019

  • 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"}
@batobolg
Copy link

batobolg commented Mar 8, 2019

me too

1 similar comment
@edelah
Copy link

edelah commented Mar 8, 2019

me too

@nitishk72
Copy link

I also found this while running on Google cloud

@nhooyr
Copy link
Contributor

nhooyr commented Mar 8, 2019

Please avoid me too comments in favour of using GitHub reactions.

@nhooyr nhooyr added needs-decision bug Something isn't working and removed needs-decision labels Mar 8, 2019
This was referenced Mar 8, 2019
@theriverman
Copy link

I'm getting the very same error in the beginning. Later, when I navigate to the code-server's address in my browser, login with the generated password and mess around in vscode it suddenly crashes.
In order, I did the following actions:

  • open terminal and execute go version then python3 -V
  • created a new folder
  • Hit File -> Open Folder and navigated to one of the newly created folders
  • crash

Traceback:

root@dev:~/native-code-server/bin# ./code-server -d /root/native-code-server/projects --allow-http
INFO  code-server v1.31.1-100
INFO  Additional documentation: http://github.com/codercom/code-server
INFO  Initializing {"data-dir":"/root/native-code-server/projects","working-dir":"/root/native-code-server/bin","log-dir":"/root/native-code-server/projects/logs/20190308233649456"}
INFO  Starting shared process [1/5]...
INFO  Starting webserver... {"host":"0.0.0.0","port":8443}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://coder.com/docs
INFO
INFO  Password: ************************
INFO
INFO  Started (click the link below to open):
INFO  http://localhost:8443/
INFO
INFO  Connected to shared process
ERROR SHARED stderr {"data":"Uncaught Exception:  Error: ENOENT: no such file or directory, open '/root/native-code-server/projects/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/root/native-code-server/projects/Backups/workspaces.json'\n    at Timeout.eval [as _onTimeout] (eval at exports.requireModule (/root/native-code-server/bin/code-server:468:27371), <anonymous>:71445:31)\n    at ontimeout (timers.js:475:11)\n    at tryOnTimeout (timers.js:310:5)\n    at Timer.listOnTimeout (timers.js:270:5)\n"}
INFO  WebSocket opened / {"client":1,"ip":"127.0.0.1"}
INFO  Created data directory
INFO  WebSocket closed / {"client":1,"code":1001}
INFO  WebSocket opened / {"client":2,"ip":"127.0.0.1"}
INFO  Created data directory
INFO  WebSocket closed / {"client":2,"code":1006}
INFO  WebSocket opened / {"client":3,"ip":"127.0.0.1"}
INFO  Created data directory
internal/child_process.js:323
    throw errnoException(err, 'spawn');
    ^

Error: spawn ENOMEM
    at _errnoException (util.js:1024:11)
    at ChildProcess.spawn (internal/child_process.js:323:11)
    at Object.exports.spawn [as _spawn] (child_process.js:502:9)
    at t.async (/root/native-code-server/bin/code-server:716:35021)
    at e.exports (/root/native-code-server/bin/code-server:716:34522)
    at e (/root/native-code-server/bin/code-server:716:33324)
    at Timeout.c [as _onTimeout] (/root/native-code-server/bin/code-server:716:33617)
    at ontimeout (timers.js:475:11)
    at tryOnTimeout (timers.js:310:5)
    at Timer.listOnTimeout (timers.js:270:5)

root@prod:~/native-code-server/bin# ls -lh /root/native-code-server/projects/Backups/workspaces.json
ls: cannot access '/root/native-code-server/projects/Backups/workspaces.json': No such file or directory

@JasonLiuLiuLiuLiu
Copy link

I get same error at tecent clould centos 7.4 64 ,Docker version 18.09.3, build 774a1f4
INFO code-server development
INFO Additional documentation: http://github.com/codercom/code-server
INFO Initializing {"data-dir":"/root/.code-server","working-dir":"/root/project","log-dir":"/root/.code-server/logs/20190309021032283"}
INFO Starting shared process [1/5]...
INFO Starting webserver... {"host":"0.0.0.0","port":8443}
WARN No certificate specified. This could be insecure.
WARN Documentation on securing your setup: https://coder.com/docs
WARN Launched without authentication.
INFO
INFO Started (click the link below to open):
INFO http://localhost:8443/
INFO
INFO Connected to shared process
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:27625), :94976:31)\n at ontimeout (timers.js:498:11)\n at tryOnTimeout (timers.js:323:5)\n at Timer.listOnTimeout (timers.js:290:5)\n"}

Thanks~

@northfoxz
Copy link

northfoxz commented Mar 9, 2019

+1
running both on binary version and Dockerfile gives the same result.
Ubuntu 16.04

@ryavit
Copy link

ryavit commented Mar 9, 2019

I get same error in Ubuntu 16.04 on AWS clouds

ubuntu@ip-172-31-25-334:~/coder$ sudo ./code-server -p 80
INFO code-server v1.0.0
INFO Additional documentation: http://github.com/codercom/code-server
INFO Initializing {"data-dir":"/home/ubuntu/.code-server","working-dir":"/home/ubuntu/coder","log-dir":"/home/ubuntu/.code-server/logs/20190309104304890"}
INFO Starting shared process [1/5]...
INFO Starting webserver... {"host":"0.0.0.0","port":80}
WARN No certificate specified. This could be insecure.
WARN Documentation on securing your setup: https://coder.com/docs
INFO
INFO Password: fl4u1A3chFfj
INFO
INFO Started (click the link below to open):
INFO http://localhost:80/
INFO
INFO Connected to shared process
ERROR SHARED stderr {"data":"Uncaught Exception: Error: ENOENT: no such file or directory, open '/home/ubuntu/.code-server/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/home/ubuntu/.code-server/Backups/workspaces.json'\n at Timeout.eval [as _onTimeout] (eval at exports.requireModule (/home/ubuntu/coder/code-server:468:27371), :71434:31)\n at ontimeout (timers.js:475:11)\n at tryOnTimeout (timers.js:310:5)\n at Timer.listOnTimeout (timers.js:270:5)\n"}

@zanhk
Copy link

zanhk commented Mar 9, 2019

Debian 9 64 bit (fresh installation)


root@xxx:~/code-server# ./code-server --cert /etc/letsencrypt/live/xxx/cert.pem --cert-key /etc/letsencrypt/live/xxx/privkey.pem -d /home/vscode -p 443
INFO  code-server v1.0.0
INFO  Additional documentation: http://github.com/codercom/code-server
INFO  Initializing {"data-dir":"/home/vscode","working-dir":"/root/code-server","log-dir":"/home/vscode/logs/20190309121854195"}
INFO  Starting webserver... {"host":"0.0.0.0","port":443}
INFO
INFO  Password: 4ecDQQlGR7Hb
INFO
INFO  Started (click the link below to open):
INFO  http://localhost:443/
INFO
INFO  Starting shared process [1/5]...
INFO  Connected to shared process
INFO  WebSocket opened / {"client":1,"ip":"xxx"}
INFO  Created data directory
ERROR SHARED stderr {"data":"Uncaught Exception:  Error: ENOENT: no such file or directory, open '/home/vscode/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/home/vscode/Backups/workspaces.json'\n    at Timeout.eval [as _onTimeout] (eval at exports.requireModule (/root/code-server/code-server:468:27371), <anonymous>:71434:31)\n    at ontimeout (timers.js:475:11)\n    at tryOnTimeout (timers.js:310:5)\n    at Timer.listOnTimeout (timers.js:270:5)\n"}
INFO  WebSocket closed / {"client":1,"code":1001}
INFO  WebSocket opened / {"client":2,"ip":"xxx"}
INFO  Created data directory


@gorbypark
Copy link

gorbypark commented Mar 10, 2019

I can confirm this happens in Container Linux/CoreOS stable as well, running on Digital Ocean (as well as Debian 9.7 as other have reported).

@wasd96040501
Copy link

I got same error in Ubuntu 16.04 on aliyun cloud

root@xxx:~/workdir# docker run -t -p 127.0.0.1:8443:8443 -v "${PWD}:/root/project" codercom/code-server --allow-http --no-auth
INFO  code-server development
INFO  Additional documentation: http://github.com/codercom/code-server
INFO  Initializing {"data-dir":"/root/.local/share/code-server","working-dir":"/root/project","log-dir":"/root/.cache/code-server/logs/20190311023801696"}
INFO  Starting shared process [1/5]...
INFO  Starting webserver... {"host":"0.0.0.0","port":8443}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://coder.com/docs
WARN  Launched without authentication.
INFO   
INFO  Started (click the link below to open):
INFO  http://localhost:8443/
INFO   
INFO  Connected to shared process
ERROR SHARED stderr {"data":"Uncaught Exception:  Error: ENOENT: no such file or directory, open '/root/.local/share/code-server/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/root/.local/share/code-server/Backups/workspaces.json'\n    at Timeout.setTimeout [as _onTimeout] (eval at exports.requireModule (/usr/local/bin/code-server:468:27625), <anonymous>:67388:31)\n    at ontimeout (timers.js:498:11)\n    at tryOnTimeout (timers.js:323:5)\n    at Timer.listOnTimeout (timers.js:290:5)\n"}

@juliosegarra
Copy link

juliosegarra commented Mar 11, 2019

Same error on Ubuntu 18.04 Digital Ocean standard vps while just trying to run binary version.

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 (/root/code-server-1.31.1-100-linux-x64/code-server:468:27371), <anonymous>:71445:31)\n at ontimeout (timers.js:475:11)\n at tryOnTimeout (timers.js:310:5)\n at Timer.listOnTimeout (timers.js:270:5)\n"}

@liweis
Copy link

liweis commented Mar 12, 2019

Same error on Ubuntu 16.04 and no file from data directory can be seen in vs code's explorer

@xuemind
Copy link

xuemind commented Mar 12, 2019

Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-1030-azure x86_64) Windows Azure Virtual Machine
code-server-1.31.1-100-linux-x64

ERROR SHARED stderr {"data":"Uncaught Exception:  Error: ENOENT: no such file or directory, open '/home/<user>/.code-server/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/home/<user>/.code-server/Backups/workspaces.json'\n    at Timeout.eval [as _onTimeout] (eval at exports.requireModule (/home/<user>/code-server-1.31.1-100-linux-x64/code-server:468:27371), <anonymous>:71445:31)\n    at ontimeout (timers.js:475:11)\n    at tryOnTimeout (timers.js:310:5)\n    at Timer.listOnTimeout (timers.js:270:5)\n"}
INFO  WebSocket opened / {"client":1,"ip":"<hoster_ip>"}
INFO  Created data directory
internal/child_process.js:323
    throw errnoException(err, 'spawn');
    ^
Error: spawn ENOMEM
    at _errnoException (util.js:1024:11)
    at ChildProcess.spawn (internal/child_process.js:323:11)
    at Object.exports.spawn [as _spawn] (child_process.js:502:9)
    at t.async (/home/<user>/code-server-1.31.1-100-linux-x64/code-server:716:35021)
    at e.exports (/home/<user>/code-server-1.31.1-100-linux-x64/code-server:716:34522)
    at e (/home/<user>/code-server-1.31.1-100-linux-x64/code-server:716:33324)
    at Timeout.c [as _onTimeout] (/home/<user>/code-server-1.31.1-100-linux-x64/code-server:716:33617)
    at ontimeout (timers.js:475:11)
    at tryOnTimeout (timers.js:310:5)
    at Timer.listOnTimeout (timers.js:270:5)

@makamekm
Copy link

makamekm commented Mar 12, 2019

I managed to make it work with specifying -d like this:

./code-server ./projects/<myproject> --allow-http --no-auth -d /Users/<username>/.code-server

But I still see the same error in the console.

@coadler
Copy link
Contributor

coadler commented Mar 12, 2019

@xuemind seems like your error is caused because the VM ran out of memory. You might need to add a gb or two of swap so the binary is able to boot properly without running our of memory. I was able to get it running on a GCP micro instance with 600mb of memory like this

@ndom91
Copy link

ndom91 commented Mar 12, 2019

Same here on Ubuntu 18.10 server via the binary.

However by specifying -d /home/[user]/.code-server and manually creating /home/[user]/.code-server/Backups/workspaces.json it seems to have worked!

@cstoddart
Copy link

@ndom91 what does your workspaces.json file look like? I'm having trouble finding an example and am receiving a cannot read property 'map' of undefined error with an empty workspaces.json file.

@hexlo
Copy link

hexlo commented Mar 12, 2019

I get this error when i try to run the binary on Ubuntu Server 18.04:

INFO code-server v1.0.0
INFO Additional documentation: http://github.com/codercom/code-server
INFO Initializing {"data-dir":"/home/cj/.code-server","working-dir":"/var/www/dataandlogic.com","log-dir":"/home/cj/.code-server/logs/20190312210351837"}
INFO Starting webserver... {"host":"0.0.0.0","port":8443}
WARN No certificate specified. This could be insecure.
WARN Documentation on securing your setup: https://coder.com/docs
WARN Launched without authentication.
INFO
INFO Started (click the link below to open):
INFO http://localhost:8443/
INFO
INFO Starting shared process [1/5]...
INFO Connected to shared process

ERROR SHARED stderr {"data":"Uncaught Exception: Error: ENOENT: no such file or directory, open '/home/cj/.code-server/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/home/cj/.code-server/Backups/workspaces.json'\n at Timeout.eval [as _onTimeout] (eval at exports.requireModule (/home/cj/vscode/code-server-1.31.0-20-x86_64-linux/code-server:468:27371), <anonymous>:71434:31)\n at ontimeout (timers.js:475:11)\n at tryOnTimeout (timers.js:310:5)\n at Timer.listOnTimeout (timers.js:270:5)\n"}

I also tried version 1.31.0-100 with same results. When i try to run the docker, it also gives me the same error.

@ndom91
Copy link

ndom91 commented Mar 12, 2019

@ndom91 what does your workspaces.json file look like? I'm having trouble finding an example and am receiving a cannot read property 'map' of undefined error with an empty workspaces.json file.

I just created an empty one, i.e. touch /home/[user]/.code-server/Backups/workspace.json

EDIT: I just looked at it, now that I've run this once or twice, and its still empty haha

@hexlo
Copy link

hexlo commented Mar 13, 2019

@ndom91 I tried creating the Backups folder with an empty workspace.json but now i get this:
ERROR SHARED stderr {"data":"Uncaught Exception: Error: Unexpected end of JSON input\n\nSyntaxError: Unexpected end of JSON input\n at JSON.parse (<anonymous>)\n at pfs_1.readFile.then.contents (eval at exports.requireModule (/home/cj/vscode/code-server/code-server:468:27660), <anonymous>:77277:45)\n at <anonymous>\n at Timeout.setTimeout [as _onTimeout] (eval at exports.requireModule (/home/cj/vscode/code-server/code-server:468:27660), <anonymous>:52540:31)\n at ontimeout (timers.js:498:11)\n at tryOnTimeout (timers.js:323:5)\n at Timer.listOnTimeout (timers.js:290:5)\n"}

I guess i need a proper workspaces.json? What version are you using? Does anyone know whats in that file? Even better, does anyone have a default one that they can share?

@dansou901
Copy link

dansou901 commented Mar 13, 2019

After creating a workspaces.json in the desired directory and filling it with the content

{
        "folders": [
                {
                        "path": "/home/<username_redacted>/code-server/workspace/folders"
                }
        ]
}

I get a new error:

ERROR SHARED stderr {"data":"Uncaught Exception:  Error: Cannot read property 'map' of undefined\n\nTypeError: Cannot read property 'map' of undefined\n    at pfs_1.readFile.then.contents (eval at exports.requireModule (/home/<username_redacted>/code-server/code-server-1.32.0-245-linux-x64/code-server:468:27660), <anonymous>:77278:76)\n    at <anonymous>\n    at Timeout.setTimeout [as _onTimeout] (eval at exports.requireModule (/home/<username_redacted>/code-server/code-server-1.32.0-245-linux-x64/code-server:468:27660), <anonymous>:52540:31)\n    at ontimeout (timers.js:498:11)\n    at tryOnTimeout (timers.js:323:5)\n    at Timer.listOnTimeout (timers.js:290:5)\n"}

@navin-moorthy
Copy link

navin-moorthy commented Mar 28, 2019

Capture
Still getting the same error in Linux Machine 18.04.
Updated to the new release.

@edelah
Copy link

edelah commented Mar 28, 2019

same error, Ubuntu 16.04.5 LTS.
Capture

@jackalcooper
Copy link

it is working now with latest docker image. Thanks!

@boardfish
Copy link

boardfish commented Mar 28, 2019

Not working for me. I'm running using the Docker oneliner behind an nginx reverse proxy. All I get is a black screen.

docker run -t -p 127.0.0.1:5000:8443 -v "${PWD}:/root/project" codercom/code-server code-server --allow-http --no-auth
INFO  code-server development
INFO  Additional documentation: http://github.com/codercom/code-server
INFO  Initializing {"data-dir":"/root/.local/share/code-server","working-dir":"/root/project/code-server","log-dir":"/root/.cache/code-server/logs/20190328155807526"}
INFO  Starting shared process [1/5]...
INFO  Starting webserver... {"host":"0.0.0.0","port":8443}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://coder.com/docs
WARN  Launched without authentication.
INFO
INFO  Started (click the link below to open):
INFO  http://localhost:8443/
INFO
INFO  Connected to shared process
ERROR SHARED stderr {"data":"Uncaught Exception:  Error: ENOENT: no such file or directory, open '/root/.local/share/code-server/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/root/.local/share/code-server/Backups/workspaces.json'\n    at Timeout.setTimeout [as _onTimeout] (/src/packages/server/build/bootstrap-fork.js.gz:56921:31)\n    at ontimeout (timers.js:498:11)\n    at tryOnTimeout (timers.js:323:5)\n    at Timer.listOnTimeout (timers.js:290:5)\n"}

In the browser console, I get this:

GET https://<hostname>/e5b7d1.bundle.js net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)

Pulled the latest tag after @jackalcooper's comment.

@yekai1024
Copy link

Same issue with the latest docker on centos7. Any workaround?

@AnishTiwari
Copy link

Same error on Ubuntu 18.04 Digital Ocean standard vps while just trying to run binary version.

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 (/root/code-server-1.31.1-100-linux-x64/code-server:468:27371), <anonymous>:71445:31)\n at ontimeout (timers.js:475:11)\n at tryOnTimeout (timers.js:310:5)\n at Timer.listOnTimeout (timers.js:270:5)\n"}

Same error on Ubuntu 18.04 Digital Ocean standard vps while just trying to run binary version.

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 (/root/code-server-1.31.1-100-linux-x64/code-server:468:27371), <anonymous>:71445:31)\n at ontimeout (timers.js:475:11)\n at tryOnTimeout (timers.js:310:5)\n at Timer.listOnTimeout (timers.js:270:5)\n"}

Check if the port 8443 is allowed in ufw rules

@jackalcooper
Copy link

For anyone who might be interested. here is the ID of the image I pulled.

codercom/code-server                                           latest              3f11c56fcdda        2 days ago 

@navin-moorthy
Copy link

Capture
Still getting the same error in Linux Machine 18.04.
Updated to the new release.

Sorry for the confusion here, I am able get the code server up and running.
But even after the connection I got the above error in command line.
Despite the error try to access the link.

@tunnckoCore
Copy link

tunnckoCore commented Mar 29, 2019

I have instance with Ubuntu 18.04 (LTS), installed the latest as of today Coder release which is

root@codercom:~/dev/recommended-bump# code-server --version
1.408-vsc1.32.0

And everything is working except that same error, and I'm guessing that's why my integrated terminal is black and cannot see anything?

@coadler
Copy link
Contributor

coadler commented Mar 29, 2019

This error doesn't actually cause any issues. I would suspect the black terminal is caused by something else

@tunnckoCore
Copy link

@coadler for example? It was that why just after fresh machine install and fresh code-server startup. No settings changes or anything. Any ideas to debug it?

@tunnckoCore
Copy link

Aaaaah, heck. Forget it, just realized to try to disable the Brave's Shields blocker :D Sometimes blocks too much, sometimes not enough.

@liupengf12
Copy link

This issue is closed, is not a bug of code-server? I noticed that the code-server running normally, should I just ignore this error for now?

@tunnckoCore
Copy link

tunnckoCore commented Mar 31, 2019

@liupengf12 yes.

edit: Or at least you can add the file with this content

{
  "rootURIWorkspaces": [],
  "folderURIWorkspaces": [],
  "emptyWorkspaceInfos": [],
  "emptyWorkspaces": []
}

It's a default one.

@yusef-ho
Copy link

yusef-ho commented Apr 1, 2019

Same here on Ubuntu 18.10 server via the binary.

However by specifying -d /home/[user]/.code-server and manually creating /home/[user]/.code-server/Backups/workspaces.json it seems to have worked!

@ndom91 hello, i tried your method but then i got the following error

ERROR SHARED stderr {"data":"Uncaught Exception:  Error: ENOENT: no such file or directory, scandir '/home/yusef/.code-server/User/workspaceStorage'\n\nError: ENOENT: no such file or directory, scandir '/home/yusef/.code-server/User/workspaceStorage'\n    at Timeout.setTimeout [as _onTimeout] (/home/travis/build/codercom/code-server/packages/server/build/bootstrap-fork.js.gz:52540:31)\n    at ontimeout (timers.js:498:11)\n    at tryOnTimeout (timers.js:323:5)\n    at Timer.listOnTimeout (timers.js:290:5)\n"}

@InfantAjayVenus
Copy link

I'm having the same issue here. I tried to launch it in DigitalOcean container,
it shows the same error and I couldn't open code-server.

@tunnckoCore
Copy link

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

@kylecarbs
Copy link
Member

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

@yusef-ho
Copy link

yusef-ho commented Apr 1, 2019

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

@ndom91
Copy link

ndom91 commented Apr 4, 2019

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.

@okabamac
Copy link

okabamac commented Apr 5, 2019

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

@MichaelDesantis
Copy link
Contributor

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

@okabamac
Copy link

okabamac commented Apr 7, 2019

@multishifties 1.691-vsc1.33.0

@okabamac
Copy link

okabamac commented Apr 7, 2019

@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
Copy link

okabamac commented Apr 7, 2019

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

1.691-vsc1.33.0

@code-asher
Copy link
Member

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.

@okabamac
Copy link

okabamac commented Apr 9, 2019

@code-asher OK that will be amazing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests