Openerp-server: Initscript is broken ($USER)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openerp-server (Baltix) |
New
|
Undecided
|
Unassigned | ||
openerp-server (Debian) |
Fix Released
|
Unknown
|
|||
openerp-server (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: openerp-server
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu.
Description: Ubuntu jaunty (development branch)
Release: 9.04
2) The version of the package you are using, via 'apt-cache policy packagename' or by checking in Synaptic.
openerp-server:
Installiert: 5.0.0-3-1ubuntu2
Kandidat: 5.0.0-3-1ubuntu2
Versions-
*** 5.0.0-3-1ubuntu2 0
500 http://
100 /var/lib/
3) What you expected to happen
Start of openerp-server
4) What happened instead
Could not conntect to database, ident sameuser auth fails
Details:
After working around the python-xml issue (bug 337759), i tried starting openerp via
service openerp-server restart
which didn't work:
[2009-03-31 12:40:21,231] INFO:server:version - 5.0.0
[2009-03-31 12:40:21,238] INFO:server:
[2009-03-31 12:40:21,250] INFO:server:
[2009-03-31 12:40:21,251] INFO:server:
[2009-03-31 12:40:21,251] INFO:server:
[2009-03-31 12:40:21,251] INFO:objects:
[2009-03-31 12:40:21,831] INFO:dbpool:
[2009-03-31 12:40:21,855] ERROR:dbpool:Unable to connect to openerp: FATAL: Ident-Authentif
The funny thing is that starting /usr/bin/
I tried playing with pg_hba.conf, but couldn't fix it.
Google pointed me to
http://
and the same bug (comment #15) is present in the ubuntu package: $USER is used for the chuid parameter in the init-script, but never defined/
Adding USER=openerp fixed the issue for me.
(The following settings must point to the same user (for ident sameuser in pg_hba.conf) to work:
* database user in PostgreSQL (see README.Debian)
* db_user in /etc/openerp-
* $USER in /etc/init.d/openerp
)
Changed in openerp-server (Debian): | |
status: | Unknown → New |
Changed in openerp-server (Debian): | |
status: | New → Fix Released |
I've the same issue,
After adding USER=openerp, the init.d script is not running anymore, the logs from openerp are empty...
When copying the start-stop-daemon command from the init.d and running it manually, then it is working... but I have an error because the openerp user have no right to write the pid file in /var/run, why ?