Server build task stuck forever
See original GitHub issue-
code-server
version: 1.691-vsc1.33.0 -
OS Version: CentOS Linux release 7.6.1810
-
node version: 8.10.0
-
gcc version: 8.2.0
-
yarn version: 1.15.2
This behavior also remains on the latest release 1.604-vsc1.32.0
Description
Running the server build task gets stuck. This is the log for a while now.
yarn run v1.15.2
$ ts-node -r tsconfig-paths/register build/tasks.ts build:server:binary
INFO BUILD:SERVER:BINARY Starting...
INFO VSCODE:INSTALL Starting...
INFO VSCODE:INSTALL Completed! time=242716ms {"time":{"expected":9007199254740991,"ms":1554574909554}}
INFO BUILD:BOOTSTRAP-FORK Starting...
INFO BUILD:WEB Starting...
INFO BUILD:SERVER:BUNDLE Starting...
INFO BUILD:SERVER:BUNDLE Executing 'npm ["run","build"]' {"options":{"cwd":"/home/code-server/packages/server"}}
INFO BUILD:APP:BROWSER Starting...
INFO VSCODE:PATCH Starting...
INFO BUILD:APP:BROWSER Executing 'npm ["run","build"]' {"options":{"cwd":"/home/code-server/packages/app/browser"}}
INFO VSCODE:PATCH Executing 'git ["apply","--unidiff-zero","/home/code-server/scripts/vscode.patch"]' {"options":{"cwd":"/home/code-server/lib/vscode"}}
INFO VSCODE:PATCH Completed! time=1993ms {"time":{"expected":9007199254740991,"ms":1554575152394}}
INFO BUILD:BOOTSTRAP-FORK Executing 'npm ["run","build:bootstrap-fork"]' {"options":{"cwd":"/home/code-server/packages/vscode"}}
INFO BUILD:WEB Executing 'npm ["run","build"]' {"options":{"cwd":"/home/code-server/packages/web"}}
INFO BUILD:APP:BROWSER Completed! time=41679ms {"time":{"expected":9007199254740991,"ms":1554575152394}}
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
INFO BUILD:SERVER:BINARY Still running...
INFO BUILD:BOOTSTRAP-FORK Still running...
INFO BUILD:WEB Still running...
INFO BUILD:SERVER:BUNDLE Still running...
Steps to Reproduce
- Run
yarn
- Run
yarn task build:server:binary
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Stuck on Creating an optimized production build forever when ...
So the solution for me is on your title: close the development server, then run next build and next export (If you intend...
Read more >VS build is stuck, cannot cancel the build
Click on build solution and it says build started but gets stuck and does not complete - unable to cancel the build -...
Read more >[Satellite6] pulp tasks stuck forever, worker processes are idle ...
Issue. random work (Capsule sync, repo sync, CV publish/promote) gets stuck, pending on pulp to start the task - apparently forever ...
Read more >android - Stuck with Gradle Build Running - Stack Overflow
Actually it is not stuck. It takes more time to build. I have got almost 3 solutions that can fix the issue.
Read more >stuck at Initializing tasks - Google Groups
run in docker issue is not present). I'm using ubuntu 16.04 and kas 3.0.2. When run image build I got stuck at: Build...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
AFAIK this happens when you don’t have enough RAM available. I had set docker to use 2GB and it didn’t work. After setting the RAM to 8GB it did. I did some more testing and the max seems to be between 2 and 3 GB of RAM.
Here’s the error log. This keeps repeating for a long time (I believe it logs for each of the 63 threads in a non-deterministic order).