code-server: code-server exit automatically.

[IPC Library: File Watcher (chokidar)] Unhandled Promise Rejection:  Canceled: Canceled
    at Object.canceled (/code-server/build/code-serverdaily-vsc1.41.1-linux-x86_64-built/out/vs/platform/files/node/watcher/unix/watcherApp.js:111:23)
    at Delayer.cancel (/code-server/build/code-serverdaily-vsc1.41.1-linux-x86_64-built/out/vs/platform/files/node/watcher/unix/watcherApp.js:2320:38)
    at ThrottledDelayer.cancel (/code-server/build/code-serverdaily-vsc1.41.1-linux-x86_64-built/out/vs/platform/files/node/watcher/unix/watcherApp.js:2356:26)
    at Object.stop (/code-server/build/code-serverdaily-vsc1.41.1-linux-x86_64-built/out/vs/platform/files/node/watcher/unix/watcherApp.js:12182:46)
    at ChokidarWatcherService.stop (/code-server/build/code-serverdaily-vsc1.41.1-linux-x86_64-built/out/vs/platform/files/node/watcher/unix/watcherApp.js:12286:25)
    at FSWatcher.<anonymous> (/code-server/build/code-serverdaily-vsc1.41.1-linux-x86_64-built/out/vs/platform/files/node/watcher/unix/watcherApp.js:12272:34)
    at FSWatcher.emit (events.js:210:5)
    at FSWatcher._handleError (/code-server/build/code-serverdaily-vsc1.41.1-linux-x86_64-built/node_modules/chokidar/index.js:625:10)
    at NodeFsHandler._boundHandleError (/code-server/build/code-serverdaily-vsc1.41.1-linux-x86_64-built/node_modules/chokidar/lib/nodefs-handler.js:302:43)
    at createFsWatchInstance (/code-server/build/code-serverdaily-vsc1.41.1-linux-x86_64-built/node_modules/chokidar/lib/nodefs-handler.js:120:5)
    at setFsWatchListener (/code-server/build/code-serverdaily-vsc1.41.1-linux-x86_64-built/node_modules/chokidar/lib/nodefs-handler.js:165:15)
    at NodeFsHandler._watchWithNodeFs (/code-server/build/code-serverdaily-vsc1.41.1-linux-x86_64-built/node_modules/chokidar/lib/nodefs-handler.js:330:14)
    at NodeFsHandler._handleFile (/code-server/build/code-serverdaily-vsc1.41.1-linux-x86_64-built/node_modules/chokidar/lib/nodefs-handler.js:360:23)
    at NodeFsHandler._addToNodeFs (/code-server/build/code-serverdaily-vsc1.41.1-linux-x86_64-built/node_modules/chokidar/lib/nodefs-handler.js:620:21)

What happened? I was editing a file and it just exited. Please help me. Thank you.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 15 (6 by maintainers)

Most upvoted comments

try to increase system file watcher

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

it’s work for me