PDF to Word don't work sudo issue
-
wrote 13 days ago last edited by
Hello developers,
I encountered several errors while trying to convert a PDF to DOCX using the following command on the log.
soffice --headless --nologo --infilter=writer_pdf_import --convert-to docx --outdir /tmp/output_8499419009593593499 /tmp/input_6190689326235252714.pdf
The errors included:javaldx failed!
Warning: failed to read path from javaldx
dconf-CRITICAL **: unable to create directory '/root/.cache/dconf': Permission denied. dconf will not work properly.
Fontconfig error: No writable cache directoriesIf im running the command from the terminal with the sudo, that work !
sudo soffice --headless --nologo --infilter=writer_pdf_import --convert-to docx --outdir /tmp/output_8499419009593593499 /tmp/input_6190689326235252714.pdf
It seems that the errors were related to permissions. Using sudo allowed the command to execute successfully. However, it would be great if these permission issues could be addressed so that the command can run without requiring sudo. -
wrote 13 days ago last edited by
FYI to Cloudron guys, Users that have reported this issue often say its some permission issue
https://github.com/Stirling-Tools/Stirling-PDF/issues/2928 -
wrote 13 days ago last edited by
Hello
If I understand correctly, the issue was resolved by changing the custom user to none on the Docker image. Please Cloudron teams can you make the necessary adjustments to the image package? -
-
-
wrote 13 days ago last edited by
Thank you
Works for me !