Bug 157424 - NO-GUI headless convert-to function error in 7.6.1.2 60(Build:2)
Summary: NO-GUI headless convert-to function error in 7.6.1.2 60(Build:2)
Status: RESOLVED DUPLICATE of bug 158695
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.6.1.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Commandline
  Show dependency treegraph
 
Reported: 2023-09-25 07:09 UTC by Zsolt Bákonyi
Modified: 2024-01-28 03:58 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zsolt Bákonyi 2023-09-25 07:09:33 UTC
Description:
After upgrading via ppa to 7.6.1.2 60(Build:2) version, Ubuntu Server  20.04 LTS gives error.

soffice --headless --convert-to pdf path/to/file --> Error: source file could not be loaded

Ubuntu 20.04 LTS Desktop version has no error with the same version, only on Server. The installation difference is libreoffice vs libreoffice-nogui. Previous versions doesent produces this error, e.g: 7.5.6.2 50(Build:2) work perfect.

Steps to Reproduce:
1. soffice --headless --convert-to pdf path/to/file

Actual Results:
Error: source file could not be loaded

Expected Results:
convert path/to/file as a Writer document -> path/to/file using filter : writer_pdf_Export


Reproducible: Always


User Profile Reset: No

Additional Info:
soffice --version
LibreOffice 7.6.1.2 60(Build:2)
Comment 1 Zsolt Bákonyi 2023-10-09 12:55:44 UTC
Lots of no-gui version fails in Ubuntu Server 20.04 LTS with "Error: source file could not be loaded" message.

Specific examples:

- LibreOffice 6.4.7.2 40(Build:2)  --> Same error with xlsx with --convert-to html
- LibreOffice 7.5.3.2 50(Build:2)  --> Same error with xlsx with --convert-to html

!!! Only LibreOffice 7.5.6.2 50(Build:2) works perfectly in both case. !!! Example outputs:

soffice --headless --convert-to pdf teszt.docx    
convert /home/zsolt/teszt.docx -> /home/zsolt/teszt.pdf using filter : writer_pdf_Export

soffice --headless --convert-to html teszt.xlsx    
convert /home/zsolt/teszt.xlsx -> /home/zsolt/teszt.html using filter : HTML (StarCalc)

Fortunately *ppa:libreoffice/libreoffice-still* contains the good version so i had to change the repos in all servers
Comment 2 Stéphane Guillou (stragu) 2023-10-09 13:28:42 UTC
I can't reproduce convert ODT or DOCX to PDF with:

libreoffice7.6 --headless --convert-to pdf some_doc

and:

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

...but this isn't a -nogui install.

(In reply to Zsolt Bákonyi from comment #1)
> !!! Only LibreOffice 7.5.6.2 50(Build:2) works perfectly in both case. !!!
Maybe a fix made it in that version?
Would be interesting to see if version 7.6.2.1 also works for you as -nogui, using this PPA: https://launchpad.net/~libreoffice/+archive/ubuntu/ppa
Any chance you could test that one too?
Comment 3 Zsolt Bákonyi 2023-10-09 13:47:04 UTC
Hi!

On normal Ubuntu Desktop no error. Personally I use Kubuntu 20.04 LTS version with LibreOffice 7.6.2.1 60(Build:1) and this problem does not appear. And I had no issues with older versions.

Only no-gui installation produces these issues, I've tested on 3 different Ubuntu 20.04 Server LTS.
Comment 4 Buovjaga 2023-10-10 09:17:42 UTC
Related:
https://packages.debian.org/sid/libreoffice-nogui
https://packages.debian.org/sid/libreoffice-core-nogui

I could not find out what manipulations have been made to this thing.
Comment 5 Buovjaga 2023-10-10 09:28:08 UTC
Please report it to Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libreoffice/
Comment 6 Zsolt Bákonyi 2023-10-11 09:09:32 UTC
Something I don't understand if I use  LibreOffice 7.5.6.2 50(Build:2) no-gui installation on these systems, it  works perfectly in both case ( xlsx and docx conversion )

Maybe somethng went wrong while packaging in PPA?
Comment 7 Buovjaga 2023-10-11 09:34:38 UTC
(In reply to Zsolt Bákonyi from comment #6)
> Something I don't understand if I use  LibreOffice 7.5.6.2 50(Build:2)
> no-gui installation on these systems, it  works perfectly in both case (
> xlsx and docx conversion )
> 
> Maybe somethng went wrong while packaging in PPA?

Ubuntu quality assurance will investigate it after you report it to them.
Comment 8 Zsolt Bákonyi 2023-10-11 09:38:17 UTC
Thank you, I did it.
Comment 9 Rene Engelhard 2024-01-14 13:42:00 UTC
This is the same as https://bugs.documentfoundation.org/show_bug.cgi?id=158695

*** This bug has been marked as a duplicate of bug 158695 ***
Comment 10 Stéphane Guillou (stragu) 2024-01-28 03:58:29 UTC
(In reply to Zsolt Bákonyi from comment #8)
> Thank you, I did it.
Zsolt, please share a link if you can. Thank you!