Gentoo Archives: gentoo-user

From: Khumba <bog@××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Akonadi failing to start Postgres on ~arch
Date: Tue, 08 Oct 2013 04:37:23
Message-Id: 20131007213631.782ae6f6@khumba.net
1 I run KDE 4.11.1 and Akonadi against Postgres rather than MySQL
2 (USE="-mysql postgres" in make.conf) on ~amd64 (hardened if that
3 matters). Recently I've noticed that akonadi is failing to start
4 postgres at all. xsession-errors (attached is from the first start of
5 a new user) contains:
6
7 > Database process exited unexpectedly during initial connection!
8 > executable: "/usr/bin/pg_ctl"
9 > arguments: ("-w", "-t10", "start", "-D/home/poke/.local/share/akonadi/db_data")
10 > stdout: "waiting for server to start....FATAL: could not create lock file "/run/postgresql/.s.PGSQL.5432.lock": Permission denied
11 > .... stopped waiting
12 > "
13 > stderr: "pg_ctl: could not start server
14 > Examine the log output.
15 > "
16 > exit code: 1
17 > process error: "Process operation timed out"
18 > "[
19 > 0: akonadiserver(_Z11akBacktracev+0x4a) [0x7b9a4a01a]
20 > ...and so on
21
22 and akonadiserver is tried several more times before:
23
24 > ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
25 > "akonadiserver" crashed too often and will not be restarted!
26
27 The permissions for /run/postgresql are:
28
29 > drwxrwxr-x 2 postgres postgres 40 Oct 7 20:00 /run/postgresql
30
31 I'm running:
32
33 > $ emerge -pv1 akonadi-server postgresql-{base,server}
34 >
35 > [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
36 > [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
37 > [ebuild R ] app-office/akonadi-server-1.10.2-r1 USE="postgres qt4 -mysql (-qt5) -sqlite {-test}" 0 kB
38
39 What is going on here? Should Akonadi be using a lockfile within
40 $HOME, or are /run/postgresql permissions wrong? I don't see this
41 reported on b.g.o or upstream, but several KDE bugs (#303740, #286826)
42 speak of a lockfile in $HOME/.local/share/akonadi/socket-$USER/. This
43 directory is empty for me with KDE running.
44
45 Any suggestions are appreciated!
46
47 Thanks,
48 Khumba

Attachments

File name MIME type
xsession-errors application/octet-stream