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

For me on Linux, the only way to resolve is by installing some dependencies: #8964

Closed
ShnAlmighty opened this issue Sep 15, 2022 · 2 comments

Comments

@ShnAlmighty
Copy link

For me on Linux, the only way to resolve is by installing some dependencies:

sudo apt-get update
sudo apt-get install -y gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
sudo apt-get install -y libgbm-dev

Source

Originally posted by @tiagoboeing in #5662 (comment)

I guess some of these packages are not present in alpine based systems, is there something similar for alpine based systems?

Originally posted by @ShnAlmighty in #5662 (comment)

@OrKoN
Copy link
Collaborator

OrKoN commented Sep 15, 2022

Please see https://pptr.dev/troubleshooting#running-on-alpine (happy to review a PR to update the troubleshoot doc if some instructions can be updated).

@OrKoN OrKoN closed this as not planned Won't fix, can't repro, duplicate, stale Sep 15, 2022
@ShnAlmighty
Copy link
Author

ShnAlmighty commented Sep 16, 2022

Please see https://pptr.dev/troubleshooting#running-on-alpine (happy to review a PR to update the troubleshoot doc if some instructions can be updated).

I integrated the changes in my Dockerfile but I am still getting 504 Gateway Time-out error in my API response.

Also, the image I am using in Dockerfile is node:14.16.1-alpine.

I have tried changing the nginx config file also to allow more processing time for the API before sending response and also made the changes in the express app for the same but still getting the same error.

The API works by scrapping 30 pages and then sending back relevant data. Locally it is working fine but for some reason when using in Docker container, it is failing in the first page only after scrapping just 4 data sets.

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

2 participants