Azure App Service deployment intermittently fails for different reasons

Rich S 5 Reputation points
2024-12-16T12:37:32.4766667+00:00

I have a Next.JS application, that I'm deploying to an Azure App Service. I'm using the VSCode Azure extension tool (as I never got the github action working)

When I deploy this App, it intermittently fails for no obvious reason. For example, I deployed 2 days ago (successfully), then made some small changes to the app (just to the layout), and tried to re-deploy, but it failed. If I look at the deployment logs, they just stop with no error message.

I have compared the log from a few days ago, to the one I've just tried, and there are some variations.

The one that failed, had this at the top - notice that it says "Version 20.18.0 of platform nodejs is not installed", but on the one that worked, it doesn't mention this..

Build Operation ID: 2#########7
Repository Commit : 2##################89
OS Type           : bookworm
Image Type        : githubactions
Detecting platforms...
Detected following platforms:
  nodejs: 20.18.0
Version '20.18.0' of platform 'nodejs' is not installed. Generating script to install it...
Detected the following frameworks: Typescript,Next.js
Using intermediate directory '/tmp/8dd1dc716e38d9c'.
Copying files to the intermediate directory...
Done in 18 sec(s).
Source directory     : /tmp/8dd1dc716e38d9c
Destination directory: /home/site/wwwroot
Downloading and extracting 'nodejs' version '20.18.0' to '/tmp/oryx/platforms/nodejs/20.18.0'...
Detected image debian flavor: bookworm.
\n/bin/bash -c "oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform nodejs --platform-version 20 -p virtualenv_name= --log-file /tmp/build-debug.log  -i /tmp/8dd1dc716e38d9c -p compress_node_modules=tar-gz | tee /tmp/oryx-build.log ; exit $PIPESTATUS "

And then the build that succeeded, appears like this


Build Operation ID: e######ca2
Repository Commit : f2####################4add9
OS Type           : bookworm
Image Type        : githubactions
Detecting platforms...
Detected following platforms:
  nodejs: 20.18.0
Detected the following frameworks: Typescript,Next.js
Using intermediate directory '/tmp/8dd1b783fb1295e'.
Copying files to the intermediate directory...
Done in 6 sec(s).

...it then continues, and succeeds


Version info;

next - 15.1.0
react - 19.0.0
typescript 5.7.2

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,093 questions
{count} vote

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.