Azure App Service on Linux does not start due to missing libc.musl-x86_64.so.1

David Reher 1 Reputation point
2020-10-28T06:28:38.213+00:00

Hey there,

I created an Azure App Service on Linux and deployed my custom code using GitHub. All of this worked fine, however, when looking at the docker logs I see the following:

2020-10-28T05:49:35.662024131Z   _____                               
2020-10-28T05:49:35.662045133Z   /  _  \ __________ _________   ____  
2020-10-28T05:49:35.662058234Z  /  /_\  \___   /  |  \_  __ \_/ __ \ 
2020-10-28T05:49:35.662061935Z /    |    \/    /|  |  /|  | \/\  ___/ 
2020-10-28T05:49:35.662064935Z \____|__  /_____ \____/ |__|    \___  >
2020-10-28T05:49:35.662068135Z         \/      \/                  \/ 
2020-10-28T05:49:35.662070935Z A P P   S E R V I C E   O N   L I N U X
2020-10-28T05:49:35.662073535Z 
2020-10-28T05:49:35.662076036Z Documentation: http://aka.ms/webapp-linux
2020-10-28T05:49:35.662078636Z NodeJS quickstart: https://aka.ms/node-qs
2020-10-28T05:49:35.662081336Z NodeJS Version : v12.18.3
2020-10-28T05:49:35.662083836Z Note: Any data outside '/home' is not persisted
2020-10-28T05:49:35.662086537Z 
2020-10-28T05:49:36.166314554Z Cound not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2020-10-28T05:49:36.167221728Z Could not find operation ID in manifest. Generating an operation id...
2020-10-28T05:49:36.168256112Z Build Operation ID: 4940ae7b-d84f-4a39-8181-4e8e818eb348
2020-10-28T05:49:42.373916598Z Environment Variables for Application Insight's Codeless Configuration exists..
2020-10-28T05:49:42.663856275Z Writing output script to '/opt/startup/startup.sh'
2020-10-28T05:49:43.022385590Z Running #!/bin/sh
2020-10-28T05:49:43.023717803Z 
2020-10-28T05:49:43.023733605Z # Enter the source directory to make sure the script runs where the user expects
2020-10-28T05:49:43.023739005Z cd "/home/site/wwwroot"
2020-10-28T05:49:43.023743406Z 
2020-10-28T05:49:43.023747306Z export NODE_PATH=/usr/local/lib/node_modules:$NODE_PATH
2020-10-28T05:49:43.023979126Z if [ -z "$PORT" ]; then
2020-10-28T05:49:43.023988827Z      export PORT=8080
2020-10-28T05:49:43.024197944Z fi
2020-10-28T05:49:43.024206945Z 
2020-10-28T05:49:43.024244048Z export NODE_OPTIONS='--require /usr/local/lib/node_modules/applicationinsights/out/Bootstrap/Oryx.js ' $NODE_OPTIONS
2020-10-28T05:49:43.032610960Z yarn run start
2020-10-28T05:49:44.347743885Z yarn run v1.17.3
2020-10-28T05:49:44.476435385Z $ node ./main.js
2020-10-28T05:49:48.734885788Z Error: libc.musl-x86_64.so.1: cannot open shared object file: No such file or directory
2020-10-28T05:49:48.734908990Z     at Object.Module._extensions..node (internal/modules/cjs/loader.js:1187:18)
2020-10-28T05:49:48.734913791Z     at Module.load (internal/modules/cjs/loader.js:985:32)
2020-10-28T05:49:48.734917491Z     at Function.Module._load (internal/modules/cjs/loader.js:878:14)
2020-10-28T05:49:48.734920891Z     at Module.require (internal/modules/cjs/loader.js:1025:19)
2020-10-28T05:49:48.734934592Z     at Module.patchedRequire [as require] (/usr/local/lib/node_modules/applicationinsights/node_modules/diagnostic-channel/dist/src/patchRequire.js:14:46)
2020-10-28T05:49:48.734938393Z     at require (internal/modules/cjs/helpers.js:72:18)
2020-10-28T05:49:48.734941793Z     at Object.<anonymous> (/home/site/wwwroot/node_modules/bcrypt/bcrypt.js:6:16)
2020-10-28T05:49:48.734945793Z     at Module._compile (internal/modules/cjs/loader.js:1137:30)
2020-10-28T05:49:48.734955094Z     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
2020-10-28T05:49:48.734958594Z     at Module.load (internal/modules/cjs/loader.js:985:32)
2020-10-28T05:49:48.782502532Z error Command failed with exit code 1.
2020-10-28T05:49:48.783219294Z info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

It seems the startup script is found, but then something goes wrong and I don't know why :(
Additionally the "Diagnose and solve problems" seems to be loading forever and nothing happens :(

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,914 questions
{count} votes

1 answer

Sort by: Most helpful
  1. anil kumar 5 Reputation points
    2024-07-07T06:43:05.63+00:00

    typo in wrong window, pls ignore.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.