I’m trying to deploy a service using Node v18
Indeed, in settings < Configurations I have set it to node v18
The command
az webapp config show --resource-group <RG-name> --name <ServiceName> --query linuxFxVersion
confirms the version to be v18: "NODE|18.20.1"
Even the actual docker container being used seems to correspond to v18:
<code> V
2024-08-12T17:08:30.841Z INFO - 18-lts_20220228.1.tuxprod Pulling from appsvc/node
2024-08-12T17:08:30.852Z INFO - Digest: sha256:151be8808b6230b7f1d902cf9fb20cd796016a00bd9a32c45910d6a5fe6c473c
2024-08-12T17:08:30.852Z INFO - Status: Image is up to date for 10.1.0.4:13209/appsvc/node:18-lts_20220228.1.tuxprod
2024-08-12T17:08:30.864Z INFO - Pull Image successful, Time taken: 0 Seconds
2024-08-12T17:08:30.904Z INFO - Starting container for site
2024-08-12T17:08:30.905Z INFO - docker run -d --expose=8080 --name ......
</code>
<code> V
2024-08-12T17:08:30.841Z INFO - 18-lts_20220228.1.tuxprod Pulling from appsvc/node
2024-08-12T17:08:30.852Z INFO - Digest: sha256:151be8808b6230b7f1d902cf9fb20cd796016a00bd9a32c45910d6a5fe6c473c
2024-08-12T17:08:30.852Z INFO - Status: Image is up to date for 10.1.0.4:13209/appsvc/node:18-lts_20220228.1.tuxprod
2024-08-12T17:08:30.864Z INFO - Pull Image successful, Time taken: 0 Seconds
2024-08-12T17:08:30.904Z INFO - Starting container for site
2024-08-12T17:08:30.905Z INFO - docker run -d --expose=8080 --name ......
</code>
V
2024-08-12T17:08:30.841Z INFO - 18-lts_20220228.1.tuxprod Pulling from appsvc/node
2024-08-12T17:08:30.852Z INFO - Digest: sha256:151be8808b6230b7f1d902cf9fb20cd796016a00bd9a32c45910d6a5fe6c473c
2024-08-12T17:08:30.852Z INFO - Status: Image is up to date for 10.1.0.4:13209/appsvc/node:18-lts_20220228.1.tuxprod
2024-08-12T17:08:30.864Z INFO - Pull Image successful, Time taken: 0 Seconds
2024-08-12T17:08:30.904Z INFO - Starting container for site
2024-08-12T17:08:30.905Z INFO - docker run -d --expose=8080 --name ......
And yet(!), the version being used to deploy the app is v16 which of course causes the deployment to fail.
<code>2024-08-12T16:18:09.714643966Z _____
2024-08-12T16:18:09.714690368Z / _ __________ _________ ____
2024-08-12T16:18:09.714696968Z / /_ ___ / | _ __ _/ __
2024-08-12T16:18:09.714701869Z / | / /| | /| | / ___/
2024-08-12T16:18:09.714706569Z ____|__ /_____ ____/ |__| ___ >
2024-08-12T16:18:09.714711469Z / / /
2024-08-12T16:18:09.714716169Z A P P S E R V I C E O N L I N U X
2024-08-12T16:18:09.714720869Z
2024-08-12T16:18:09.714725270Z Documentation: http://aka.ms/webapp-linux
2024-08-12T16:18:09.714729770Z NodeJS quickstart: https://aka.ms/node-qs
2024-08-12T16:18:09.714734270Z NodeJS Version : v16.13.1 <--------
2024-08-12T16:18:09.714738770Z Note: Any data outside '/home' is not persisted
2024-08-12T16:18:09.714743271Z
2024-08-12T16:18:09.965438943Z Starting periodic command scheduler: cron.
2024-08-12T16:18:10.058709071Z Cound not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2024-08-12T16:18:10.058795475Z Could not find operation ID in manifest. Generating an operation id...
2024-08-12T16:18:10.058804876Z Build Operation ID: fa38d167-796d-4f30-af51-d11537e25846
2024-08-12T16:18:10.281955010Z Environment Variables for Application Insight's IPA Codeless Configuration exists..
2024-08-12T16:18:10.289068956Z Writing output script to '/opt/startup/startup.sh'
2024-08-12T16:18:10.310169580Z Running #!/bin/sh
2024-08-12T16:18:10.310198181Z
2024-08-12T16:18:10.310205082Z # Enter the source directory to make sure the script runs where the user expects
2024-08-12T16:18:10.310211182Z cd "/home/site/wwwroot"
2024-08-12T16:18:10.310216482Z
2024-08-12T16:18:10.310222183Z export NODE_PATH=/usr/local/lib/node_modules:$NODE_PATH
2024-08-12T16:18:10.310227883Z if [ -z "$PORT" ]; then
2024-08-12T16:18:10.310233183Z export PORT=8080
2024-08-12T16:18:10.310238583Z fi
2024-08-12T16:18:10.310243784Z
2024-08-12T16:18:10.310248984Z PATH="$PATH:/home/site/wwwroot" bash /home/site/wwwroot/start-dev.sh
2024-08-12T16:18:10.326757685Z Starting custom deployment script...
2024-08-12T16:18:10.354607138Z Expected: v18.20.1
2024-08-12T16:18:10.366245803Z Actual: v16.13.1
</code>
<code>2024-08-12T16:18:09.714643966Z _____
2024-08-12T16:18:09.714690368Z / _ __________ _________ ____
2024-08-12T16:18:09.714696968Z / /_ ___ / | _ __ _/ __
2024-08-12T16:18:09.714701869Z / | / /| | /| | / ___/
2024-08-12T16:18:09.714706569Z ____|__ /_____ ____/ |__| ___ >
2024-08-12T16:18:09.714711469Z / / /
2024-08-12T16:18:09.714716169Z A P P S E R V I C E O N L I N U X
2024-08-12T16:18:09.714720869Z
2024-08-12T16:18:09.714725270Z Documentation: http://aka.ms/webapp-linux
2024-08-12T16:18:09.714729770Z NodeJS quickstart: https://aka.ms/node-qs
2024-08-12T16:18:09.714734270Z NodeJS Version : v16.13.1 <--------
2024-08-12T16:18:09.714738770Z Note: Any data outside '/home' is not persisted
2024-08-12T16:18:09.714743271Z
2024-08-12T16:18:09.965438943Z Starting periodic command scheduler: cron.
2024-08-12T16:18:10.058709071Z Cound not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2024-08-12T16:18:10.058795475Z Could not find operation ID in manifest. Generating an operation id...
2024-08-12T16:18:10.058804876Z Build Operation ID: fa38d167-796d-4f30-af51-d11537e25846
2024-08-12T16:18:10.281955010Z Environment Variables for Application Insight's IPA Codeless Configuration exists..
2024-08-12T16:18:10.289068956Z Writing output script to '/opt/startup/startup.sh'
2024-08-12T16:18:10.310169580Z Running #!/bin/sh
2024-08-12T16:18:10.310198181Z
2024-08-12T16:18:10.310205082Z # Enter the source directory to make sure the script runs where the user expects
2024-08-12T16:18:10.310211182Z cd "/home/site/wwwroot"
2024-08-12T16:18:10.310216482Z
2024-08-12T16:18:10.310222183Z export NODE_PATH=/usr/local/lib/node_modules:$NODE_PATH
2024-08-12T16:18:10.310227883Z if [ -z "$PORT" ]; then
2024-08-12T16:18:10.310233183Z export PORT=8080
2024-08-12T16:18:10.310238583Z fi
2024-08-12T16:18:10.310243784Z
2024-08-12T16:18:10.310248984Z PATH="$PATH:/home/site/wwwroot" bash /home/site/wwwroot/start-dev.sh
2024-08-12T16:18:10.326757685Z Starting custom deployment script...
2024-08-12T16:18:10.354607138Z Expected: v18.20.1
2024-08-12T16:18:10.366245803Z Actual: v16.13.1
</code>
2024-08-12T16:18:09.714643966Z _____
2024-08-12T16:18:09.714690368Z / _ __________ _________ ____
2024-08-12T16:18:09.714696968Z / /_ ___ / | _ __ _/ __
2024-08-12T16:18:09.714701869Z / | / /| | /| | / ___/
2024-08-12T16:18:09.714706569Z ____|__ /_____ ____/ |__| ___ >
2024-08-12T16:18:09.714711469Z / / /
2024-08-12T16:18:09.714716169Z A P P S E R V I C E O N L I N U X
2024-08-12T16:18:09.714720869Z
2024-08-12T16:18:09.714725270Z Documentation: http://aka.ms/webapp-linux
2024-08-12T16:18:09.714729770Z NodeJS quickstart: https://aka.ms/node-qs
2024-08-12T16:18:09.714734270Z NodeJS Version : v16.13.1 <--------
2024-08-12T16:18:09.714738770Z Note: Any data outside '/home' is not persisted
2024-08-12T16:18:09.714743271Z
2024-08-12T16:18:09.965438943Z Starting periodic command scheduler: cron.
2024-08-12T16:18:10.058709071Z Cound not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2024-08-12T16:18:10.058795475Z Could not find operation ID in manifest. Generating an operation id...
2024-08-12T16:18:10.058804876Z Build Operation ID: fa38d167-796d-4f30-af51-d11537e25846
2024-08-12T16:18:10.281955010Z Environment Variables for Application Insight's IPA Codeless Configuration exists..
2024-08-12T16:18:10.289068956Z Writing output script to '/opt/startup/startup.sh'
2024-08-12T16:18:10.310169580Z Running #!/bin/sh
2024-08-12T16:18:10.310198181Z
2024-08-12T16:18:10.310205082Z # Enter the source directory to make sure the script runs where the user expects
2024-08-12T16:18:10.310211182Z cd "/home/site/wwwroot"
2024-08-12T16:18:10.310216482Z
2024-08-12T16:18:10.310222183Z export NODE_PATH=/usr/local/lib/node_modules:$NODE_PATH
2024-08-12T16:18:10.310227883Z if [ -z "$PORT" ]; then
2024-08-12T16:18:10.310233183Z export PORT=8080
2024-08-12T16:18:10.310238583Z fi
2024-08-12T16:18:10.310243784Z
2024-08-12T16:18:10.310248984Z PATH="$PATH:/home/site/wwwroot" bash /home/site/wwwroot/start-dev.sh
2024-08-12T16:18:10.326757685Z Starting custom deployment script...
2024-08-12T16:18:10.354607138Z Expected: v18.20.1
2024-08-12T16:18:10.366245803Z Actual: v16.13.1
What am I missing?
Thank you!