Modify

Opened 16 months ago

Last modified 16 months ago

#11125 new defect

OSError: [Errno 13] Permission denied

Reported by: anonymous Owned by: bsavelev
Priority: normal Component: DocRenderPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description (last modified by rjollos)

Hello I've installed everything but I got the error:

Warning: HTML preview using DocRenderer failed (OSError: [Errno 13] Permission denied)

I tried:

chown -R apache:apache /usr/local/bin/ooextract.py
chmod -R g+w /usr/local/bin/ooextract.py

but no success

soffice is running:

4 S     0 24990     1  2  80   0 - 168206 poll_s pts/0   00:00:00 soffice.bin

from the path:

SOFFICE_PATH="/opt/libreoffice4.0/program/soffice.bin"

Attachments (0)

Change History (15)

comment:1 Changed 16 months ago by anonymous

hello

fedora/centos/rhel? selinux enabled?

comment:2 Changed 16 months ago by anonymous

centos

thanks

comment:3 Changed 16 months ago by anonymous

selinux disabled I guess

[root@srvtrac ~]# cat /etc/sysconfig/selinux
cat: /etc/sysconfig/selinux: No such file or directory
[root@srvtrac ~]# sestatus
-bash: sestatus: command not found

comment:4 Changed 16 months ago by bsavelev

maybe more info in logs? audit.log, apache2/error.log?

comment:5 Changed 16 months ago by anonymous

trac.log: no new logs

/var/log/audit/audit.log: no new logs

/var/log/httpd/error_log: no new logs

/var/log/httpd/access_log:

192.168.105.12 - - [29/May/2013:12:36:53 +0200] "GET /trac/projects/attachment/ticket/517/Problema-sovrapposizione-indirizzi-2013-05-27.doc HTTP/1.1" 304 - "http://srvtrac/trac/projects/ticket/517" "Mozilla/5.0 (Windows NT 6.0; rv:22.0) Gecko/20100101 Firefox/22.0"

comment:6 Changed 16 months ago by bsavelev

ok.
try to get it works manualy:

chmod a+x /usr/local/bin/ooextract.py

and run

/usr/local/bin/ooextract.py --connection-string=OOO_SOCKET --format=doc --stdout FILENAME

with your OOO_SOCKET and FILENAME

comment:7 Changed 16 months ago by anonymous

[root@srvtrac ~]# /usr/local/bin/ooextract.py --connection-string=socket,host=localhost,port=8100 --format=doc --stdout /root/test.tmp
Traceback (most recent call last):
  File "/usr/local/bin/ooextract.py", line 4, in <module>
    import uno
ImportError: No module named uno

comment:8 Changed 16 months ago by anonymous

comment:9 Changed 16 months ago by anonymous

same

[root@srvtrac ~]# export set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/libreoffice4.0/ure/lib/:/opt/libreoffice4.0/program/

[root@srvtrac ~]# /usr/local/bin/ooextract.py --connection-string=socket,host=localhost,port=8100 --format=doc --stdout /root/test.tmp

Traceback (most recent call last):
  File "/usr/local/bin/ooextract.py", line 4, in <module>
    import uno
ImportError: No module named uno

comment:10 Changed 16 months ago by anonymous

I added the path to uno.py to python path:

export set PYTHONPATH=$PYTHONPATH:/opt/libreoffice4.0/program

then it went a little further:

[root@srvtrac ~]# /usr/local/bin/ooextract.py --connection-string=socket,host=localhost,port=8100 --format=doc --stdout /root/test.tmp
Traceback (most recent call last):
  File "/usr/local/bin/ooextract.py", line 4, in <module>
    import uno
  File "/opt/libreoffice4.0/program/uno.py", line 21, in <module>
    import pyuno
ImportError: dynamic module does not define init function (initpyuno)

but pyuno.py seems to be missing
it doesn't exist inside libreoffice tree

comment:11 Changed 16 months ago by anonymous

checked: pyuno.so and libpyuno.so are already inside /opt/libreoffice4.0/program
I fired my last bullet...

comment:12 Changed 16 months ago by rjollos

  • Description modified (diff)

comment:13 Changed 16 months ago by bsavelev

where you get libreoffice? /opt/libreoffice4.0 says that it doesn't default package

comment:15 Changed 16 months ago by anonymous

I never rebooted the server after the installations (Libreoffice included).
may I need to reboot it?
(must wait 'till tonight as it's in use)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.