Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

OpenERP OSError: [Errno 13] Permission denied: '/.local'

By
Jesús Hernández Gormaz
on 6/18/14, 4:18 AM 2,056 views

I have a OpenERP from code (git repo) in my server in path /home/openerp/openerp and /home/openerp is home of openerp user, I'm using uwsgi and if I use:

uwsgi --ini myconf.ini --http 80

it's work but when I use supervisord for start uwsgi it has a error:

OSError: [Errno 13] Permission denied: '/.local'

My uwsgi config is:

[uwsgi]

uid=openerp
gid=openerp
socket=/home/openerp/openerp.sock
chdir=/home/openerp/openerp
module=openerp-wsgi:application
master=True
workers=10
pidfile=/home/openerp/openerp.pid
vacuum=True
harakiri=50
max-request=5000

And mi config file of supervisord is:

[program:openerp]

command=/usr/local/bin/uwsgi --ini /home/openerp/openerp/uwsgi.ini
stopsignal=QUIT
autostart=true
autorestart=true
stderr_logfile=/var/log/openerp/err.log
stdout_logfile=/var/log/openerp/out.log
user=openerp

 

And all log error:

Traceback (most recent call last):
  File "/home/openerp/openerp/openerp-wsgi.py", line 15, in <module>
    import openerp
  File "./openerp/__init__.py", line 70, in <module>
    import cli
  File "./openerp/cli/__init__.py", line 7, in <module>
    from openerp.modules import module
  File "./openerp/modules/__init__.py", line 27, in <module>
    from . import db, graph, loading, migration, module, registry
  File "./openerp/modules/loading.py", line 43, in <module>
    from openerp.modules.module import initialize_sys_path, \
  File "./openerp/modules/module.py", line 45, in <module>
    ad_paths = [tools.config.addons_data_dir]
  File "./openerp/tools/config.py", line 648, in addons_data_dir
    os.makedirs(d, 0700)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/.local'

0

I can fixed it writing in my uwsgi.ini:

env=XDG_DATA_HOME=/home/openerp/.local/share

But I don't understand why expand ~/.local/share to /.local/share

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/18/14, 4:18 AM
Seen: 2056 times
Last updated: 3/16/15, 8:10 AM