Azure / webapps-deploy

Enable GitHub developers to deploy to Azure WebApps using GitHub Actions
MIT License
264 stars 190 forks source link

\n/opt/Kudu/Scripts/starter.sh "/home/site/deployments/tools/deploy.sh" Deployment Failed. deployer = GITHUB_ZIP_DEPLOY deploymentPath = ZipDeploy. Extract zip. Error: Failed to deploy web package to App Service. Error: Deployment Failed, Package deployment using ZIP Deploy failed. Refer logs for more details. #373

Open anishbishnoi127 opened 10 months ago

anishbishnoi127 commented 10 months ago

Having this issue in next js 13 and next js 14.

\n/opt/Kudu/Scripts/starter.sh "/home/site/deployments/tools/deploy.sh" Deployment Failed. deployer = GITHUB_ZIP_DEPLOY deploymentPath = ZipDeploy. Extract zip. Error: Failed to deploy web package to App Service. Error: Deployment Failed, Package deployment using ZIP Deploy failed. Refer logs for more details.

2:39:16 PM Updating submodules. 2:39:17 PM Preparing deployment for commit id 'eb8301ec-2'. 2:39:17 PM PreDeployment: context.CleanOutputPath False 2:39:17 PM PreDeployment: context.OutputPath /home/site/wwwroot 2:39:17 PM Generating deployment script. Show Logs... 2:39:18 PM Running deployment command... Show Logs... 2:42:50 PM Deployment Failed. deployer = GITHUB_ZIP_DEPLOY deploymentPath = ZipDeploy. Extract zip. Command: "/home/site/deployments/tools/deploy.sh" Handling Basic Web Site deployment. Kudu sync from: '/tmp/zipdeploy/extracted' to: '/home/site/wwwroot' Copying file: 'README.md' Copying file: 'ecosystem.config.js' Copying file: 'next-env.d.ts' Copying file: 'next.config.js' Copying file: 'package-lock.json' Copying file: 'package.json' Copying file: 'postcss.config.js' Copying file: 'tailwind.config.ts' Copying file: 'tsconfig.json' Deleting file: '.env' Copying file: 'build/BUILD_ID' Copying file: 'build/app-build-manifest.json' Copying file: 'build/app-path-routes-manifest.json' Copying file: 'build/build-manifest.json' Copying file: 'build/export-marker.json' Copying file: 'build/images-manifest.json' Copying file: 'build/next-minimal-server.js.nft.json' Copying file: 'build/next-server.js.nft.json' Copying file: 'build/package.json' Copying file: 'build/prerender-manifest.js' Copying file: 'build/prerender-manifest.json' Copying file: 'build/react-loadable-manifest.json' Copying file: 'build/required-server-files.json' Copying file: 'build/routes-manifest.json' Copying file: 'build/trace' Copying file: 'build/cache/.tsbuildinfo' Copying file: 'build/cache/config.json' Copying file: 'build/cache/eslint/.cache_l38lj4' Copying file: 'build/cache/webpack/client-production/0.pack' Copying file: 'build/cache/webpack/client-production/index.pack' Copying file: 'build/cache/webpack/server-production/0.pack' Copying file: 'build/cache/webpack/server-production/index.pack' Copying file: 'build/server/app-paths-manifest.json' Copying file: 'build/server/font-manifest.json' Copying file: 'build/server/middleware-build-manifest.js' Copying file: 'build/server/middleware-manifest.json' Copying file: 'build/server/middleware-react-loadable-manifest.js' Copying file: 'build/server/next-font-manifest.js' Copying file: 'build/server/next-font-manifest.json' Copying file: 'build/server/pages-manifest.json' Copying file: 'build/server/server-reference-manifest.js' Copying file: 'build/server/server-reference-manifest.json' Copying file: 'build/server/webpack-runtime.js' Copying file: 'build/server/app/_not-found.html' Copying file: 'build/server/app/_not-found.js' Copying file: 'build/server/app/_not-found.js.nft.json' Copying file: 'build/server/app/_not-found.meta' Copying file: 'build/server/app/_not-found.rsc' Copying file: 'build/server/app/_not-found_client-reference-manifest.js' Omitting next output lines... Processed 1463 files... Processed 2484 files... Processed 3761 files... Processed 5347 files... Processed 6841 files... Processed 8358 files... Processed 9654 files... Processed 11171 files... Processed 11642 files... Processed 13116 files... Error: ENOSPC: no space left on device, close An error has occurred during web site deployment. Kudu Sync failed \n/opt/Kudu/Scripts/starter.sh "/home/site/deployments/tools/deploy.sh"

sgollapudi77 commented 10 months ago

Hey @anish-dev-127 did you try scaling up your app ? Here is the documentation for the same - https://learn.microsoft.com/en-us/azure/app-service/manage-scale-up

nagendramishr commented 10 months ago

Your issue is : Error: ENOSPC: no space left on device, close

Deploying to the service is using more space than is available on the service, this defaults to 5 zip files and you can change it down to 1.

go to your azure app settings and set this: SCM_MAX_ZIP_PACKAGE_COUNT=1

then re-dpeloy, it should delete all the older zip files.

anishbishnoi127 commented 9 months ago

where this option ? I haven't found it.

github-actions[bot] commented 9 months ago

This issue is idle because it has been open for 14 days with no activity.

PMCS64 commented 6 months ago

Your issue is : Error: ENOSPC: no space left on device, close

Deploying to the service is using more space than is available on the service, this defaults to 5 zip files and you can change it down to 1.

go to your azure app settings and set this: SCM_MAX_ZIP_PACKAGE_COUNT=1

then re-dpeloy, it should delete all the older zip files.

This worked for me. For those asking where to define this, in your Azure Web Service (in the portal) search on the left hand side bar for "Configuration".