Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong error message – when permissions are not enough #154

Open
RenatasDidysis opened this issue Jan 6, 2025 · 0 comments
Open

Wrong error message – when permissions are not enough #154

RenatasDidysis opened this issue Jan 6, 2025 · 0 comments

Comments

@RenatasDidysis
Copy link

RenatasDidysis commented Jan 6, 2025

Ubuntu server 24.01 with lastest updates:

  1. Command run as user "test":

unoconvert --convert-to 'pdf' '/tmp/PhpWordYhQztH.docx' '/tmp/PhpWordYhQztH.pdf'

  1. file /tmp/PhpWordYhQztH.docx - permissions "600"
  2. systemd unoconv service - runs as "www-data" user :
[Unit]
Description=unoconv
After=network.target
[Service]
User=www-data
Group=www-data
PIDFile=/run/unoconv.pid
ExecStart=/usr/local/bin/unoserver
ExecStop=/bin/kill -- $MAINPID
TimeoutStopSec=2
WorkingDirectory=/tmp
StandardOutput=file:/var/log/unoconv.output
StandardError=file:/var/log/unoconv.err
SyslogIdentifier=unoconv
RestartSec=10
Restart=always
[Install]
WantedBy=multi-user.target

Incorrect error message: type detection failed

'error' => 'INFO:unoserver:Connecting.
INFO:unoserver:Converting.
Traceback (most recent call last):
  File "/usr/local/bin/unoconvert", line 8, in <module>
    sys.exit(converter_main())
             ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/unoserver/client.py", line 355, in converter_main
    result = client.convert(
             ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/unoserver/client.py", line 142, in convert
    result = proxy.convert(
             ^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/xmlrpc/client.py", line 1461, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/xmlrpc/client.py", line 1182, in single_request
    return self.parse_response(resp)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/xmlrpc/client.py", line 1351, in parse_response
    return u.close()
           ^^^^^^^^^
  File "/usr/lib/python3.12/xmlrpc/client.py", line 668, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault 1: \'<class \\\'[unoserver.converter.com](http://unoserver.converter.com/).sun.star.lang.IllegalArgumentException\\\'>:Unsupported URL <file:///tmp/PhpWordYhQztH.docx>: "type detection failed" at ./framework/source/loadenv/loadenv.cxx:189\'
@RenatasDidysis RenatasDidysis changed the title Wrong error message - when bad permissions Wrong error message – when permissions are not enough Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant