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

PDF Generation broken #163

Closed
p-a-s-c-a-l opened this issue Jul 13, 2020 · 8 comments
Closed

PDF Generation broken #163

p-a-s-c-a-l opened this issue Jul 13, 2020 · 8 comments
Assignees
Labels
bug Something isn't working SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless

Comments

@p-a-s-c-a-l
Copy link
Member

Both on DEV and PROD:

Error generating document: Failed to generate PDF: Loading pages (1/6) [> ] 0% [======> ] 10% QSslSocket: cannot resolve CRYPTO_num_locks QSslSocket: cannot resolve CRYPTO_set_id_callback QSslSocket: cannot resolve CRYPTO_set_locking_callback QSslSocket: cannot resolve sk_free QSslSocket: c

See also clarity-h2020/csis-technical-validation#76 (comment)

Probably an error in the HTML2PDF library. Which one are we using?

@p-a-s-c-a-l p-a-s-c-a-l added bug Something isn't working SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless labels Jul 13, 2020
@patrickkaleta
Copy link
Contributor

Both on DEV and PROD:

Error generating document: Failed to generate PDF: Loading pages (1/6) [> ] 0% [======> ] 10% QSslSocket: cannot resolve CRYPTO_num_locks QSslSocket: cannot resolve CRYPTO_set_id_callback QSslSocket: cannot resolve CRYPTO_set_locking_callback QSslSocket: cannot resolve sk_free QSslSocket: c

See also clarity-h2020/csis-technical-validation#76 (comment)

Probably an error in the HTML2PDF library. Which one are we using?

We're using wkhtmltopdf (set in the Entity print settings) in the version 0.12.4 (I believe).

The error message seems familiar. I think we had that problem with QSslSocket in the past. AFAIK @DenoBeno fixed it be installing/updating something inside the docker-container? And maybe that got lost after the update of the Docker container?

@patrickkaleta
Copy link
Contributor

Error generating document: Failed to generate PDF: Loading pages (1/6) [> ] 0% [======> ] 10% QSslSocket: cannot resolve CRYPTO_num_locks QSslSocket: cannot resolve CRYPTO_set_id_callback QSslSocket: cannot resolve CRYPTO_set_locking_callback QSslSocket: cannot resolve sk_free QSslSocket: c

Probably related to this issue. Seems like Debian and wkhtmltopdf 0.12.4 have a problematic relationship. The proposed solution by updating wkhtmltopdf to version 0.12.5 is not the solution, since that version itself has its problems (see 1, 2), so I believe we went with something like proposed in this comment.

But a month ago version 0.12.6 was finally released, which seems to solve some of the issues introduced in 0.12.5.

@p-a-s-c-a-l p-a-s-c-a-l changed the title PDF Genration broken PDF Generation broken Jul 15, 2020
@p-a-s-c-a-l
Copy link
Member Author

h4cc/wkhtmltopdf-amd64 seems to be abandoned. wkhtmltopdf. can be downloaded from here, so I'll update the docker image.

@p-a-s-c-a-l
Copy link
Member Author

Error generating document: Failed to generate PDF: sh: 1: /app/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64: not found

Now the question is how to tell phpwkhtmltopdf where to find the wkhtmltopdf binary?

@patrickkaleta
Copy link
Contributor

Error generating document: Failed to generate PDF: sh: 1: /app/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64: not found

Now the question is how to tell phpwkhtmltopdf where to find the wkhtmltopdf binary?

That should be possible in the Entity print settings. There you can specify the binary location.

@p-a-s-c-a-l
Copy link
Member Author

PDF Generation is working again on DEV. I'm going to update PROD with the new docker image.

p-a-s-c-a-l pushed a commit that referenced this issue Jul 15, 2020
@patrickkaleta
Copy link
Contributor

I'm going to update PROD with the new docker image.

I think there is a webinar taking place right now or just about to.

@p-a-s-c-a-l
Copy link
Member Author

p-a-s-c-a-l commented Jul 15, 2020

PROD is updated now. I had to lock drupal/group at 1.0.0-rc5. See #166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless
Projects
None yet
Development

No branches or pull requests

4 participants