I run KDE 4.11.1 and Akonadi against Postgres rather than MySQL
(USE="-mysql postgres" in make.conf) on ~amd64 (hardened if that
matters).  Recently I've noticed that akonadi is failing to start
postgres at all.  xsession-errors (attached is from the first start of
a new user) contains:

> Database process exited unexpectedly during initial connection!
> executable: "/usr/bin/pg_ctl"
> arguments: ("-w", "-t10", "start", 
> "-D/home/poke/.local/share/akonadi/db_data")
> stdout: "waiting for server to start....FATAL:  could not create lock file 
> "/run/postgresql/.s.PGSQL.5432.lock": Permission denied
> .... stopped waiting
> "
> stderr: "pg_ctl: could not start server
> Examine the log output.
> "
> exit code: 1
> process error: "Process operation timed out"
> "[
> 0: akonadiserver(_Z11akBacktracev+0x4a) [0x7b9a4a01a]
> ...and so on

and akonadiserver is tried several more times before:

> ProcessControl: Application 'akonadiserver' returned with exit code 255 
> (Unknown error)
> "akonadiserver" crashed too often and will not be restarted! 

The permissions for /run/postgresql are:

> drwxrwxr-x 2 postgres postgres 40 Oct  7 20:00 /run/postgresql

I'm running:

> $ emerge -pv1 akonadi-server postgresql-{base,server}
> 
> [ebuild   R    ] dev-db/postgresql-base-9.3.0-r1:9.3  USE="kerberos nls pam 
> readline ssl threads zlib -doc -ldap -pg_legacytimestamp -python" LINGUAS="en 
> -af -cs -de -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -ru -sk -sl -sv 
> -tr -zh_CN -zh_TW" PYTHON_SINGLE_TARGET="python2_7 -python2_6 -python3_2 
> -python3_3" PYTHON_TARGETS="python2_7 python3_2 -python2_6 -python3_3" 0 kB
> [ebuild   R    ] dev-db/postgresql-server-9.3.0-r1:9.3  USE="nls pam xml -doc 
> -kerberos -perl -pg_legacytimestamp -python (-selinux) -tcl {-test} -uuid" 
> LINGUAS="en -af -cs -de -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -ru 
> -sk -sl -sv -tr -zh_CN -zh_TW" PYTHON_SINGLE_TARGET="python2_7 -python2_6 
> -python3_2 -python3_3" PYTHON_TARGETS="python2_7 python3_2 -python2_6 
> -python3_3" 0 kB
> [ebuild   R    ] app-office/akonadi-server-1.10.2-r1  USE="postgres qt4 
> -mysql (-qt5) -sqlite {-test}" 0 kB

What is going on here?  Should Akonadi be using a lockfile within
$HOME, or are /run/postgresql permissions wrong?  I don't see this
reported on b.g.o or upstream, but several KDE bugs (#303740, #286826)
speak of a lockfile in $HOME/.local/share/akonadi/socket-$USER/.  This
directory is empty for me with KDE running.

Any suggestions are appreciated!

Thanks,
Khumba

Attachment: xsession-errors
Description: Binary data

Reply via email to