Heroku deployment with opencv4nodejs error
ankitOneNineNineNine opened this issue · 0 comments
The following error comes after deployment. Deployment is successful, but the error comes during running the app. So as soon after it runs npm start command the following error arrives and the app is crashed.
2020-11-20T02:16:26.700317+00:00 app[web.1]: Error: libopencv_core.so.3.4: cannot open shared object file: No such file or directory
2020-11-20T02:16:26.700318+00:00 app[web.1]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:1003:18)
2020-11-20T02:16:26.700319+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:812:32)
2020-11-20T02:16:26.700319+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:724:14)
2020-11-20T02:16:26.700320+00:00 app[web.1]: at Module.require (internal/modules/cjs/loader.js:849:19)
2020-11-20T02:16:26.700320+00:00 app[web.1]: at require (internal/modules/cjs/helpers.js:74:18)
2020-11-20T02:16:26.700321+00:00 app[web.1]: at Object. (/app/node_modules/opencv4nodejs/lib/cv.js:40:8)
2020-11-20T02:16:26.700321+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:956:30)
2020-11-20T02:16:26.700321+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
2020-11-20T02:16:26.700322+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:812:32)
2020-11-20T02:16:26.700322+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:724:14)
2020-11-20T02:16:26.700323+00:00 app[web.1]: at Module.require (internal/modules/cjs/loader.js:849:19)
2020-11-20T02:16:26.700323+00:00 app[web.1]: at require (internal/modules/cjs/helpers.js:74:18)
2020-11-20T02:16:26.700324+00:00 app[web.1]: at Object. (/app/node_modules/opencv4nodejs/lib/opencv4nodejs.js:11:79)
2020-11-20T02:16:26.700324+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:956:30)
2020-11-20T02:16:26.700325+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
2020-11-20T02:16:26.700325+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:812:32)
2020-11-20T02:16:27.044431+00:00 app[web.1]: [31m[nodemon] app crashed - waiting for file changes before starting...[39m
I have tried some buildpacks, tried Aptfile method, but it is not working . Can you suggest any buildpacks or methods in detail to help me?