profile
viewpoint

Ask questionsError: no such file or directory, '/src/packages/server/build/web/favicon.ico'

<!-- Please search existing issues to avoid creating duplicates. --> <!-- All extension-specific issues should be created with the Extension Bug template. -->

  • code-server version: <!-- The version of code-server -->
  • OS Version: Ubuntu Server 16 <!-- OS version, cloud provider, -->

Description

<!-- Describes the problem here -->

When I run code server, everything works and I can connect, but after about 2 minutes (I haven't done anything in this time) I get this error:

Error: ENOENT: no such file or directory, open '/src/packages/server/build/web/favicon.ico'
INFO  WebSocket opened / {"client":1,"ip":"172.17.0.1"}
internal/child_process.js:366
    throw errnoException(err, 'spawn');
    ^

Error: spawn ENOMEM
    at ChildProcess.spawn (internal/child_process.js:366:11)
    at Object.spawn [as _spawn] (child_process.js:538:9)
    at t.async (/src/packages/server/out/cli.js:504:34598)
    at e.exports (/src/packages/server/out/cli.js:504:34099)
    at e (/src/packages/server/out/cli.js:504:32722)
    at Timeout.u [as _onTimeout] (/src/packages/server/out/cli.js:504:33015)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)

Steps to Reproduce

  1. Start code server using docker command
  2. Wait
  3. After about 2 minutes, the following error appears
cdr/code-server

Answer questions caskeep

Maybe helpful

$ code-server --version 1.939-vsc1.33.1

$ cat /etc/os-release NAME="Ubuntu" VERSION="18.04.2 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.2 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic

$ code-server ~ -p 12307 --password= (node:9173) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. INFO code-server v1.939-vsc1.33.1 INFO Additional documentation: http://github.com/codercom/code-server INFO Initializing {"data-dir":"/home/caskeep/.local/share/code-server","extensions-dir":"/home/caskeep/.local/share/code-server/extensions","working-dir":"/home/caskeep","log-dir":"/home/caskeep/.cache/code-server/logs/20190514045909585"} WARN "--password" is deprecated. Use the PASSWORD environment variable instead. INFO Starting webserver... {"host":"0.0.0.0","port":"12307"} WARN No certificate specified. This could be insecure. WARN Documentation on securing your setup: https://github.com/codercom/code-server/blob/master/doc/security/ssl.md INFO INFO Password: INFO INFO Started (click the link below to open): INFO http://localhost:12307/ INFO INFO Starting shared process [1/5]... WARN stderr {"data":"(node:9185) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\n"} INFO Connected to shared process internal/child_process.js:366 throw errnoException(err, 'spawn'); ^

Error: spawn ENOMEM at ChildProcess.spawn (internal/child_process.js:366:11) at Object.spawn [as _spawn] (child_process.js:538:9) at t.async (/home/travis/build/codercom/code-server/packages/server/out/cli.js:504:34598) at e.exports (/home/travis/build/codercom/code-server/packages/server/out/cli.js:504:34099) at e (/home/travis/build/codercom/code-server/packages/server/out/cli.js:504:32722) at Timeout.u [as _onTimeout] (/home/travis/build/codercom/code-server/packages/server/out/cli.js:504:33015) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10)

useful!
source:https://uonfu.com/
answerer
caskeep caskeep Game Development Loving with Programming.
Github User Rank List