Can't deploy ACE app on Heroku

Jesse Igowe February 4, 2021

Hello

I am having difficulty deploying my application to Heroku. I developed using mongodb. I am trying to push the app to Heroku, but it keeps failing at the build.

Here is some parts of the logs.

       [build-jsx-node] 
       [build-jsx-node] > my-app@0.0.1 build-jsx-node /tmp/build_7449a027_
       [build-jsx-node] > parcel build --log-level 1 --no-minify --target node --out-dir views/node views/*.jsx
       [build-jsx-node] 
       [build-jsx-browser] 
       [build-jsx-browser] > my-app@0.0.1 build-jsx-browser /tmp/build_7449a027_
       [build-jsx-browser] > parcel build --log-level 1 --global __root_component --out-dir views views/*.jsx
       [build-jsx-browser] 
       [build-jsx-node] lscpu: failed to determine number of CPUs: /sys/devices/system/cpu/possible: No such file or directory
       [build-jsx-node] 🚨  No entries found.
       [build-jsx-node]     at Bundler.bundle (/tmp/build_7449a027_/node_modules/parcel-bundler/src/Bundler.js:275:17)
       [build-jsx-browser] lscpu: failed to determine number of CPUs: /sys/devices/system/cpu/possible: No such file or directory
       [build-jsx-browser] 🚨  No entries found.
       [build-jsx-browser]     at Bundler.bundle (/tmp/build_7449a027_/node_modules/parcel-bundler/src/Bundler.js:275:17)
       [build-jsx-node] npm ERR! code ELIFECYCLE
       [build-jsx-node] npm ERR! errno 1
       [build-jsx-node] npm ERR! my-app@0.0.1 build-jsx-node: `parcel build --log-level 1 --no-minify --target node --out-dir views/node views/*.jsx`
       [build-jsx-node] npm ERR! Exit status 1
       [build-jsx-node] npm ERR! 
       [build-jsx-node] npm ERR! Failed at the my-app@0.0.1 build-jsx-node script.
       npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
       [build-jsx-node] 
       [build-jsx-node] npm ERR! A complete log of this run can be found in:
       [build-jsx-node] npm ERR!     /tmp/npmcache.DXbDq/_logs/2021-02-04T09_13_27_109Z-debug.log
       [build-jsx-node] npm run build-jsx-node exited with code 1
       [build-jsx-browser] npm ERR! code ELIFECYCLE
       [build-jsx-browser] npm ERR! errno 1
       [build-jsx-browser] npm ERR! my-app@0.0.1 build-jsx-browser: `parcel build --log-level 1 --global __root_component --out-dir views views/*.jsx`
       [build-jsx-browser] npm ERR! Exit status 1
       [build-jsx-browser] npm ERR! 
       [build-jsx-browser] npm ERR! Failed at the my-app@0.0.1 build-jsx-browser script.
       npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
       [build-jsx-browser] 
       [build-jsx-browser] npm ERR! A complete log of this run can be found in:
       [build-jsx-browser] npm ERR!     /tmp/npmcache.DXbDq/_logs/2021-02-04T09_13_27_144Z-debug.log
       [build-jsx-browser] npm run build-jsx-browser exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-app@0.0.1 build: `concurrently -i 'npm:build-*'`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the my-app@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/npmcache.DXbDq/_logs/2021-02-04T09_13_27_169Z-debug.log
-----> Build failed
       
       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys
       
       Some possible problems:
       
       - Node version not specified in package.json
         https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
       
       Love,
       Heroku
       
 !     Push rejected, failed to compile Node.js app.
 !     Push failed

2 answers

0 votes
Hallbjörn Magnússon May 31, 2021

Hi @Jesse Igowe I´m getting this issue as well and trying to debug it. Did you find a solution?

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 18, 2021

Hm, any interesting info here 

/tmp/npmcache.DXbDq/_logs/2021-02-04T09_13_27_109Z-debug.log

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events