From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-171619-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3378813829C for <garchives@archives.gentoo.org>; Sun, 5 Jun 2016 22:13:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5CA0414217; Sun, 5 Jun 2016 22:13:31 +0000 (UTC) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 92482254029 for <gentoo-user@lists.gentoo.org>; Sun, 5 Jun 2016 22:13:29 +0000 (UTC) Received: by mail-wm0-f45.google.com with SMTP id m124so49998623wme.1 for <gentoo-user@lists.gentoo.org>; Sun, 05 Jun 2016 15:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:reply-to:subject:date:message-id:user-agent:mime-version; bh=MEGfaax8HR5A1v30LVoUFILVfXGn2rfXtg6jft5rxtc=; b=UIfxhxsxJMp9Neh1UlamlBdY/S8mWo3/iFpEQrCtNWc0PXodcmsKLYMhHYK7fOkH2j Dwa8YnWPPFw8CISKpKhGQPvchnlKPIcFwlNWYj4qFRlMilrvj8SnNVzwAFrHhPE7oAQq KMZk8HggvbX0RvnEwP2FLp/yi2Ja1gLJSYYH9FCmR07zhS1iSj2zTy6vK92riJJwxXxm wQjgQsO881Sz/gmM2XhpvMJ3mXj4wgCusNTN/S+jgqxthByMvyzNTT5SJzJZaulTLlGc s3YTMrVNl0oE0WMkFo1eBC1g2jd6fzGnM457mq8AyInzHjrdYjI8TrwCo6jRttdZQrP8 Cd+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:reply-to:subject:date:message-id :user-agent:mime-version; bh=MEGfaax8HR5A1v30LVoUFILVfXGn2rfXtg6jft5rxtc=; b=Ng2Wg9UesFl7Ehvet6P55tsrRZPaXJWApTh7pohY6ogOLziRrXw51MHeCK5fp1/yCT pTKJivlUaFMeAgZk0vZD6nB8wrc28IgnRhW32douLG91h/cNmwjY8YC8qst1fo6/K70e 1EzHdaACy3B/eY6om7kEsF4PR50x9skA6fySRiztJIOhF9MjtkCFwZFW2TX/rIAVa4Mm e2o2API8mLBNdS/ZkLscnDeO40hgZlaVF9a75HWmkMb9dJEZSaGA9+mj9C7CCtwMT5Ru flaW/Tk3u6yCbIoQAAj0Cdpoa+TpZttKsnjy3grQv+Ka9JYHsxmRSyB2w/uH1DhyRaGg FlaQ== X-Gm-Message-State: ALyK8tK5hsvTndH52WlKk5aGRRzhz5tKqIrIQG5ZIeIht2VItdGwHa2G9TiL5dLGqHBsRQ== X-Received: by 10.28.5.147 with SMTP id 141mr9412534wmf.48.1465164807939; Sun, 05 Jun 2016 15:13:27 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by smtp.gmail.com with ESMTPSA id b207sm11089542wmb.0.2016.06.05.15.13.26 for <gentoo-user@lists.gentoo.org> (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 05 Jun 2016 15:13:27 -0700 (PDT) From: Mick <michaelkintzios@gmail.com> To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Recommended way to shut down akonadi Date: Sun, 05 Jun 2016 23:13:16 +0100 Message-ID: <7081971.LXnDv28ARm@dell_xps> User-Agent: KMail/4.14.10 (Linux/4.4.6-gentoo; KDE/4.14.16; x86_64; ; ) Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1701638.E3r6qbn0n9"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Archives-Salt: d0247723-4e7b-4139-99e3-c9f1bb548a7e X-Archives-Hash: 3d35a7cad1ba426eeaf11ded3135d902 --nextPart1701638.E3r6qbn0n9 Content-Type: multipart/mixed; boundary="nextPart7715274.63h3xliQGL" Content-Transfer-Encoding: quoted-printable This is a multi-part message in MIME format. =2D-nextPart7715274.63h3xliQGL Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" I run enlightenment DE with a few KDE apps, including KDEPIM and with the arrival of Plasma5 I have migrated most of my systems to this set up. On my laptop I run a stand-alone postgresql for KDEPIM's akonadi, instead of mysql. Everything was working fine, until a week ago. Shutdown now takes a while with akonadi apparently trying to restart, before it eventually gives up. This can take up to 90 seconds. The delay goes away if I close Kmail and run 'akonadictl stop' in a terminal, before I shutdown from the GUI, but not if I just add it in my .xsession. Perhaps my syntax is wrong, or there may be a better way to achieve the same. The contents of my .xsession are: =================================== #!/bin/sh if [ -x /usr/bin/gpg-agent ]; then kill $(ps ux | awk '/gpg-agent/ && !/awk/ {print $2}') >/dev/null 2>&1 fi if [ -x /usr/bin/gpg-agent ]; then eval "$(/usr/bin/gpg-agent --daemon)" fi # Uncomment the following lines to start rxvt-unicode which has the ability to # run multiple terminals in one single process, thus starting up faster and # saving resources. # The --opendisplay ensures that the daemon quits when the X server terminates, # therefore we don't need matching lines in agent-shutdown.sh. if [ -x /usr/bin/urxvtd ]; then /usr/bin/urxvtd --opendisplay --fork --quiet fi #exec ck-launch-session /usr/bin/enlightenment_start exec /usr/bin/enlightenment_start /usr/bin/akonadictl stop wait 4 ======================== The above causes a number of recurring entries in .xsession-errors as per the attached log file. Some of the errors look like this: rocessControl: Application '/usr/bin/akonadi_maildispatcher_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_migration_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_newmailnotifier_agent: cannot connect to X server :0.0 *after* akonadi has already reported: Application 'akonadiserver' exited normally... So if it has exited normally, why are all these processes left hanging and keeping postgresql mulling it over for 90 seconds or so, before it eventually gives up? If I press Ctrl+Alt+Backspace while sitting there waiting on a black VT7 the shutdown process picks up without further delay. Is there something I need to correct in my .xsession syntax? =2D- Regards, Mick =2D-nextPart7715274.63h3xliQGL Content-Disposition: attachment; filename="xsession_errors.log" Content-Transfer-Encoding: 7Bit Content-Type: text/x-log; charset="UTF-8"; name="xsession_errors.log" _e_sys_comp_emit_cb_wait - [7] e,state,sys,reboot e,state,sys,reboot,done action reboot 2 urxvt: X connection to ':0' broken, unable to recover, exiting. kdeinit4: Fatal IO error: client killed kded4: Fatal IO error: client killed knotify4: Fatal IO error: client killed kwalletd: Fatal IO error: client killed akonadi_agent_launcher: Fatal IO error: client killed akonadi_agent_launcher: Fatal IO error: client killed akonadi_agent_launcher: Fatal IO error: client killed akonadi_followupreminder_agent: Fatal IO error: client killed Control process died, committing suicide! terminating service threads akonadi_maildispatcher_agent: Fatal IO error: client killed akonadi_sendlater_agent: Fatal IO error: client killed The X11 connection broke (error 1). Did the X11 server die? kdeinit5: Fatal IO error: client killed klauncher: Exiting on signal 15 akonadi_archivemail_agent: Fatal IO error: client killed Checking for pam module Lacking a socket, pipe: 0, env:0 akonadi_mailfilter_agent: Fatal IO error: client killed klauncher: Exiting on signal 15 kdeinit4: Fatal IO error: client killed akonadi_migration_agent: Fatal IO error: client killed akonadi_imap_resource: Fatal IO error: client killed akonadi_agent_launcher: Fatal IO error: client killed akonadi_baloo_indexer: Fatal IO error: client killed akonadi_newmailnotifier_agent: Fatal IO error: client killed ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_sendlater_agent' returned with exit code 1 (Unknown error) akonadi_imap_resource: Fatal IO error: client killed The X11 connection broke (error 1). Did the X11 server die? QThread: Destroyed while thread is still running Closing SQL connection: "kactivities_db_resources_140418780239744_readwrite" akonadi_agent_launcher: Fatal IO error: client killed E - PID=29674, valgrind=0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) terminating connection threads ProcessControl: Application '/usr/bin/akonadi_archivemail_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_followupreminder_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) Unable to free statement: FATAL: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. Unable to free statement: FATAL: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. ProcessControl: Application '/usr/bin/akonadi_maildispatcher_agent' returned with exit code 1 (Unknown error) Unable to free statement: FATAL: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. Unable to free statement: FATAL: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. Unable to free statement: no connection to the server Unable to free statement: no connection to the server Unable to free statement: no connection to the server Unable to free statement: no connection to the server ProcessControl: Application '/usr/bin/akonadi_migration_agent' returned with exit code 1 (Unknown error) Unable to free statement: FATAL: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. stopping db process ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) Application 'akonadiserver' exited normally... ProcessControl: Application '/usr/bin/akonadi_baloo_indexer' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_newmailnotifier_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_mailfilter_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) STORAGE+=/org/freedesktop/UDisks2/drives/TSSTcorp_DVD_2b_2f_RW_TS_T633C_R5516GOSC05707 ++STO: udi: /org/freedesktop/UDisks2/drives/TSSTcorp_DVD_2b_2f_RW_TS_T633C_R5516GOSC05707 bus: drive_type: optical_cd model: TSSTcorp DVD+/-RW TS-T633C vendor: (null) serial: R5516GOSC05707 icon.drive: (null) icon.volume: (null) VOL+ /org/freedesktop/UDisks2/block_devices/sda1 VOL+ /org/freedesktop/UDisks2/block_devices/sda2 VOL+ /org/freedesktop/UDisks2/block_devices/sda10 VOL+ /org/freedesktop/UDisks2/block_devices/sda11 VOL+ /org/freedesktop/UDisks2/block_devices/sda3 VOL+ /org/freedesktop/UDisks2/block_devices/sda6 VOL+ /org/freedesktop/UDisks2/block_devices/sda8 VOL+ /org/freedesktop/UDisks2/block_devices/sda7 VOL+ /org/freedesktop/UDisks2/block_devices/sda9 STORAGE+=/org/freedesktop/UDisks2/drives/ST9500420ASG_5VJ377P2 ++STO: udi: /org/freedesktop/UDisks2/drives/ST9500420ASG_5VJ377P2 bus: drive_type: (null) model: ST9500420ASG vendor: (null) serial: 5VJ377P2 icon.drive: (null) icon.volume: (null) removing likely internal storage /org/freedesktop/UDisks2/drives/ST9500420ASG_5VJ377P2 STORAGE+=/org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 ++STO: udi: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 bus: usb drive_type: (null) model: 0302 vendor: Verbatim serial: 12082425004469 icon.drive: (null) icon.volume: (null) ++STO: udi: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 bus: usb drive_type: (null) model: 0302 vendor: Verbatim serial: 12082425004469 icon.drive: (null) icon.volume: (null) VOL+ /org/freedesktop/UDisks2/block_devices/sdb1 DB DEV-: /org/freedesktop/UDisks2/jobs/0 DB DEV-: /org/freedesktop/UDisks2/jobs/1 DB DEV-: /org/freedesktop/UDisks2/jobs/2 DB DEV-: /org/freedesktop/UDisks2/block_devices/sdb1 =2D-VOL /dev/sdb1 DB DEV-: /org/freedesktop/UDisks2/block_devices/sdb ++STO: udi: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 bus: usb drive_type: (null) model: 0302 vendor: Verbatim serial: 12082425004469 icon.drive: (null) icon.volume: (null) DB DEV-: /org/freedesktop/UDisks2/block_devices/sdb DB DEV-: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 =2D-STO /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 STORAGE+=/org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 ++STO: udi: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 bus: usb drive_type: (null) model: 0302 vendor: Verbatim serial: 12082425004469 icon.drive: (null) icon.volume: (null) ++STO: udi: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 bus: usb drive_type: (null) model: 0302 vendor: Verbatim serial: 12082425004469 icon.drive: (null) icon.volume: (null) VOL+ /org/freedesktop/UDisks2/block_devices/sdb1 DB DEV-: /org/freedesktop/UDisks2/jobs/3 DB DEV-: /org/freedesktop/UDisks2/jobs/4 DB DEV-: /org/freedesktop/UDisks2/jobs/5 DB DEV-: /org/freedesktop/UDisks2/jobs/6 DB DEV-: /org/freedesktop/UDisks2/block_devices/sdb1 =2D-VOL /dev/sdb1 DB DEV-: /org/freedesktop/UDisks2/block_devices/sdb ++STO: udi: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 bus: usb drive_type: (null) model: 0302 vendor: Verbatim serial: 12082425004469 icon.drive: (null) icon.volume: (null) DB DEV-: /org/freedesktop/UDisks2/block_devices/sdb DB DEV-: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 =2D-STO /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_migration_agent: cannot connect to X server :0.0 akonadi_maildispatcher_agent: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) akonadi_followupreminder_agent: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_imap_resource: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_followupreminder_agent' returned with exit code 1 (Unknown error) akonadi_baloo_indexer: cannot connect to X server :0.0 akonadi_sendlater_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_maildispatcher_agent' returned with exit code 1 (Unknown error) akonadi_archivemail_agent: cannot connect to X server :0.0 akonadi_imap_resource: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) akonadi_newmailnotifier_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_archivemail_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_migration_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_newmailnotifier_agent' returned with exit code 1 (Unknown error) akonadi_followupreminder_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_followupreminder_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) akonadi_maildispatcher_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) akonadi_mailfilter_agent: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_imap_resource: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_sendlater_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_baloo_indexer' returned with exit code 1 (Unknown error) akonadi_migration_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_maildispatcher_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_migration_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_newmailnotifier_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_agent_launcher" crashed too often and will not be restarted! akonadi_followupreminder_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_agent_launcher" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_agent_launcher" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_newmailnotifier_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_followupreminder_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_followupreminder_agent" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_mailfilter_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) akonadi_baloo_indexer: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) akonadi_maildispatcher_agent: cannot connect to X server :0.0 akonadi_migration_agent: cannot connect to X server :0.0 akonadi_archivemail_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_baloo_indexer' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_agent_launcher" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_maildispatcher_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_maildispatcher_agent" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_migration_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_migration_agent" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_archivemail_agent' returned with exit code 1 (Unknown error) akonadi_imap_resource: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) akonadi_newmailnotifier_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_newmailnotifier_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_newmailnotifier_agent" crashed too often and will not be restarted! akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_agent_launcher" crashed too often and will not be restarted! akonadi_sendlater_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_sendlater_agent' returned with exit code 1 (Unknown error) akonadi_imap_resource: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_imap_resource" crashed too often and will not be restarted! akonadi_baloo_indexer: cannot connect to X server :0.0 akonadi_imap_resource: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_baloo_indexer' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_baloo_indexer" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_imap_resource" crashed too often and will not be restarted! akonadi_mailfilter_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_mailfilter_agent' returned with exit code 1 (Unknown error) akonadi_archivemail_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_archivemail_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_archivemail_agent" crashed too often and will not be restarted! akonadi_sendlater_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_sendlater_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_sendlater_agent" crashed too often and will not be restarted! akonadi_mailfilter_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_mailfilter_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_mailfilter_agent" crashed too often and will not be restarted! =2D-nextPart7715274.63h3xliQGL-- This is a multi-part message in MIME format. --nextPart7715274.63h3xliQGL Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" I run enlightenment DE with a few KDE apps, including KDEPIM and with the arrival of Plasma5 I have migrated most of my systems to this set up. On my laptop I run a stand-alone postgresql for KDEPIM's akonadi, instead of mysql. Everything was working fine, until a week ago. Shutdown now takes a while with akonadi apparently trying to restart, before it eventually gives up. This can take up to 90 seconds. The delay goes away if I close Kmail and run 'akonadictl stop' in a terminal, before I shutdown from the GUI, but not if I just add it in my .xsession. Perhaps my syntax is wrong, or there may be a better way to achieve the same. The contents of my .xsession are: =================================== #!/bin/sh if [ -x /usr/bin/gpg-agent ]; then kill $(ps ux | awk '/gpg-agent/ && !/awk/ {print $2}') >/dev/null 2>&1 fi if [ -x /usr/bin/gpg-agent ]; then eval "$(/usr/bin/gpg-agent --daemon)" fi # Uncomment the following lines to start rxvt-unicode which has the ability to # run multiple terminals in one single process, thus starting up faster and # saving resources. # The --opendisplay ensures that the daemon quits when the X server terminates, # therefore we don't need matching lines in agent-shutdown.sh. if [ -x /usr/bin/urxvtd ]; then /usr/bin/urxvtd --opendisplay --fork --quiet fi #exec ck-launch-session /usr/bin/enlightenment_start exec /usr/bin/enlightenment_start /usr/bin/akonadictl stop wait 4 ======================== The above causes a number of recurring entries in .xsession-errors as per the attached log file. Some of the errors look like this: rocessControl: Application '/usr/bin/akonadi_maildispatcher_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_migration_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_newmailnotifier_agent: cannot connect to X server :0.0 *after* akonadi has already reported: Application 'akonadiserver' exited normally... So if it has exited normally, why are all these processes left hanging and keeping postgresql mulling it over for 90 seconds or so, before it eventually gives up? If I press Ctrl+Alt+Backspace while sitting there waiting on a black VT7 the shutdown process picks up without further delay. Is there something I need to correct in my .xsession syntax? -- Regards, Mick --nextPart7715274.63h3xliQGL Content-Disposition: attachment; filename="xsession_errors.log" Content-Transfer-Encoding: 7Bit Content-Type: text/x-log; charset="UTF-8"; name="xsession_errors.log" _e_sys_comp_emit_cb_wait - [7] e,state,sys,reboot e,state,sys,reboot,done action reboot 2 urxvt: X connection to ':0' broken, unable to recover, exiting. kdeinit4: Fatal IO error: client killed kded4: Fatal IO error: client killed knotify4: Fatal IO error: client killed kwalletd: Fatal IO error: client killed akonadi_agent_launcher: Fatal IO error: client killed akonadi_agent_launcher: Fatal IO error: client killed akonadi_agent_launcher: Fatal IO error: client killed akonadi_followupreminder_agent: Fatal IO error: client killed Control process died, committing suicide! terminating service threads akonadi_maildispatcher_agent: Fatal IO error: client killed akonadi_sendlater_agent: Fatal IO error: client killed The X11 connection broke (error 1). Did the X11 server die? kdeinit5: Fatal IO error: client killed klauncher: Exiting on signal 15 akonadi_archivemail_agent: Fatal IO error: client killed Checking for pam module Lacking a socket, pipe: 0, env:0 akonadi_mailfilter_agent: Fatal IO error: client killed klauncher: Exiting on signal 15 kdeinit4: Fatal IO error: client killed akonadi_migration_agent: Fatal IO error: client killed akonadi_imap_resource: Fatal IO error: client killed akonadi_agent_launcher: Fatal IO error: client killed akonadi_baloo_indexer: Fatal IO error: client killed akonadi_newmailnotifier_agent: Fatal IO error: client killed ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_sendlater_agent' returned with exit code 1 (Unknown error) akonadi_imap_resource: Fatal IO error: client killed The X11 connection broke (error 1). Did the X11 server die? QThread: Destroyed while thread is still running Closing SQL connection: "kactivities_db_resources_140418780239744_readwrite" akonadi_agent_launcher: Fatal IO error: client killed E - PID=29674, valgrind=0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) terminating connection threads ProcessControl: Application '/usr/bin/akonadi_archivemail_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_followupreminder_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) Unable to free statement: FATAL: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. Unable to free statement: FATAL: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. ProcessControl: Application '/usr/bin/akonadi_maildispatcher_agent' returned with exit code 1 (Unknown error) Unable to free statement: FATAL: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. Unable to free statement: FATAL: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. Unable to free statement: no connection to the server Unable to free statement: no connection to the server Unable to free statement: no connection to the server Unable to free statement: no connection to the server ProcessControl: Application '/usr/bin/akonadi_migration_agent' returned with exit code 1 (Unknown error) Unable to free statement: FATAL: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. stopping db process ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) Application 'akonadiserver' exited normally... ProcessControl: Application '/usr/bin/akonadi_baloo_indexer' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_newmailnotifier_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_mailfilter_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) STORAGE+=/org/freedesktop/UDisks2/drives/TSSTcorp_DVD_2b_2f_RW_TS_T633C_R5516GOSC05707 ++STO: udi: /org/freedesktop/UDisks2/drives/TSSTcorp_DVD_2b_2f_RW_TS_T633C_R5516GOSC05707 bus: drive_type: optical_cd model: TSSTcorp DVD+/-RW TS-T633C vendor: (null) serial: R5516GOSC05707 icon.drive: (null) icon.volume: (null) VOL+ /org/freedesktop/UDisks2/block_devices/sda1 VOL+ /org/freedesktop/UDisks2/block_devices/sda2 VOL+ /org/freedesktop/UDisks2/block_devices/sda10 VOL+ /org/freedesktop/UDisks2/block_devices/sda11 VOL+ /org/freedesktop/UDisks2/block_devices/sda3 VOL+ /org/freedesktop/UDisks2/block_devices/sda6 VOL+ /org/freedesktop/UDisks2/block_devices/sda8 VOL+ /org/freedesktop/UDisks2/block_devices/sda7 VOL+ /org/freedesktop/UDisks2/block_devices/sda9 STORAGE+=/org/freedesktop/UDisks2/drives/ST9500420ASG_5VJ377P2 ++STO: udi: /org/freedesktop/UDisks2/drives/ST9500420ASG_5VJ377P2 bus: drive_type: (null) model: ST9500420ASG vendor: (null) serial: 5VJ377P2 icon.drive: (null) icon.volume: (null) removing likely internal storage /org/freedesktop/UDisks2/drives/ST9500420ASG_5VJ377P2 STORAGE+=/org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 ++STO: udi: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 bus: usb drive_type: (null) model: 0302 vendor: Verbatim serial: 12082425004469 icon.drive: (null) icon.volume: (null) ++STO: udi: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 bus: usb drive_type: (null) model: 0302 vendor: Verbatim serial: 12082425004469 icon.drive: (null) icon.volume: (null) VOL+ /org/freedesktop/UDisks2/block_devices/sdb1 DB DEV-: /org/freedesktop/UDisks2/jobs/0 DB DEV-: /org/freedesktop/UDisks2/jobs/1 DB DEV-: /org/freedesktop/UDisks2/jobs/2 DB DEV-: /org/freedesktop/UDisks2/block_devices/sdb1 --VOL /dev/sdb1 DB DEV-: /org/freedesktop/UDisks2/block_devices/sdb ++STO: udi: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 bus: usb drive_type: (null) model: 0302 vendor: Verbatim serial: 12082425004469 icon.drive: (null) icon.volume: (null) DB DEV-: /org/freedesktop/UDisks2/block_devices/sdb DB DEV-: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 --STO /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 STORAGE+=/org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 ++STO: udi: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 bus: usb drive_type: (null) model: 0302 vendor: Verbatim serial: 12082425004469 icon.drive: (null) icon.volume: (null) ++STO: udi: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 bus: usb drive_type: (null) model: 0302 vendor: Verbatim serial: 12082425004469 icon.drive: (null) icon.volume: (null) VOL+ /org/freedesktop/UDisks2/block_devices/sdb1 DB DEV-: /org/freedesktop/UDisks2/jobs/3 DB DEV-: /org/freedesktop/UDisks2/jobs/4 DB DEV-: /org/freedesktop/UDisks2/jobs/5 DB DEV-: /org/freedesktop/UDisks2/jobs/6 DB DEV-: /org/freedesktop/UDisks2/block_devices/sdb1 --VOL /dev/sdb1 DB DEV-: /org/freedesktop/UDisks2/block_devices/sdb ++STO: udi: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 bus: usb drive_type: (null) model: 0302 vendor: Verbatim serial: 12082425004469 icon.drive: (null) icon.volume: (null) DB DEV-: /org/freedesktop/UDisks2/block_devices/sdb DB DEV-: /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 --STO /org/freedesktop/UDisks2/drives/Verbatim_0302_12082425004469 akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_migration_agent: cannot connect to X server :0.0 akonadi_maildispatcher_agent: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) akonadi_followupreminder_agent: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_imap_resource: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_followupreminder_agent' returned with exit code 1 (Unknown error) akonadi_baloo_indexer: cannot connect to X server :0.0 akonadi_sendlater_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_maildispatcher_agent' returned with exit code 1 (Unknown error) akonadi_archivemail_agent: cannot connect to X server :0.0 akonadi_imap_resource: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) akonadi_newmailnotifier_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_archivemail_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_migration_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_newmailnotifier_agent' returned with exit code 1 (Unknown error) akonadi_followupreminder_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_followupreminder_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) akonadi_maildispatcher_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) akonadi_mailfilter_agent: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_imap_resource: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_sendlater_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_baloo_indexer' returned with exit code 1 (Unknown error) akonadi_migration_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_maildispatcher_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_migration_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 akonadi_newmailnotifier_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_agent_launcher" crashed too often and will not be restarted! akonadi_followupreminder_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_agent_launcher" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_agent_launcher" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_newmailnotifier_agent' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_followupreminder_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_followupreminder_agent" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_mailfilter_agent' returned with exit code 1 (Unknown error) akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) akonadi_baloo_indexer: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) akonadi_maildispatcher_agent: cannot connect to X server :0.0 akonadi_migration_agent: cannot connect to X server :0.0 akonadi_archivemail_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_baloo_indexer' returned with exit code 1 (Unknown error) ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_agent_launcher" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_maildispatcher_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_maildispatcher_agent" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_migration_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_migration_agent" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_archivemail_agent' returned with exit code 1 (Unknown error) akonadi_imap_resource: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) akonadi_newmailnotifier_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_newmailnotifier_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_newmailnotifier_agent" crashed too often and will not be restarted! akonadi_agent_launcher: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_agent_launcher" crashed too often and will not be restarted! akonadi_sendlater_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_sendlater_agent' returned with exit code 1 (Unknown error) akonadi_imap_resource: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_imap_resource" crashed too often and will not be restarted! akonadi_baloo_indexer: cannot connect to X server :0.0 akonadi_imap_resource: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_baloo_indexer' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_baloo_indexer" crashed too often and will not be restarted! ProcessControl: Application '/usr/bin/akonadi_imap_resource' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_imap_resource" crashed too often and will not be restarted! akonadi_mailfilter_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_mailfilter_agent' returned with exit code 1 (Unknown error) akonadi_archivemail_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_archivemail_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_archivemail_agent" crashed too often and will not be restarted! akonadi_sendlater_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_sendlater_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_sendlater_agent" crashed too often and will not be restarted! akonadi_mailfilter_agent: cannot connect to X server :0.0 ProcessControl: Application '/usr/bin/akonadi_mailfilter_agent' returned with exit code 1 (Unknown error) "/usr/bin/akonadi_mailfilter_agent" crashed too often and will not be restarted! --nextPart7715274.63h3xliQGL-- --nextPart1701638.E3r6qbn0n9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJXVKQFAAoJELAdA+zwE4YeUxUH+wdmKpPTiSEUTNF0N/XCx8rF lcxoCodPYgOf2cVYby5Rx+Wz/zwuxNRzBm4UU0YADP2Vx3OYYi0FIVpsT/91fg4A PWRbeS58lDLBv8vwX5j4fRgujg6GeBTn01ihvByKLieg43huqqHnK5zH6A2EU6aq 4U5mI9dadMZ0kbkYp5scsttVM8lDg1fCEHM0DJF2m6uFa33UnGgY3K2XA5yTozap rMn4L0FavEdyOlA1AzCBCxRkB7y4R4LejPrkr60bnLquowUYXbPzZkf+6/QuszPZ vsdy2BlveiOJ2xjycfL/tqxbQ1PtVW0T2ebGqjDBx1OeQjH7nuGp1zENosUX6CU= =T8WK -----END PGP SIGNATURE----- --nextPart1701638.E3r6qbn0n9--