Since the upgrade to openerp-server-5.0.15 I have been unable to connect to the database via either the web or gtk client. This happens on 2 separate machines, one testing(postgresql 9 and python 2.7) and the other stable(postgresql 8.4 and python 2.6). It appears that the init.d script may be either setting the root user as the postgresql user(which I do not have set up in either postgresql database) or ignoring the configuration file for some reason and loading the defaults? Launching openerp-server manually with the following command "python /usr/lib/python2.6/site-packages/openerp-server/openerp-server.py -c /etc/openerp/openerp-server.cfg" allows connection and creation of databases, although I did experience problems installing the sale module(which appears to be a known bug on the openerp forums). If it helps no log file is generated when launching via the init.d script, whereas it is when launching via the command line Reproducible: Always Steps to Reproduce: 1./etc/init.d/openerp-server start 2. 3. Actual Results: Server starts without error, but clients unable to connect Expected Results: clients can connect to database
Check permissions in /etc/openerp and /usr/lib/python2.6/site-packages/openerp-server/addons and db_user = openerp in /etc/openerp/openerp-server.cfg
chown openerp:openerp -R /usr/lib/python2.6/site-packages/openerp-server/addons chown openerp:openerp -R /etc/openerp I change init script for start as root
Hi Francisco It was the permissions as you suggested. Many thanks
In ebuilds attached to #267886 or available in overlays was OPENERP_USER="oerp" and OPENERP_GROUP="oerp". User had had drwxr-xr-x 2 oerp oerp 224 Mar 4 23:37 /var/run/openerp/ Now in main tree ebuilds OPENERP_USER="openerp" and OPENERP_GROUP="openerp". If user upgrade from old ebuild he still have oerp:oerp permissions, but should have openerp:openerp. Therefore he couldn't start openerp-server. I solve it by adding pkg_postinst() { + chown ${OPENERP_USER}:${OPENERP_GROUP} /var/run/openerp + chown ${OPENERP_USER}:${OPENERP_GROUP} /var/log/openerp + Fixed ebuild available in yarik-overlay
Would it be possible to close this one, since outdated?
dropped