Oryx
Oryx copied to clipboard
Deployment to Azure Function with VNet integration failed using VSCode
Bug Report
-
At what date and time did you most recently experience the problem? the issue has been constantly occuring whenever trying to publish from VSCode.
-
Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use. Azure functions with Vnet integration
-
If your repo is publicly available please share its URL: Not public
-
What happened? Function app unable to publish
-
What did you expect or want to happen? Succesful deployment
-
How can we reproduce it?
-
Do you have log output? Please include between the backticks:
11.20.22 :Starting deployment...
11.20.24 :Creating zip package...
11.20.24 :Zip package size: 1.68 kB
11.20.26 :Fetching changes.
11.20.27 :Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/a210b362-9ff4-40b2-8ba2-e0a3dd6133ae.zip (0.00 MB) to /tmp/zipdeploy/extracted
11.20.40 :Updating submodules.
11.20.42 :Preparing deployment for commit id 'f0b1e192-3'.
11.20.42 :PreDeployment: context.CleanOutputPath False
11.20.43 :PreDeployment: context.OutputPath /home/site/wwwroot
11.20.43 :Repository path is /tmp/zipdeploy/extracted
11.20.43 :Running oryx build...
11.20.43 :Command: oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.8 -i /tmp/8da75fa9aba7e21 -p packagedir=.python_packages/lib/site-packages
11.20.44 :Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
11.20.44 :You can report issues at https://github.com/Microsoft/Oryx/issues
11.20.45 :Oryx Version: 0.2.20220308.4, Commit: c92fa6a2d6fc14dc9646f80e2bb2e393a5cdc258, ReleaseTagName: 20220308.4
11.20.45 :Build Operation ID: |ttlZ8BELsZs=.90f9448e_
11.20.45 :Repository Commit : f0b1e192-31d9-488d-8d40-905f529f2a1f
11.20.45 :Detecting platforms...
11.22.24 :Error: Oops... An unexpected error has occurred.
11.22.26 :/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.8 -i /tmp/8da75fa9aba7e21 -p packagedir=.python_packages/lib/site-packages
11.22.27 :Generating summary of Oryx build
11.22.27 :Deployment Log file does not exist in /tmp/oryx-build.log
11.22.27 :The logfile at /tmp/oryx-build.log is empty. Unable to fetch the summary of build
11.22.29 :Deployment Failed.
11.22.38 :Deployment failed.'
Based on previous bugs i have checked the networking aspect of the function and checked the app settings and it the solutions previoulsy proposed have not helped in fixing the issue.
Hi @ChrisJr , Oryx build command needs access to the internet. A common reason people are running function apps in vnet integrations is to restrict outbound traffic. It'll need access to https://oryx-cdn.microsoft.io for a successful build. Please refer to https://github.com/microsoft/Oryx/issues/1126#issuecomment-951738647 for possible solution.
Duplicate of https://github.com/microsoft/Oryx/issues/1126 closing this one