graceful-beige
graceful-beige•2y ago

Can I deploy to Azure?

Look like the deployment only support Apify, AWS and GCP
No description
9 Replies
MEE6
MEE6•2y ago
@JAYINGYOUNG just advanced to level 1! Thanks for your contributions! 🎉
Oleg V.
Oleg V.•2y ago
I guess, You can. There is just no tutorial for it i docs.
other-emerald
other-emerald•10mo ago
can anyone help me? i created an azure function app locally and used crawlee, It works. But if i deploy it to the azure it doesn't work. I'm getting timeout issue. Normally it doesn't take too much time locally. As i understand, crawlee doesn't start.
rival-black
rival-black•10mo ago
Similar situation, i'm trying to run playwright/crawlee in azure container app.
equal-aqua
equal-aqua•9mo ago
I am having the same problem. @mjh any success ? So, I managed to make it work on Azure (App Service + Container) using playwright only with the flag args: ['--disable-dev-shm-usage']. However Crawlee keeps being stuck in a loop even with this option: launchContext: { launchOptions: { args: ['--disable-dev-shm-usage'], // ⬅ Ensures it works in Docker }, }, maybe Crawlee is overriding some options by default ? ERROR PlaywrightCrawler: Request failed and reached maximum retries. requestHandler timed out after 110 seconds (7P99bQWrhxCt2Fu). Had this error all day long while trying to run my script with Crawlee.
continuing-cyan
continuing-cyan•9mo ago
check your cpu and ram usage in your container. crawlee currently doesnt play nicely with cgroups which are what containers use to enforce resource limits.
continuing-cyan
continuing-cyan•9mo ago
im actually working on a pr for this problem as we speak lol https://github.com/apify/crawlee/pull/2834
GitHub
feat: improved cross platform metric collection by NathanSavageKaim...
This PR improves CPU and RAM metric collection across multiple environments. The CPU metrics are now fully cGroup aware report properly in containerised environments with cpu quota limits. The memo...
equal-aqua
equal-aqua•9mo ago
i ended up running directly npx playwright install --width-deps on my app service (not on docker) i guess its not the best option but it works
continuing-cyan
continuing-cyan•9mo ago
this pr has now been merged, try crawlee 3.12.3-beta.28 and enable systemInfoV2. Crawlee should now accurately read your container stats

Did you find this page helpful?