I'm looking for help on an issue quite similar to this one.
I'm new to Azure App Service so I followed the Nodejs quick start. Now I try to deploy my own Nodejs expressjs server which uses sqlite3 npm package (which successfully builds during deployment). Deployment goes fine until the "npm start" execution where I get the following error:
2021-03-11T23:23:49.381909031Z > node server/dist/main.js
2021-03-11T23:23:49.381913832Z
2021-03-11T23:23:50.915597419Z internal/modules/cjs/loader.js:1122
2021-03-11T23:23:50.915651323Z return process.dlopen(module, path.toNamespacedPath(filename));
2021-03-11T23:23:50.915657823Z ^
2021-03-11T23:23:50.915663023Z
2021-03-11T23:23:50.915667724Z Error: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /node_modules/sqlite3/lib/binding/node-v83-linux-x64/node_sqlite3.node)
2021-03-11T23:23:50.915673224Z at Object.Module._extensions..node (internal/modules/cjs/loader.js:1122:18)
2021-03-11T23:23:50.915677924Z at Module.load (internal/modules/cjs/loader.js:928:32)
2021-03-11T23:23:50.915682525Z at Function.Module._load (internal/modules/cjs/loader.js:769:14)
2021-03-11T23:23:50.915687025Z at Module.require (internal/modules/cjs/loader.js:952:19)
2021-03-11T23:23:50.915691425Z at require (internal/modules/cjs/helpers.js:88:18)
2021-03-11T23:23:50.915702526Z at Object.<anonymous> (/node_modules/sqlite3/lib/sqlite3-binding.js:4:15)
2021-03-11T23:23:50.915707126Z at Module._compile (internal/modules/cjs/loader.js:1063:30)
2021-03-11T23:23:50.915711626Z at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
2021-03-11T23:23:50.915716127Z at Module.load (internal/modules/cjs/loader.js:928:32)
2021-03-11T23:23:50.915720727Z at Function.Module._load (internal/modules/cjs/loader.js:769:14)
2021-03-11T23:23:50.936617185Z npm info lifecycle myapp@0.1.0~start: Failed to exec start script
2021-03-11T23:23:50.953031152Z npm ERR! code ELIFECYCLE
2021-03-11T23:23:50.960747354Z npm ERR! errno 1
2021-03-11T23:23:50.964115573Z npm ERR! myapp@0.1.0 start: `node server/dist/main.js`
2021-03-11T23:23:50.971916280Z npm ERR! Exit status 1
2021-03-11T23:23:50.971932481Z npm ERR!
2021-03-11T23:23:50.971937981Z npm ERR! Failed at the myapp@0.1.0 start script.
2021-03-11T23:23:50.971942281Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-03-11T23:23:51.016790096Z npm timing npm Completed in 3604ms
2021-03-11T23:23:51.017682454Z
2021-03-11T23:23:51.018546310Z npm ERR! A complete log of this run can be found in:
2021-03-11T23:23:51.020055409Z npm ERR! /root/.npm/_logs/2021-03-11T23_23_50_971Z-debug.log
I have some experience and skills with docker container deployment, including Azure Kubernetes Service. But I'm still a bit lost here because I only use Visual Studio Code to deploy to my App Service resource. For example I still don't know if it's possible to customize the Dockerfile of my App Service and if yes how to do it. If I could do this then I may be able to fix the "GLIBC_2.29 not found" issue in this container.
I would really appreciate your community help on that issue.
Kind regards