Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support deferred symlinks by turning off Kudu comparison between ready-to-deploy files and files already in the webapp #43

Open
antoine-coulon opened this issue Dec 13, 2022 · 5 comments

Comments

@antoine-coulon
Copy link

Related to projectkudu/kudu#3420

Hello,

I'm currently struggling using the zipDeploy deployment method using the AzureWebApp@1 task which appears to not support symlinks (related Azure/webapps-deploy#54, projectkudu/kudu#3295, projectkudu/kudu#3229).

A workaround we found for that we removed all the symlinks from the artifact we try to "zipDeploy". It works well, as the webappLinux can handle correctly symlinks (created after the deployment). However when doing other deployments afterwards, kudusync does heavy comparisons about files that should be added/removed between the artifact we're trying to deploy and the one that was already shipped in the webapp. This has for consequence of triggering errors during the deploy phase such as Error: ENOENT: no such file or directory, stat '/home/site/wwwroot/common/temp/node_modules/.pnpm/@fastify[email protected]/node_modules because Kudu can't handle symlinks correctly.

Is there any way of disabling that comparison and just remove everything from the destination folder and re-deploy everything with no comparison process trying to resolve symlinks? Currently it prevents us from deploying correctly our monorepos and prevent us from benefiting of the latest features available in the Node.js ecosystem.

@kfiroo
Copy link

kfiroo commented Feb 5, 2024

Any progress on this issue? I'm also experiencing this issues with Kudu and pnpm symlinks 🙏🏼

@antoine-coulon
Copy link
Author

@kfiroo I would advise you to switch to Docker deployments, this issue will never be fixed.

@kfiroo
Copy link

kfiroo commented Feb 6, 2024

😢
Thanks @antoine-coulon 🙏🏼

@jdkemme
Copy link

jdkemme commented Feb 21, 2024

Ran into this as well with php artisan storage:link. Tis a sad day.

Error: ENOENT: no such file or directory, stat '/home/site/wwwroot/public/storage',,0

@kfiroo
Copy link

kfiroo commented Feb 29, 2024

@jdkemme I ended up zipping my node_modules folder before running the deploy script (which my entire app folder) and after deployment i unzip it myself, this got me over the annoying deployment failed issue until I find the time to migrate to a proper Docker deployment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants