question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parallel build fails: Another process, with id XXXXX, is currently running ngcc

See original GitHub issue

🐞 bug report

Affected Package

The issue is caused by package @angular/compiler-cli/ngcc

Is this a regression?

The previous version in which this bug was not present was: angular 6 (I upgrade from angular 6 to 9 (6->7, 7->8, 8->9) following the steps in the https://update.angular.io/

Description

I have a shared node_modules/ in a Linux environment. It is used by CI and others users to build their local angular 9 app. After upgrade to angular 9 many builds fail. Re-triggering them work sometimes.

πŸ”¬ Minimal Reproduction

Create a repo and issue many (I don't know, maybe 50) build commands at the same time.

πŸ”₯ Exception or Error


Another process, with id 372274, is currently running ngcc.
Waiting up to 25s for it to finish.
Error: Timed out waiting 25s for another ngcc process, with id 372274, to complete.
(If you are sure no ngcc process is running then you should delete the lock-file at /proj/pt/tools/nodejs_modules/nodegui_dep_3_0_0/node_modules/@angular/compiler-cli/ngcc/__ngcc_lock_file__.)
    at AsyncLocker.<anonymous> (/proj/pt/tools/nodejs_modules/nodegui_dep_3_0_0/node_modules/@angular/compiler-cli/ngcc/src/locking/async_locker.js:91:31)
    at step (/proj/pt/tools/nodejs_modules/nodegui_dep_3_0_0/node_modules/tslib/tslib.js:139:27)
    at Object.next (/proj/pt/tools/nodejs_modules/nodegui_dep_3_0_0/node_modules/tslib/tslib.js:120:57)
    at fulfilled (/proj/pt/tools/nodejs_modules/nodegui_dep_3_0_0/node_modules/tslib/tslib.js:110:62)
An unhandled exception occurred: NGCC failed.
See "/tmp/ng-USvOMI/angular-errors.log" for further details.

🌍 Your Environment

Angular Version:


./node_modules/.bin/ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / β–³ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 9.1.1
Node: 12.6.0
OS: linux x64

Angular: 9.1.2
... animations, common, compiler, core, forms, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: error

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.901.3
@angular-devkit/build-angular     0.901.3
@angular-devkit/build-optimizer   0.901.3
@angular-devkit/build-webpack     0.901.3
@angular-devkit/core              9.1.3
@angular-devkit/schematics        9.1.1
@angular/cli                      9.1.1
@angular/compiler-cli             9.1.3
@angular/language-service         9.1.3
@ngtools/webpack                  9.1.3
@schematics/angular               9.1.1
@schematics/update                0.901.1
rxjs                              6.5.5
typescript                        3.8.3
webpack                           4.42.0

Anything else relevant?

Is there a way to increase this 25s timeout or a reliable way to make parallel builds without those timeouts? For me creating multiple node_modules/ is not an option. Prior to angular 9 I had the same set up and didn’t have any problems with parallel builds.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:33 (17 by maintainers)

github_iconTop GitHub Comments

3reactions
petebacondarwincommented, May 19, 2020

That PR has now landed. Closing this.

1reaction
petebacondarwincommented, May 7, 2020

Do you fancy providing a PR for it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nx build - Another process, with id xxx, is currently running ngcc
This is probably caused by command nx affected:build --all --parallel --configuration=production . That runs all builds in parallel, whereΒ ...
Read more >
ERROR in ngcc is already running at process with id 6139
Sometimes you try to run ng serve command in my project it produce the below error. ERROR in ngcc is already running at...
Read more >
Npm: Another Process, With Id 4224, Is Currently Running Ngcc
The following are the steps to create a build pipeline with Azure Devops. Login to Azure DevOps and select your project that you...
Read more >
Speeding up Angular 10 parallel production build - Ljiljana Matic
However, when testing the change on CI/CD we faced another issue where build was failing (big time): [ERROR] in ngcc is already running...
Read more >
ng cannot be loaded - Code Grepper
ERROR in ngcc is already running at process with id 8108. If you are running multiple builds in parallel then you should pre-process...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found