我在我的服务器中的路径/ home / openerp / openerp中有代码(git repo)的OpenERP,而/ home / openerp是openerp用户的家,我使用uwsgi,如果我使用:
uwsgi --ini myconf.ini --http 80
它的工作,但当我使用supervisord启动uwsgi时,它有一个错误:
OSError: [Errno 13] Permission denied: '/.local'
我的uwsgi配置是:
[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
监督的mi配置文件是:
[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
所有日志错误:
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 645, 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 :(得分:1)
我可以修改它写在我的uwsgi.ini:
env=XDG_DATA_HOME=/home/openerp/.local/share
但我不明白为什么要将〜/ .local / share扩展到/.local/share