Oryx icon indicating copy to clipboard operation
Oryx copied to clipboard

Error: Oops... An unexpected error has occurred.\n/opt/Kudu/Scripts/starter.sh oryx build

Open sssparsh05 opened this issue 3 years ago • 3 comments

Command: oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.9 -i /tmp/8da0723c3cfb3eb -p packagedir=.python_packages/lib/site-packages 2022-03-16T08:07:35.2895898Z Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx 2022-03-16T08:07:35.2904505Z You can report issues at https://github.com/Microsoft/Oryx/issues 2022-03-16T08:07:35.2904792Z 2022-03-16T08:07:35.2905333Z Oryx Version: 0.2.20211207.1, Commit: 46633df49cc8fbe9718772a3c894df221273b2af, ReleaseTagName: 20211207.1 2022-03-16T08:07:35.2905666Z 2022-03-16T08:07:35.2906008Z Build Operation ID: |xCK5tMTQ0AE=.d72da473_ 2022-03-16T08:07:35.2906865Z Repository Commit : 9e990916-8d78-4528-ae52-d7226545f561 2022-03-16T08:07:35.2907103Z 2022-03-16T08:07:35.2907418Z Detecting platforms... 2022-03-16T08:07:35.2907814Z Error: Oops... An unexpected error has occurred. 2022-03-16T08:07:35.2909115Z Error: Oops... An unexpected error has occurred.\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.9 -i /tmp/8da0723c3cfb3eb -p packagedir=.python_packages/lib/site-packages 2022-03-16T08:07:35.2909975Z Deployment Failed. 2022-03-16T08:07:35.2952562Z ##[error]Failed to deploy web package to App Service. 2022-03-16T08:07:35.2964864Z ##[debug]Processed: ##vso[task.issue type=error;]Failed to deploy web package to App Service. 2022-03-16T08:07:35.2968662Z ##[error]To debug further please check Kudu stack trace URL : https://$tdsml-func-python-we-dev:@tdsml-func-python-we-dev.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace 2022-03-16T08:07:35.2970598Z ##[debug]Processed: ##vso[task.issue type=error;]To debug further please check Kudu stack trace URL : https://$tdsml-func-python-we-dev:@tdsml-func-python-we-dev.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace 2022-03-16T08:07:35.3065751Z ##[debug]Deployment Failed with Error: Error: Package deployment using ZIP Deploy failed. Refer logs for more details. 2022-03-16T08:07:35.3066691Z ##[debug]task result: Failed

sssparsh05 avatar Mar 16 '22 09:03 sssparsh05

Experiencing the same issue. We were using a VNET however have disconnected it since, yet the problem has persisted.

I can see connectivity to the function app is ok, but it appears accessing the repo url and oxy url is not resolving properly in the function app.

2022-05-11T11:30:16.7923793Z Got service connection details for Azure App Service:'func-cc-nonprod-ase-01' 2022-05-11T11:30:18.0017738Z Trying to update App Service Application settings. Data: {"WEBSITES_ENABLE_APP_SERVICE_STORAGE":"true"} 2022-05-11T11:30:18.2012391Z App Service Application settings are already present. 2022-05-11T11:30:21.3681355Z Package deployment using ZIP Deploy initiated. 2022-05-11T11:36:06.2774507Z Updating submodules. 2022-05-11T11:36:06.2778279Z Preparing deployment for commit id '2c27a4ef-f'. 2022-05-11T11:36:06.2779082Z PreDeployment: context.CleanOutputPath False 2022-05-11T11:36:06.2779838Z PreDeployment: context.OutputPath /home/site/wwwroot 2022-05-11T11:36:06.2780465Z Repository path is /tmp/zipdeploy/extracted 2022-05-11T11:36:06.2781160Z Running oryx build... 2022-05-11T11:36:06.5078286Z Command: oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.8 -i /tmp/8da3342227ed297 -p packagedir=.python_packages/lib/site-packages 2022-05-11T11:36:06.5079273Z Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx 2022-05-11T11:36:06.5079735Z You can report issues at https://github.com/Microsoft/Oryx/issues 2022-05-11T11:36:06.5079939Z 2022-05-11T11:36:06.5080360Z Oryx Version: 0.2.20211207.1, Commit: 46633df49cc8fbe9718772a3c894df221273b2af, ReleaseTagName: 20211207.1 2022-05-11T11:36:06.5080693Z 2022-05-11T11:36:06.5080963Z Build Operation ID: |w5rjMT3hgXo=.5a5d6561 2022-05-11T11:36:06.5081384Z Repository Commit : 2c27a4ef-f34e-4d9c-a48a-3352df521d0b 2022-05-11T11:36:06.5081884Z 2022-05-11T11:36:06.5082153Z Detecting platforms... 2022-05-11T11:36:06.5082488Z Error: Oops... An unexpected error has occurred. 2022-05-11T11:36:06.5083227Z Error: Oops... An unexpected error has occurred.\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.8 -i /tmp/8da3342227ed297 -p packagedir=.python_packages/lib/site-packages 2022-05-11T11:36:06.5084252Z 2022-05-11T11:36:06.5084739Z Generating summary of Oryx build 2022-05-11T11:36:06.5085173Z Deployment Log file does not exist in /tmp/oryx-build.log 2022-05-11T11:36:06.5095352Z The logfile at /tmp/oryx-build.log is empty. Unable to fetch the summary of build 2022-05-11T11:36:06.5095888Z Deployment Failed. 2022-05-11T11:36:06.5138847Z ##[error]Failed to deploy web package to App Service. 2022-05-11T11:36:06.5152794Z ##[error]To debug further please check Kudu stack trace URL : https://$func-cc-nonprod-ase-01:***@func-cc-nonprod-ase-01.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace 2022-05-11T11:36:06.5155612Z ##[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details._

ross-argent-gs avatar May 11 '22 12:05 ross-argent-gs

Did you manage to find the fix for this? I am also experiencing the same issue.

mark-fleet-bzy avatar Jul 04 '22 15:07 mark-fleet-bzy

Me as well

barmettlerl avatar Jul 05 '22 14:07 barmettlerl

We're closing this issue due to its age. If this is still impacting you please open a new issue at https://github.com/projectkudu/kudu and simply link back to this one.

simonjj avatar Jan 11 '24 17:01 simonjj