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

enketo express image does not support PDF generation. #260

Open
kryptt opened this issue Nov 27, 2019 · 1 comment
Open

enketo express image does not support PDF generation. #260

kryptt opened this issue Nov 27, 2019 · 1 comment

Comments

@kryptt
Copy link

kryptt commented Nov 27, 2019

The docker image as it is currently shipped fails to generate valid PDF files.

1st issue is it is missing x11 and chromium related system libraries;
running apt install chromium-chromedriver inside the instance helped.

after the workaround for the first issue, it fails with

{
    "message": "PDF generation failed: Failed to launch chrome!\n[1127/144000.634343:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.\n\n\nTROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md\n",
    "code": "500"
}

since the docker image never downgrades from the root user which would be good practice anyway.. I placed this in this project but let me know if it is the wrong place to do so.

Thanks!

@jnm
Copy link
Member

jnm commented Jan 9, 2020

ok, thank you. i'm not enthusiastic about adding x11 and chromium to the image, but we do want to support pdf generation eventually.

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