Hello everyone,
Trying to deploy an Odoo 18 CE Server from GitHub and configuring Apache Web Server 2.4.62 with HTTPS support, I tested the installation, and all the system works well even printing a PDF invoice or a sale order.
The requirement for Odoo 17.0 or Odoo 18.0 needs wkhtmltopdf version : 0.12.6.1-3, sad to say that is not present on FreeBSD ports.
The OS : FreeBSD 14.2-RELEASE-p1 GENERIC amd64
The wkhtmltopdf version installed from ports : wkhtmltopdf 0.12.6 (with patched qt).
Unfortunately when I try to print other reports or options from the UI of the Odoo Server, I get an issue with wkhtmltopdf failing with error : [Invalid Operation Wkhtmltopdf failed (error code: -10)].
Even I did a test print from the cmd to an external URL and the URL of my internal Odoo server :
So I searched the Web for a solution to overcomes the issue for FreeBSD Wkhtmltopdf failed (error code : -10), I got a workaround fix to set up and install a CentOS 7 version of wkhtmltopdf in linux mode for FreeBSD.
Unlucky and unhappy I am, the problem this time, wkhtmltopdf throws another error: "Cannot open an empty file" from the reports, and besides other documents cannot be printed at all, and shows an empty PDF page.
The issue persists even after installing a version of wkhtmltopdf related to Rocky Linux 9.5 with all the requirements in Linux mode for FreeBSD.
Please, can someone have a solution or a fix for this use case of integrating wkhtmltopdf with Odoo in FreeBSD, and at least is to update wkhtmltopdf package to the latest version.
As you can guess, the whole system is useless without the functionality of printing the obligatory and essential reports.
In addition, remembering to point out that a large majority of web applications using the current wkhtmltopdf from FreeBSD ports as a dependency, will have the same problem and will not work.
Trying to deploy an Odoo 18 CE Server from GitHub and configuring Apache Web Server 2.4.62 with HTTPS support, I tested the installation, and all the system works well even printing a PDF invoice or a sale order.
The requirement for Odoo 17.0 or Odoo 18.0 needs wkhtmltopdf version : 0.12.6.1-3, sad to say that is not present on FreeBSD ports.
The OS : FreeBSD 14.2-RELEASE-p1 GENERIC amd64
The wkhtmltopdf version installed from ports : wkhtmltopdf 0.12.6 (with patched qt).
Unfortunately when I try to print other reports or options from the UI of the Odoo Server, I get an issue with wkhtmltopdf failing with error : [Invalid Operation Wkhtmltopdf failed (error code: -10)].
Even I did a test print from the cmd to an external URL and the URL of my internal Odoo server :
Code:
root@desktopfreebsd:~ # wkhtmltopdf https://www.youtube.com /root/Downloads/youtube_com.pdf
Loading pages (1/6)
Segmentation fault (core dumped) ] 47%
root@desktopfreebsd:~ # wkhtmltopdf https://www.yahoo.com /root/Downloads/yahoo_com.pdf
Loading pages (1/6)
Segmentation fault (core dumped) ] 10%
root@desktopfreebsd:~ # wkhtmltopdf https://www.odoo17ce.itlinker.local /root/Downloads/odoo17ce_itlinker_local.pdf
Loading pages (1/6)
Warning: SSL error ignored
Warning: SSL error ignored
Warning: SSL error ignored
Warning: SSL error ignored
Warning: SSL error ignored
Warning: SSL error ignored
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done
root@desktopfreebsd:~ # dmesg | grep "core dumped"
[8732] pid 22607 (wkhtmltopdf), jid 0, uid 1001: exited on signal 10 (core dumped)
[9076] pid 39428 (wkhtmltopdf), jid 0, uid 0: exited on signal 11 (core dumped)
[9136] pid 44041 (wkhtmltopdf), jid 0, uid 0: exited on signal 11 (core dumped)
[9473] pid 63450 (wkhtmltopdf), jid 0, uid 1001: exited on signal 10 (core dumped)
[11412] pid 78091 (wkhtmltopdf), jid 0, uid 0: exited on signal 11 (core dumped)
[11434] pid 79403 (wkhtmltopdf), jid 0, uid 0: exited on signal 11 (core dumped)
[11563] pid 95805 (wkhtmltopdf), jid 0, uid 1001: exited on signal 10 (core dumped)
So I searched the Web for a solution to overcomes the issue for FreeBSD Wkhtmltopdf failed (error code : -10), I got a workaround fix to set up and install a CentOS 7 version of wkhtmltopdf in linux mode for FreeBSD.
Unlucky and unhappy I am, the problem this time, wkhtmltopdf throws another error: "Cannot open an empty file" from the reports, and besides other documents cannot be printed at all, and shows an empty PDF page.
The issue persists even after installing a version of wkhtmltopdf related to Rocky Linux 9.5 with all the requirements in Linux mode for FreeBSD.
Please, can someone have a solution or a fix for this use case of integrating wkhtmltopdf with Odoo in FreeBSD, and at least is to update wkhtmltopdf package to the latest version.
As you can guess, the whole system is useless without the functionality of printing the obligatory and essential reports.
In addition, remembering to point out that a large majority of web applications using the current wkhtmltopdf from FreeBSD ports as a dependency, will have the same problem and will not work.
Last edited: