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

Creation of executable memory area failed: Permission denied #85

Closed
Yuseinov opened this issue Sep 12, 2012 · 14 comments
Closed

Creation of executable memory area failed: Permission denied #85

Yuseinov opened this issue Sep 12, 2012 · 14 comments
Labels

Comments

@Yuseinov
Copy link

In my ubuntu 10.04 64bit Server i can't start unoconv from apache/php - (www-data user).
When i start whit admin(root user) converting work correct. But when start unoconv like www-data user program is crashing with error:

creation of executable memory area failed: Permission denied
unoconv: UnoException during conversion:
The provided document cannot be converted to the desired format.
Leaking python objects bridged to UNO for reason pyuno runtime is not initialized, (the pyuno.bootstrap needs to be called before using any uno classes)

If i start unoconv in sudo mode whit www-data user again still does not work on Server.
In my local machine i don' t have a problem. I can start unoconv from apache, but my server I can't.

I removed SELinux, i have installed xvfb and i have permissions to write and read in the folder and files.

@dagwieers
Copy link
Member

Is it possible that php has a memory limit set that prevents LibreOffice from being loaded ?

I would try and play with this and set it to a very high (e.g. 100MB) value.

@Yuseinov
Copy link
Author

The same error is showing when i start unoconv from console with www-data user.

@dagwieers
Copy link
Member

Right. Maybe same problem, different layer. Is it possible that there is a (memory-related) ulimit set on the system for user www-data preventing LibreOffice from loading ? This is typical for shared webhosting.

@dagwieers
Copy link
Member

Testing on my RHEL server, I had to change the shell of user apache as /sbin/nologin failed. Also you may have to change HOME to something the user has permissions. Any other feedback is welcome so we can update our documentation. Also look at #19, #42, #44 and #87.

@kaplun
Copy link
Contributor

kaplun commented Sep 17, 2012

Hi Dag, I just replied to the other ticket #87, and indeed I confirm, from our experience with Apache and RHEL5/6 setting the HOME directory properly is fixing the issue. I am more and more convinced that "creation of executable memory area failed: Permission denied" is a filesystem error message, rather than memory related.

@dagwieers
Copy link
Member

Great to hear !

@Yuseinov
Copy link
Author

I fixed it:
HOME=/tmp unoconv -f pdf document-example

@superbug
Copy link

Great!

@dagwieers
Copy link
Member

So where do I want to take this ?

I would like to check for the exact conditions of this error, if we know what it is we can (internally) change the HOME to something that works. That way anyway can set HOME to something that works, but if the real HOME or the custom HOME do not work, we can set it to something that does (e.g. /tmp, /var/tmp or /dev/shm).

@tihe
Copy link

tihe commented Apr 22, 2013

Perhaps related and useful:

if I do (from my own user): sudo su www-data -c 'unoconv --listener'

I get: mkstemp("/var/www/.execoooEYABPr") failed: Permission denied

When I add write permission to var/www, the error disappears.

@dagwieers dagwieers removed this from the Release 0.7 milestone Jul 5, 2015
@dagwieers
Copy link
Member

So we are tracking all related issues in ticket #87. I proposed a few solutions, feedback is welcome.
As a result I am closing this issue. Thanks for all the feedback !

@t003
Copy link

t003 commented Sep 19, 2016

Hello

i keep getting this error if i want to convert a .docx to a .pdf file

Leaking python objects bridged to UNO for reason pyuno runtime is not initialized, (the pyuno.bootstrap needs to be called before using any uno classes)

@massicos
Copy link

Hi,

we also got this problem (Leaking python). Our config is :

  • Rehdat 6
  • libreOffice 5.2 from RPM
  • unoconv 0.7 as a deamon with a user a home directory (we are working to make it work with apache user)
    • with the path /opt/libreoffice5.2/program/python in the beginning of the script

We don't have it a lot of time and when we got it the PDF is generated with success (about 2-3 times for 100 conversions).

@HadrienKulik
Copy link

We do also get this error randomly. Maybe a few times for 1000 conversions =/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants