From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: bug#25688: services: ssh-daemon quits too early Date: Sat, 11 Feb 2017 15:00:13 +0000 Message-ID: <20170211150013.6jrpkrh5how4k2e6@wasp> References: <20170211141740.thdgjg5wmyok77kw@wasp> <878tpc3i55.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccZ8j-0006w2-NS for bug-guix@gnu.org; Sat, 11 Feb 2017 09:59:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccZ8g-0005U9-GV for bug-guix@gnu.org; Sat, 11 Feb 2017 09:59:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:37610) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ccZ8g-0005Tx-CZ for bug-guix@gnu.org; Sat, 11 Feb 2017 09:59:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ccZ8f-0004Ez-Vi for bug-guix@gnu.org; Sat, 11 Feb 2017 09:59:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <878tpc3i55.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 25688@debbugs.gnu.org On 17-02-11 15:40:38, Ludovic Courtès wrote: > ng0 skribis: > > > I have my openssh-service configured like this (not exactly, but it > > serves an example well enough to not expose too much): > > > > (service openssh-service-type > > (openssh-configuration > > (port-number 2200) > > (password-authentication? #t) > > (permit-root-login 'without-password))) > > > > Now, when I reconfigure the system, ssh-daemon is started and I can ssh in. > > When I reboot and try to ssh into the machine again, I see ssh-daemon is > > stopped and I can't log in from a remote machine. > > > > The issue seems to be that network-service is taking too long to come up > > and therefore ssh-service is stopped at system boot similar to something > > like this: > > > > * starting ssh-daemon-service > > * ssh-daemon depends on networking-service > > * stopping ssh-daemon-service > > Could you send the relevant part of /var/log/shepherd.log, which shows > messages corresponding to the startup of the ‘networking’ and > ‘ssh-daemon’ services? > > TIA, > Ludo’. This is the ~120 lines of today. It reminded me of the real issue, which is dbus could not be started, which very likely could be the reason for the GNOME session crashing bug I reported. 2017-02-11 10:41:48 Service root has been started. 2017-02-11 10:41:50 starting services... 2017-02-11 10:41:50 Service root-file-system has been started. 2017-02-11 10:41:50 waiting for udevd... 2017-02-11 10:41:51 Service udev has been started. 2017-02-11 10:41:51 Service swap-/dev/sda3 has been started. 2017-02-11 10:41:51 Service user-file-systems has been started. 2017-02-11 10:41:53 Service file-system-/boot has been started. 2017-02-11 10:41:55 Service file-system-/media/pub has been started. 2017-02-11 10:41:55 Service file-system-/dev/pts has been started. 2017-02-11 10:41:55 Service file-system-/dev/shm has been started. 2017-02-11 10:41:55 Service file-system-/gnu/store has been started. 2017-02-11 10:41:55 Service file-system-/sys/fs/cgroup has been started. 2017-02-11 10:41:55 Service file-system-/sys/fs/cgroup/cpuset has been started. 2017-02-11 10:41:55 Service file-system-/sys/fs/cgroup/cpu has been started. 2017-02-11 10:41:55 Service file-system-/sys/fs/cgroup/cpuacct has been started. 2017-02-11 10:41:55 Service file-system-/sys/fs/cgroup/memory has been started. 2017-02-11 10:41:55 Service file-system-/sys/fs/cgroup/devices has been started. 2017-02-11 10:41:55 Service file-system-/sys/fs/cgroup/freezer has been started. 2017-02-11 10:41:55 Service file-system-/sys/fs/cgroup/blkio has been started. 2017-02-11 10:41:55 Service file-system-/sys/fs/cgroup/perf_event has been started. 2017-02-11 10:41:55 Service file-system-/sys/fs/cgroup/hugetlb has been started. 2017-02-11 10:41:55 Service file-system-/run/systemd has been started. 2017-02-11 10:41:55 Service file-system-/run/user has been started. 2017-02-11 10:41:55 Service file-system-/sys/fs/cgroup/elogind has been started. 2017-02-11 10:41:55 Service file-systems has been started. 2017-02-11 10:41:55 Service user-processes has been started. 2017-02-11 10:41:55 Service host-name has been started. 2017-02-11 10:41:55 Service user-homes could not be started. 2017-02-11 10:41:56 Service nscd has been started. 2017-02-11 10:41:56 Service guix-daemon has been started. 2017-02-11 10:41:57 Service urandom-seed has been started. 2017-02-11 10:41:57 Service syslogd has been started. 2017-02-11 10:41:58 Service loopback has been started. 2017-02-11 10:41:58 Service term-tty6 has been started. 2017-02-11 10:41:58 Service term-tty5 has been started. 2017-02-11 10:41:58 Service term-tty4 has been started. 2017-02-11 10:41:58 Service term-tty3 has been started. 2017-02-11 10:41:58 Service term-tty2 has been started. 2017-02-11 10:41:58 Service term-tty1 has been started. 2017-02-11 10:42:04 Service console-font-tty1 has been started. 2017-02-11 10:42:05 Service console-font-tty2 has been started. 2017-02-11 10:42:05 Service console-font-tty3 has been started. 2017-02-11 10:42:05 Service console-font-tty4 has been started. 2017-02-11 10:42:05 Service console-font-tty5 has been started. 2017-02-11 10:42:05 Service console-font-tty6 has been started. 2017-02-11 10:42:10 Service dbus-system could not be started. 2017-02-11 10:42:10 Service networking depends on dbus-system. 2017-02-11 10:42:10 Service networking could not be started. 2017-02-11 10:42:10 Service ssh-daemon depends on networking. 2017-02-11 10:42:10 Service ssh-daemon could not be started. 2017-02-11 10:42:11 Service console-keymap has been started. 2017-02-11 10:42:11 Service tor has been started. 2017-02-11 10:42:12 Service dbus-system has been started. 2017-02-11 10:42:12 Service upower-daemon has been started. 2017-02-11 10:42:12 Service networking has been started. 2017-02-11 10:42:13 Service avahi-daemon has been started. 2017-02-11 10:42:13 Service display-manager has been started. 2017-02-11 13:50:08 Respawning term-tty2. 2017-02-11 13:50:08 Service term-tty2 has been started. 2017-02-11 13:51:21 Service ssh-daemon has been started. ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@2017-02-11 13:55:25 Service root has been started. 2017-02-11 13:55:27 starting services... 2017-02-11 13:55:27 Service root-file-system has been started. 2017-02-11 13:55:27 waiting for udevd... 2017-02-11 13:55:27 Service udev has been started. 2017-02-11 13:55:27 Service swap-/dev/sda3 has been started. 2017-02-11 13:55:27 Service user-file-systems has been started. 2017-02-11 13:55:30 Service file-system-/boot has been started. 2017-02-11 13:55:31 Service file-system-/media/pub has been started. 2017-02-11 13:55:31 Service file-system-/dev/pts has been started. 2017-02-11 13:55:31 Service file-system-/dev/shm has been started. 2017-02-11 13:55:31 Service file-system-/gnu/store has been started. 2017-02-11 13:55:32 Service file-system-/sys/fs/cgroup has been started. 2017-02-11 13:55:32 Service file-system-/sys/fs/cgroup/cpuset has been started. 2017-02-11 13:55:32 Service file-system-/sys/fs/cgroup/cpu has been started. 2017-02-11 13:55:32 Service file-system-/sys/fs/cgroup/cpuacct has been started. 2017-02-11 13:55:32 Service file-system-/sys/fs/cgroup/memory has been started. 2017-02-11 13:55:32 Service file-system-/sys/fs/cgroup/devices has been started. 2017-02-11 13:55:32 Service file-system-/sys/fs/cgroup/freezer has been started. 2017-02-11 13:55:32 Service file-system-/sys/fs/cgroup/blkio has been started. 2017-02-11 13:55:32 Service file-system-/sys/fs/cgroup/perf_event has been started. 2017-02-11 13:55:32 Service file-system-/sys/fs/cgroup/hugetlb has been started. 2017-02-11 13:55:32 Service file-system-/run/systemd has been started. 2017-02-11 13:55:32 Service file-system-/run/user has been started. 2017-02-11 13:55:32 Service file-system-/sys/fs/cgroup/elogind has been started. 2017-02-11 13:55:32 Service file-systems has been started. 2017-02-11 13:55:32 Service user-processes has been started. 2017-02-11 13:55:32 Service host-name has been started. 2017-02-11 13:55:32 Service user-homes could not be started. 2017-02-11 13:55:33 Service nscd has been started. 2017-02-11 13:55:33 Service guix-daemon has been started. 2017-02-11 13:55:33 Service urandom-seed has been started. 2017-02-11 13:55:34 Service syslogd has been started. 2017-02-11 13:55:34 Service loopback has been started. 2017-02-11 13:55:34 Service term-tty6 has been started. 2017-02-11 13:55:34 Service term-tty5 has been started. 2017-02-11 13:55:34 Service term-tty4 has been started. 2017-02-11 13:55:34 Service term-tty3 has been started. 2017-02-11 13:55:34 Service term-tty2 has been started. 2017-02-11 13:55:34 Service term-tty1 has been started. 2017-02-11 13:55:39 Service console-font-tty1 has been started. 2017-02-11 13:55:41 Service console-font-tty2 has been started. 2017-02-11 13:55:41 Service console-font-tty3 has been started. 2017-02-11 13:55:41 Service console-font-tty4 has been started. 2017-02-11 13:55:41 Service console-font-tty5 has been started. 2017-02-11 13:55:41 Service console-font-tty6 has been started. 2017-02-11 13:55:46 Service dbus-system could not be started. 2017-02-11 13:55:46 Service networking depends on dbus-system. 2017-02-11 13:55:46 Service networking could not be started. 2017-02-11 13:55:46 Service ssh-daemon depends on networking. 2017-02-11 13:55:46 Service ssh-daemon could not be started. 2017-02-11 13:55:46 Service console-keymap has been started. 2017-02-11 13:55:46 Service tor has been started. 2017-02-11 13:55:47 Service dbus-system has been started. 2017-02-11 13:55:47 Service upower-daemon has been started. 2017-02-11 13:55:47 Service networking has been started. 2017-02-11 13:55:49 Service avahi-daemon has been started. 2017-02-11 13:55:49 Service display-manager has been started. 2017-02-11 14:02:47 Service ssh-daemon is not running. 2017-02-11 14:02:48 Service ssh-daemon has been started. The last 2 lines above is when I issued locally 'sudo herd restart ssh-daemon'. -- ng0 -- https://www.inventati.org/patternsinthechaos/