通过docker-compose方式安装并启动服务测试,docx转换pdf文件报错,Failed, check logs
QRhiGles2: Failed to create temporary context QRhiGles2: Failed to create context This plugin does not support createPlatformVulkanInstance QVulkanInstance: Failed to initialize Vulkan Unable to detect GPU vendor. WebEngineContext is used before QtWebEngineQuick::initialize() or OpenGL context creation failed. [742:742:0724/032521.835050:ERROR:zygote_host_impl_linux.cc(100)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
ENOENT: no such file or directory, open './data/output/1/1/全志硬件清单.pdf' path: "./data/output/1/1/全志硬件清单.pdf", syscall: "open", errno: -2, code: "ENOENT"
ENOENT: no such file or directory, open './data/output/1/1/全志硬件清单.pdf' path: "./data/output/1/1/全志硬件清单.pdf", syscall: "open", errno: -2, code: "ENOENT"
ENOENT: no such file or directory, open './data/output/1/1/全志硬件清单.pdf' path: "./data/output/1/1/全志硬件清单.pdf", syscall: "open", errno: -2, code: "ENOENT"
ENOENT: no such file or directory, open './data/output/1/1/全志硬件清单.pdf' path: "./data/output/1/1/全志硬件清单.pdf", syscall: "open", errno: -2, code: "ENOENT"
stderr: Error producing PDF. ! LaTeX Error: File `lmodern.sty' not found.
Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: sty)
Enter file name: ! Emergency stop. <read *>
l.19 \ifPDFTeX
Failed to convert ./data/uploads/1/1/全志硬件清单.docx from docx to pdf using pandoc. error: Error: Command failed: pandoc --pdf-engine=xelatex ./data/uploads/1/1/全志硬件清单.docx -f docx -t pdf -o ./data/output/1/1/全志硬件清单.pdf Error producing PDF. ! LaTeX Error: File `lmodern.sty' not found.
Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: sty)
Enter file name: ! Emergency stop. <read *>
Could you test the :main image, I think this has been fixed
Mostly helpful for me was to make convertX running as "non-root". For example set in "/etc/systemd/system/convertx.service":
[Service] User=convertx ExecStart=/usr/bin/bun index.ts ...
and change the permissions/ownership:
useradd -r -s /bin/false convertx chown -R convertx:convertx /opt/convertx systemctl daemon-reexec systemctl restart convertx
Would it be possible to make the whole container non-root without breaking existing installations?