Output:
1:50:53 PM macazure: Starting deployment...
1:50:53 PM macazure: Creating zip package...
1:50:54 PM macazure: Ignoring files from "appService.zipIgnorePattern"
"node_modules{,/**}"
".vscode{,/**}"
2:00:47 PM macazure: Zip package size: 294 MB
2:01:16 PM macazure: Fetching changes.
2:01:17 PM macazure: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/4b4b5d91-5076-412f-882a-17d9ca7bcd6a.zip (288.92 MB) to /tmp/zipdeploy/extracted
2:03:48 PM macazure: Updating submodules.
2:03:49 PM macazure: Preparing deployment for commit id '289201ab-2'.
2:03:49 PM macazure: PreDeployment: context.CleanOutputPath False
2:03:49 PM macazure: PreDeployment: context.OutputPath /home/site/wwwroot
2:03:49 PM macazure: Repository path is /tmp/zipdeploy/extracted
2:03:50 PM macazure: Running oryx build...
2:03:50 PM macazure: Command: 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/8dc11aa4bf86edc -p compress_node_modules=tar-gz | tee /tmp/oryx-build.log
2:03:50 PM macazure: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
2:03:50 PM macazure: You can report issues at https://github.com/Microsoft/Oryx/issues
2:03:50 PM macazure: Oryx Version: 0.2.20230829.1, Commit: 5bd3088141516cdbd815d62ada052654e91f0429, ReleaseTagName: 20230829.1
2:03:50 PM macazure: Build Operation ID: 649d0d479f627a9d
2:03:50 PM macazure: Repository Commit : 289201ab-2c04-4863-9b68-dc3d4b0c030c
2:03:50 PM macazure: OS Type : bookworm
2:03:50 PM macazure: Image Type : githubactions
2:03:50 PM macazure: Detecting platforms...
2:03:52 PM macazure: Error: Platform 'python' version '3.8' is unsupported. Supported versions:
2:03:53 PM macazure: Error: Platform 'python' version '3.8' is unsupported. Supported versions:
2:03:53 PM macazure: /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/8dc11aa4bf86edc -p compress_node_modules=tar-gz | tee /tmp/oryx-build.log ; exit $PIPESTATUS "
2:03:53 PM macazure: Generating summary of Oryx build
2:03:53 PM macazure: Parsing the build logs
2:03:53 PM macazure: Found 0 issue(s)
2:04:13 PM macazure: Deployment failed.
In fact, I'm an Azure beginner. I'm trying to deploy a web app in Azure. However, the deployment is failed. My project use NodeJS Express and ReactJS.
I don't quite understand what's going on and don't know the cause of the problem. Found 0 issue but why the deployment failed? Is the cause is about Python? (But, my project have nothing to do with Python)
Anyways, please help me to identify the problem and it would be great if you guys provide some solution. Appreciated.
Your
VS code extensionandterminalis causing this issue. You can useGithub Actionsas a work around to deploy your Express node app as Github Action deployment does the zip deployment by default.I created one sample node express app referring this MS Document.
Commands:-
Opened this app in Visual Studio and pushed it to Github repository:-
Github Repository:-
Now, Created an Azure Web app with Node 20 LTS, OS: Linux :-
Now,
Visited Deployment> Deployment Center> Selected source: Github, GitHub Signed in as: sid24desai,Organization:githuborg, Repository:sidexpressapp, Branch:main, Build provider: Github Actions,Runtime stack: Node, Version Node 20 LTS> Save:-After I saved the above settings > The Github Actions deployment started and was successful, Refer below:-
Another option is to use zip
CLI commandto deploy your Web app like below:-Reference