PDF to Word don't work sudo issue
-
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. -
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 -
N nebulon marked this topic as a question
-
N nebulon has marked this topic as solved