python 2.7 - OpenERP 7 service start issue -
i installed openerp 7 in centos 64 bit , have problem when starting service:
starting openerp server daemon (openerp-server): [ ok ] root@****[~]# error: couldn't create logfile directory. logging standard output. 2014-09-10 14:04:58,739 29029 info ? openerp: openerp version 7.0-20140804-231303 2014-09-10 14:04:58,739 29029 info ? openerp: addons paths: /usr/lib/python2.6/site-packages/openerp-7.0_20140804_231303-py2.6.egg/openerp/addons 2014-09-10 14:04:58,739 29029 info ? openerp: database hostname: localhost 2014-09-10 14:04:58,739 29029 info ? openerp: database port: 5432 2014-09-10 14:04:58,740 29029 info ? openerp: database user: openerp traceback (most recent call last): file "/usr/bin/openerp-server", line 5, in <module> pkg_resources.run_script('openerp==7.0-20140804-231303', 'openerp-server') file "/usr/lib/python2.6/site-packages/pkg_resources.py", line 461, in run_script self.require(requires)[0].run_script(script_name, ns) file "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1194, in run_script execfile(script_filename, namespace, namespace) file "/usr/lib/python2.6/site-packages/openerp-7.0_20140804_231303-py2.6.egg/egg-info/scripts/openerp-server", line 5, in <module> openerp.cli.main() file "/usr/lib/python2.6/site-packages/openerp-7.0_20140804_231303-py2.6.egg/openerp/cli/__init__.py", line 61, in main o.run(args) file "/usr/lib/python2.6/site-packages/openerp-7.0_20140804_231303-py2.6.egg/openerp/cli/server.py", line 272, in run main(args) file "/usr/lib/python2.6/site-packages/openerp-7.0_20140804_231303-py2.6.egg/openerp/cli/server.py", line 252, in main setup_pid_file() file "/usr/lib/python2.6/site-packages/openerp-7.0_20140804_231303-py2.6.egg/openerp/cli/server.py", line 88, in setup_pid_file fd = open(config['pidfile'], 'w') ioerror: [errno 13] permission denied: '/var/run/openerp/openerp-server.pid'
also when try stop service have error:
service openerp stop stopping openerp server daemon (openerp-server): cat: /var/run/openerp/openerp-server.pid: no such file or directory [failed]
can please advise how fix issue?
thank you, best regards,
as odedra said, permission issue missing python modules , found no reason why happens start, @ least got hint how solve following:
1- found missing python , other modules must installed in cent os 6.5 , was:
yum -y install python-psycopg2 python-lxml pyxml python-setuptools libxslt-python pytz \ python-matplotlib python-babel python-mako python-dateutil python-psycopg2 \ pychart pydot python-reportlab python-devel python-imaging python-vobject \ hippo-canvas-python mx python-gdata python-ldap python-openid \ python-werkzeug python-vatnumber pygtk2 glade3 pydot python-dateutil \ python-matplotlib pygtk2 glade3 pydot python-dateutil python-matplotlib \ python python-devel python-psutil python-docutils make\ automake gcc gcc-c++ kernel-devel byacc flashplugin-nonfree poppler-utils pywebdav\
2- after fix permission issue doing following:
- chown username:username/var/run/openerp/openerp-server.pid
- sudo chown username:username/tmp/oe-sessions-openerp
please note following:
1- sure installed openerp not defualt find path in /tmp.
after doing following problem has been solved.
Comments
Post a Comment