Can't build the dhis-web-apps successfully

[INFO] [clone] [maps-app] failed, retrying
[INFO] [clone] [capture-app] failed, retrying
[INFO] [clone] [maintenance-app] failed, retrying
[INFO] [clone] [maps-app] failed, retrying
[INFO] [clone] [maintenance-app] failed, retrying
[ERROR] [clone] [capture-app] there was a problem with the clone operation { Error: Command failed: git clone --depth 1 --no-single-branch GitHub - d2-ci/capture-app D:\opt\dhis\36\dhis2-core\dhis-2\dhis-web\dhis-web-apps\target\dhis-web-apps\capture-app
[ERROR] Cloning into ‘D:\opt\dhis\36\dhis2-core\dhis-2\dhis-web\dhis-web-apps\target\dhis-web-apps\capture-app’…
[ERROR] fatal: unable to access ‘GitHub - d2-ci/capture-app’: Failed to connect to github.com port 443: Timed out
[ERROR]
[ERROR] at ChildProcess.exithandler (child_process.js:275:12)
[ERROR] at emitTwo (events.js:126:13)
[ERROR] at ChildProcess.emit (events.js:214:7)
[ERROR] at maybeClose (internal/child_process.js:925:16)
[ERROR] at Socket.stream.socket.on (internal/child_process.js:346:11)
[ERROR] at emitOne (events.js:116:13)
[ERROR] at Socket.emit (events.js:211:7)
[ERROR] at Pipe._handle.close [as _onclose] (net.js:567:12)
[ERROR] killed: false,
[ERROR] code: 128,
[ERROR] signal: null,
[ERROR] cmd: ‘git clone --depth 1 --no-single-branch GitHub - d2-ci/capture-app D:\opt\dhis\36\dhis2-core\dhis-2\dhis-web\dhis-web-apps\target\dhis-web-apps\capture-app’,
[ERROR] stdout: ‘’,
[ERROR] stderr: ‘Cloning into 'D:\opt\dhis\36\dhis2-core\dhis-2\dhis-web\dhis-web-apps\target\dhis-web-apps\capture-app'…\nfatal: unable to access 'https://github.com/d2-ci/capture-app/\’: Failed to connect to github.com port 443: Timed out\n’ }
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! errno 1
[ERROR] npm ERR! dhis-web-apps@1.0.0 bundle-apps: node ./scripts/bundle-apps.js
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the dhis-web-apps@1.0.0 bundle-apps script.
[ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[WARNING] npm WARN Local package.json exists, but node_modules missing, did you mean to install?
[ERROR]
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2021-07-16T23_33_36_508Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

Hi @linxd - this appears to be a network error, the machine used to build DHIS2 needs access to the public internet and in particular d2-ci · GitHub. Unfortunately it’s very difficult for us to debug network issues like this. Can you access https://github.com in a browser on that machine?

1 Like

can access github.com.
try again, got error:

[INFO] [clone] [menu-management-app] failed, retrying
[INFO] [clone] [pivot-tables-app] failed, retrying
[INFO] [clone] [reports-app] failed, retrying
[INFO] [clone] [app-management-app] shallow clone successful
[INFO] [checkout] [app-management-app] successfully checked out: v36
[INFO] [rename] [app-management-app] ‘D:\opt\dhis\36\dhis2-core\dhis-2\dhis-web\dhis-web-apps\target\dhis-web-apps\app-management-app’ => ‘D:\opt\dhis\36\dhis2-core\dhis-2\dhis-web\dhis-web-apps\target\dhis-web-apps\dhis-web-app-management’
[ERROR] [rename] failed to rename app-management-app to dhis-web-app-management
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! errno 1
[ERROR] npm ERR! dhis-web-apps@1.0.0 bundle-apps: node ./scripts/bundle-apps.js
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the dhis-web-apps@1.0.0 bundle-apps script.
[ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[WARNING] npm WARN Local package.json exists, but node_modules missing, did you mean to install?
[ERROR]

Hey what version of NPM are you using? Did you update it? node_modules?

You’ll get the best answer from @austin but I’d like to make a suggestion if it might work, would you use a new directory (in a different drive than D but with enough space) for a clean install and make sure you have the proper authorities in this directory? I mean start over in a new directory other than D:\

1 Like