-
Notifications
You must be signed in to change notification settings - Fork 118
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
puppeteer not working on runtime v4 and nodejs 16 #815
Comments
@CooperLink @pragnagopa could you check please why V4 Node is missing those dependencies? |
Thank you for filing @johnayoub . Could you please let me know how your app was setup on v3? Specifically which Node version were you using. I will investigate this now. |
@CooperLink I can confirm that both node 12 & 14 work on V3. We are using Linux with an app service plan. |
Alright thank you John, as of now we don't have plans to include Puppeteer dependencies in the v4 node images. We will discuss adding them in our January release. I am going to leave the issue open for now. In general, we try not to include dependencies unrelated to functions in the images. But, we will evaluate this case. In the meantime, another possible solution would be to create a custom image using the instructions here. You could add the necessary puppeteer dependencies to the existing v4 images using this. I understand this takes engineering work and I will keep you updated here after the holidays with any changes to the plan |
@CooperLink Yes, we currently cannot upgrade to V4 and are blocked by those missing dependencies as they were available in V3 and this is now a breaking change. I understand that we can use a custom image but would really like to avoid using them in this case. I already see that the dependencies are commented out in the docker file and one of the PRs was meant to add it back. Please see the following issue. Also, this was advertised by @anthonychu in a blog post so I'm not sure why the change in direction. Will wait to hear from you after the holidays. Thanks! |
I am running into the same issue with Node 14 on Elastic Premium 1 plan for V4. Consumption plan works just fine on Node 14 with V4. On V3 both consumption and elastic premium plans work without issues. This seems like an inconsistency?
|
Thank you for filing Ramon. I am collecting information about this for our meeting on it in January. I will keep the issue open to collect more feedback. I will update this issue when I have more information |
Same issue here. Luckily I'm not the only one who faced the same issue. |
Same here, stopped working after switching to Runtime 4. Node 14 or Node 16 no matter, fails in both cases. Node 14 EOL is pretty soon, so have to update to Runtime 4. I see these dependencies added in this commit to older node version: https://github.com/Azure/azure-functions-docker/pull/225/files Any status update about that? |
Brief update here : our team is currently discussing bringing these dependencies back into the images. I cannot say anything for certain at this time. But, it looks like we will bring back these dependencies starting in the next Linux Docker Image release 4.16.0. Sorry for the inconvenience and I will update this thread when I have more certain information. |
Happy to announce that the Chrome Headless dependencies have been added to the v4 node Functions images. They should be available as a result of our next release 4.16.0. My projected timeline for that is mid February with full release by March. If anyone would like to test with the image you can do a Docker Build on the node14.Dockerfile or other versions. One callout for the future, we will not be including these dependencies in Functions v5 releases. In the future, custom use cases like this will likely require custom images. |
@CooperLink Are these dependencies available only when using the image? I'm not using explicitely image, but deploying code as zip package to function environment. |
I was previously able to run puppeteer on runtime v3. however, when upgrading to v4 I encountered missing dependencies. running ldd on chrome returns the following:
I'm using the App Service plan version not consumption which was working as of V3.
The text was updated successfully, but these errors were encountered: