canonical / lxd

Powerful system container and virtual machine manager
https://canonical.com/lxd
GNU Affero General Public License v3.0
4.35k stars 930 forks source link

Cannot stop debian stretch container #4939

Closed cquike closed 6 years ago

cquike commented 6 years ago

Required information

apt packages:

ii liblxc-common 3.0.1-0ubuntu1~18.04.2 amd64 Linux Containers userspace tools (common tools) ii liblxc1 3.0.1-0ubuntu1~18.04.2 amd64 Linux Containers userspace tools (library) ii lxcfs 3.0.1-0ubuntu2~18.04.1 amd64 FUSE based filesystem for LXC ii lxd 3.0.1-0ubuntu1~18.04.1 amd64 Container hypervisor based on LXC - daemon ii lxd-client 3.0.1-0ubuntu1~18.04.1 amd64 Container hypervisor based on LXC - client

Issue description

I am trying to use a debian stretch container but it fails to stop, since the lxc stop command hangs indefinitely . The only way to stop is using lxc stop -f. The image is one of the official images from images.linuxcontainers.org.

Steps to reproduce

  1. lxc init images:debian/stretch/amd64 test-debian
  2. lxc start test-debian
  3. lxc stop test-debian
cquike commented 6 years ago

lxc_info.txt lxc_stop_debug.log

lxc_config_test_debian.txt

cquike commented 6 years ago

I have attached some logs in case that's useful.

Also, I have tried to execute a shell while the stop command is hanging and I can see the following messages from journalctl:

Aug 17 15:12:53 test-debian systemd[1]: systemd-networkd.service: Failed to reset devices.list: Operation not permitted Aug 17 15:12:53 test-debian systemd[1]: systemd-networkd.service: Failed to set invocation ID on control group /system.slice/systemd-networkd.service, ignoring: Operation not permitt ed Aug 17 15:12:53 test-debian systemd[1]: Starting Network Service... Aug 17 15:12:53 test-debian systemd[1]: Stopped Load Kernel Modules. Aug 17 15:12:53 test-debian systemd-networkd[140]: Could not connect to bus: Connection refused Aug 17 15:12:53 test-debian systemd[1]: systemd-networkd.service: Main process exited, code=exited, status=1/FAILURE Aug 17 15:12:53 test-debian systemd[1]: Failed to start Network Service. Aug 17 15:12:53 test-debian systemd[1]: systemd-networkd.service: Unit entered failed state. Aug 17 15:12:53 test-debian systemd[1]: systemd-networkd.service: Failed with result 'exit-code'. Aug 17 15:12:53 test-debian systemd[1]: systemd-networkd.service: Service has no hold-off time, scheduling restart. Aug 17 15:12:53 test-debian systemd[1]: Stopped Network Service. Aug 17 15:12:53 test-debian systemd[1]: systemd-networkd.service: Failed to reset devices.list: Operation not permitted Aug 17 15:12:53 test-debian systemd[1]: systemd-networkd.service: Failed to set invocation ID on control group /system.slice/systemd-networkd.service, ignoring: Operation not permitt ed Aug 17 15:12:53 test-debian systemd[1]: Starting Network Service... Aug 17 15:12:53 test-debian systemd-networkd[141]: Could not connect to bus: Connection refused

Those messages get repeated a handful of times.

stgraber commented 6 years ago

Yeah, networkd is failing for some reason and preventing systemd from performing a clean shutdown.

Masking it with systemctl mask systemd-networkd seems to fix the issue here.

stgraber commented 6 years ago

And sid isn't affected, so I think it's a systemd bug that's since been resolved.

Closing this issue as it doesn't appear to be anything that we can fix directly in LXD and systemd itself appears to have already been fixed in more recent versions. The masking of systemd-networkd is probably a good enough workaround for now.

iuridiniz commented 5 years ago

You can also switch to sysvinit But lxc stop will not work if /etc/init.d/powerfail is missing

Switch to sysvinit by:

apt-get dist-upgrade -y sysvinit-core

If you don't have /etc/init.d/powerfail(I don't), open /etc/inittab and change pf::powerwait:/etc/init.d/powerfail start to pf::powerwait:/etc/init.d/rc 0

Also, you need to restart init, issue:

init q
T-X commented 5 years ago

And sid isn't affected, so I think it's a systemd bug that's since been resolved.

Closing this issue as it doesn't appear to be anything that we can fix directly in LXD and systemd itself appears to have already been fixed in more recent versions. The masking of systemd-networkd is probably a good enough workaround for now.

I was also running into this issue with Debian Stretch/stable here. With just masking systemd-networkd, container startup would take 2 minutes (journalctl -b: "Startup finished in 2min 1.810s"). The reason was a waiting and then failing "systemd-networkd-wait-online.service" which other services wait to finish for first.

After masking systemd-networkd-wait-online.service, too, I generally could reduce the startup time to about 8 seconds (journalctl -b: "Startup finished in 7.725s.").

However, sometimes it would take a bit longer due to dev-aux-custom_data.seafile.device failing:

$ journalctl -u dev-aux-custom_data.seafile.device
Jan 23 02:55:52 seafile systemd[1]: dev-aux-custom_data.seafile.device: Job dev-aux-custom_data.seafile.device/start timed out with result 'timeout'.
Jan 23 02:55:52 seafile systemd[1]: Timed out waiting for device dev-aux-custom_data.seafile.device.
Jan 23 02:55:52 seafile systemd[1]: dev-aux-custom_data.seafile.device: Job dev-aux-custom_data.seafile.device/start failed with result 'timeout'.

journalctl -b: "Startup finished in 1min 30.862s."

However, this device seems to get mounted successfully nevertheless. So despite the longer boot time, seemingly no other issues.

T-X commented 5 years ago

Interestingly, before masking systemd-networkd when "lxc stop" was failing, an "init 0" within the container would not. And "init 0" was shutting down the container very quickly, in about 8 seconds. I guess there is some reason why "lxc stop" sends a signal to PID 1 instead of calling "init 0" within the container?

Also, aborting "lxc stop" with "Ctrl-C and issuing "lxc stop" a second time would make the shutdown finish. According to "lxc console", that sends an extra SIGTERM and then SIGKILL then which the initial "lxc stop" did not.

On Host:

In Container:

Full "lxc console" and "journalctl -b" log:

With "lxc stop":

$ lxc console seafile
To detach from the console, press: +a q
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Stopped target Timers.
[  OK  ] Stopped Run certbot twice daily.
[  OK  ] Stopped Daily apt upgrade and clean activities.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Stopped target Graphical Interface.
[  OK  ] Stopped target Multi-User System.
         Stopping Network Name Resolution...
         Stopping Login Service...
         Stopping A high performance web server and a reverse proxy server...
         Stopping D-Bus System Message Bus...
         Stopping Seahub...
[  OK  ] Stopped target Login Prompts.
         Stopping Console Getty...
         Stopping OpenBSD Secure Shell server...
         Stopping Regular background program processing daemon...
         Stopping Unattended Upgrades Shutdown...
[  OK  ] Stopped Daily apt download activities.
         Stopping LSB: exim Mail Transport Agent...
[  OK  ] Stopped Login Service.
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped Console Getty.
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped OpenBSD Secure Shell server.
         Stopping Permit User Sessions...
[  OK  ] Stopped Network Name Resolution.
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped Seahub.
         Stopping Seafile...
[  OK  ] Stopped Seafile.
[  OK  ] Stopped A high performance web server and a reverse proxy server.
         Stopping Ccnet...
[  OK  ] Stopped Ccnet.
[  OK  ] Stopped LSB: exim Mail Transport Agent.
[  OK  ] Stopped target System Time Synchronized.
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped target Network is Online.
[  OK  ] Stopped Wait for Network to be Configured.
[  OK  ] Stopped Unattended Upgrades Shutdown.
[  OK  ] Stopped target Network.
         Stopping Network Service...
         Stopping Raise network interfaces...
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Slices.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped ACPI Events Check.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed ACPID Listen Socket.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Stopped target System Initialization.
[  OK  ] Stopped target Encrypted Volumes.
[  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
[  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
[  OK  ] Stopped target Swap.
         Stopping Update UTMP about System Boot/Shutdown...
[  OK  ] Stopped Network Service.
[  OK  ] Stopped Update UTMP about System Boot/Shutdown.
[  OK  ] Stopped Create Volatile Files and Directories.

Calling 'lxc stop ' a second time then shows:
Sending SIGTERM to remaining processes...

Sending SIGKILL to remaining processes...
Halting system.

journalctl -b:

Jan 23 01:58:28 seafile systemd[1]: Received SIGRTMIN+3.
Jan 23 01:58:28 seafile systemd[1]: Removed slice system-getty.slice.
Jan 23 01:58:28 seafile systemd[1]: Stopped target Timers.
Jan 23 01:58:28 seafile systemd[1]: Stopped Run certbot twice daily.
Jan 23 01:58:28 seafile systemd[1]: Stopped Daily apt upgrade and clean activities.
Jan 23 01:58:28 seafile systemd[1]: Stopped Daily Cleanup of Temporary Directories.
Jan 23 01:58:28 seafile systemd[1]: Stopped target Graphical Interface.
Jan 23 01:58:28 seafile systemd[1]: Stopped target Multi-User System.
Jan 23 01:58:28 seafile systemd[1]: Stopping Network Name Resolution...
Jan 23 01:58:28 seafile systemd[1]: Stopping Login Service...
Jan 23 01:58:28 seafile systemd[1]: Stopping A high performance web server and a reverse proxy server...
Jan 23 01:58:28 seafile systemd[1]: Stopping D-Bus System Message Bus...
Jan 23 01:58:28 seafile systemd[1]: Stopping Seahub...
Jan 23 01:58:28 seafile sshd[364]: Received signal 15; terminating.
Jan 23 01:58:28 seafile systemd[1]: Stopped target Login Prompts.
Jan 23 01:58:28 seafile systemd[1]: Stopping Console Getty...
Jan 23 01:58:28 seafile systemd[1]: Stopping OpenBSD Secure Shell server...
Jan 23 01:58:28 seafile systemd[1]: Stopping Regular background program processing daemon...
Jan 23 01:58:28 seafile systemd[1]: Stopping Unattended Upgrades Shutdown...
Jan 23 01:58:28 seafile systemd[1]: Stopped Daily apt download activities.
Jan 23 01:58:28 seafile systemd[1]: Stopping LSB: exim Mail Transport Agent...
Jan 23 01:58:28 seafile systemd[1]: Stopped Login Service.
Jan 23 01:58:28 seafile systemd[1]: Stopped Regular background program processing daemon.
Jan 23 01:58:28 seafile systemd[1]: Stopped Console Getty.
Jan 23 01:58:28 seafile systemd[1]: Stopped D-Bus System Message Bus.
Jan 23 01:58:28 seafile systemd[1]: Stopped OpenBSD Secure Shell server.
Jan 23 01:58:28 seafile systemd[1]: Stopping Permit User Sessions...
Jan 23 01:58:28 seafile systemd[1]: Stopped Network Name Resolution.
Jan 23 01:58:28 seafile systemd[1]: Stopped Permit User Sessions.
Jan 23 01:58:28 seafile systemd[1]: Stopped Seahub.
Jan 23 01:58:28 seafile systemd[1]: Stopping Seafile...
Jan 23 01:58:28 seafile systemd[1]: Stopped Seafile.
Jan 23 01:58:28 seafile systemd[1]: Stopped A high performance web server and a reverse proxy server.
Jan 23 01:58:28 seafile systemd[1]: Stopping Ccnet...
Jan 23 01:58:28 seafile systemd[1]: Stopped Ccnet.
Jan 23 01:58:28 seafile exim4[415]: Stopping MTA: exim4_listener.
Jan 23 01:58:28 seafile systemd[1]: Stopped LSB: exim Mail Transport Agent.
Jan 23 01:58:28 seafile systemd[1]: Stopped target System Time Synchronized.
Jan 23 01:58:28 seafile systemd[1]: Stopped target Remote File Systems.
Jan 23 01:58:28 seafile systemd[1]: Stopped target Network is Online.
Jan 23 01:58:28 seafile systemd[1]: Stopped Wait for Network to be Configured.
Jan 23 01:58:29 seafile systemd[1]: Stopped Unattended Upgrades Shutdown.
Jan 23 01:58:29 seafile systemd[1]: Stopped target Network.
Jan 23 01:58:29 seafile systemd[1]: Stopping Network Service...
Jan 23 01:58:29 seafile systemd[1]: Stopping Raise network interfaces...
Jan 23 01:58:29 seafile systemd[1]: Stopped target Basic System.
Jan 23 01:58:29 seafile systemd[1]: Stopped target Slices.
Jan 23 01:58:29 seafile systemd[1]: Removed slice User and Session Slice.
Jan 23 01:58:29 seafile systemd[1]: Stopped target Paths.
Jan 23 01:58:29 seafile systemd[1]: Stopped ACPI Events Check.
Jan 23 01:58:29 seafile systemd[1]: Stopped target Sockets.
Jan 23 01:58:29 seafile systemd[1]: Closed ACPID Listen Socket.
Jan 23 01:58:29 seafile systemd[1]: Closed D-Bus System Message Bus Socket.
Jan 23 01:58:29 seafile systemd[1]: Stopped target System Initialization.
Jan 23 01:58:29 seafile systemd[1]: Stopped target Encrypted Volumes.
Jan 23 01:58:29 seafile systemd[1]: Stopped Dispatch Password Requests to Console Directory Watch.
Jan 23 01:58:29 seafile systemd[1]: Stopped Forward Password Requests to Wall Directory Watch.
Jan 23 01:58:29 seafile systemd[1]: Stopped target Swap.
Jan 23 01:58:29 seafile systemd[1]: Stopping Update UTMP about System Boot/Shutdown...
Jan 23 01:58:29 seafile systemd[1]: Stopped Network Service.
Jan 23 01:58:29 seafile systemd[1]: Stopped Update UTMP about System Boot/Shutdown.
Jan 23 01:58:29 seafile systemd[1]: Stopped Create Volatile Files and Directories.
Jan 23 01:58:29 seafile dhclient[444]: Killed old client process
Jan 23 01:58:29 seafile ifdown[429]: Killed old client process
Jan 23 01:58:30 seafile dhclient[444]: Internet Systems Consortium DHCP Client 4.3.5
Jan 23 01:58:30 seafile ifdown[429]: Internet Systems Consortium DHCP Client 4.3.5
Jan 23 01:58:30 seafile ifdown[429]: Copyright 2004-2016 Internet Systems Consortium.
Jan 23 01:58:30 seafile ifdown[429]: All rights reserved.
Jan 23 01:58:30 seafile ifdown[429]: For info, please visit https://www.isc.org/software/dhcp/
Jan 23 01:58:30 seafile dhclient[444]: Copyright 2004-2016 Internet Systems Consortium.
Jan 23 01:58:30 seafile dhclient[444]: All rights reserved.
Jan 23 01:58:30 seafile dhclient[444]: For info, please visit https://www.isc.org/software/dhcp/
Jan 23 01:58:30 seafile dhclient[444]: 
Jan 23 01:58:30 seafile dhclient[444]: Listening on LPF/eth0/00:16:3e:a5:27:a7
Jan 23 01:58:30 seafile ifdown[429]: Listening on LPF/eth0/00:16:3e:a5:27:a7
Jan 23 01:58:30 seafile ifdown[429]: Sending on   LPF/eth0/00:16:3e:a5:27:a7
Jan 23 01:58:30 seafile ifdown[429]: Sending on   Socket/fallback
Jan 23 01:58:30 seafile dhclient[444]: Sending on   LPF/eth0/00:16:3e:a5:27:a7
Jan 23 01:58:30 seafile dhclient[444]: Sending on   Socket/fallback
Jan 23 01:58:30 seafile dhclient[444]: DHCPRELEASE on eth0 to 192.168.2.17 port 67
Jan 23 01:58:30 seafile ifdown[429]: DHCPRELEASE on eth0 to 192.168.2.17 port 67
Jan 23 01:58:30 seafile systemd[1]: Stopped Raise network interfaces.
Jan 23 01:58:30 seafile systemd[1]: Stopped Apply Kernel Variables.
Jan 23 01:58:30 seafile systemd[1]: Stopped target Network (Pre).
Jan 23 01:58:30 seafile systemd[1]: systemd-networkd.service: Failed to reset devices.list: Operation not permitted
Jan 23 01:58:30 seafile systemd[1]: systemd-networkd.service: Failed to set invocation ID on control group /system.slice/systemd-networkd.service, ignoring: Operation not permitted
Jan 23 01:58:30 seafile systemd[1]: Starting Network Service...
Jan 23 01:58:30 seafile systemd[1]: Stopping netfilter persistent configuration...
Jan 23 01:58:30 seafile netfilter-persistent[459]: Automatic flush disabled; use '/usr/sbin/netfilter-persistent flush'
Jan 23 01:58:30 seafile systemd[1]: netfilter-persistent.service: Control process exited, code=exited status=1
Jan 23 01:58:30 seafile systemd[1]: Stopped netfilter persistent configuration.
Jan 23 01:58:30 seafile systemd[1]: netfilter-persistent.service: Unit entered failed state.
Jan 23 01:58:30 seafile systemd[1]: netfilter-persistent.service: Failed with result 'exit-code'.
Jan 23 01:58:30 seafile systemd[1]: Stopped target Local File Systems.
Jan 23 01:58:30 seafile systemd[1]: Unmounting /home...
Jan 23 01:58:30 seafile systemd[1]: Stopped Load Kernel Modules.
Jan 23 01:58:30 seafile systemd-networkd[458]: Enumeration completed
Jan 23 01:58:30 seafile systemd[1]: Started Network Service.
Jan 23 01:58:30 seafile systemd-networkd[458]: eth0: Removing non-existent address: 192.168.2.202/24 (valid forever)
Jan 23 01:58:30 seafile systemd[1]: Reached target Network.
Jan 23 01:58:30 seafile systemd-networkd[458]: eth0: Removing non-existent address: [redacted IPv6 address]/64 (valid for 1h 57min 30s)
Jan 23 01:58:30 seafile systemd-networkd[458]: eth0: Removing non-existent address: [redacted IPv6 address]/64 (valid for 1h 11min 10s)
Jan 23 01:58:30 seafile systemd-networkd[458]: eth0: Removing non-existent address: [redacted IPv6 address]/64 (valid for 1h 57min 30s)
Jan 23 01:58:30 seafile systemd-networkd[458]: eth0: Removing non-existent address: [redacted IPv6 address]/64 (valid forever)
Jan 23 01:58:30 seafile systemd-networkd[458]: eth0: Removing non-existent address: [redacted IPv6 address]/64 (valid forever)
Jan 23 01:58:30 seafile systemd[1]: Unmounted /home.
Jan 23 01:58:30 seafile systemd[1]: Reached target Unmount All Filesystems.
Jan 23 01:58:30 seafile systemd[1]: Reached target Final Step.
Jan 23 01:58:30 seafile systemd[1]: Stopped target Local File Systems (Pre).
Jan 23 01:58:30 seafile systemd[1]: Stopped Remount Root and Kernel File Systems.
Jan 23 01:58:30 seafile systemd[1]: Stopped Create Static Device Nodes in /dev.
Jan 23 02:01:59 seafile systemd[1]: Received SIGRTMIN+3.
Jan 23 02:01:59 seafile systemd[1]: Stopped target Network.
Jan 23 02:01:59 seafile systemd[1]: Stopping Network Service...
Jan 23 02:01:59 seafile systemd[1]: Stopped Network Service.
Jan 23 02:01:59 seafile systemd[1]: Reached target Shutdown.
Jan 23 02:01:59 seafile systemd[1]: systemd-halt.service: Failed to reset devices.list: Operation not permitted
Jan 23 02:01:59 seafile systemd[1]: systemd-halt.service: Failed to set invocation ID on control group /system.slice/systemd-halt.service, ignoring: Operation not permitted
Jan 23 02:01:59 seafile systemd[1]: Starting Halt...
Jan 23 02:01:59 seafile systemd[1]: Shutting down.
Jan 23 02:01:59 seafile systemd-journald[32]: Journal stopped

And with "init 0" from within the container:

$ lxc console seafile
To detach from the console, press: +a q
[  OK  ] Stopped target Timers.
[  OK  ] Stopped target Graphical Interface.
[  OK  ] Stopped target Multi-User System.
         Stopping LSB: exim Mail Transport Agent...
         Stopping Regular background program processing daemon...
         Stopping Unattended Upgrades Shutdown...
[  OK  ] Stopped Run certbot twice daily.
         Stopping Seahub...
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
         Stopping D-Bus System Message Bus...
         Stopping Network Name Resolution...
[  OK  ] Stopped Daily apt upgrade and clean activities.
[  OK  ] Stopped Daily apt download activities.
[  OK  ] Stopped target Login Prompts.
         Stopping Console Getty...
         Stopping A high performance web server and a reverse proxy server...
         Stopping Login Service...
         Stopping OpenBSD Secure Shell server...
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped Login Service.
[  OK  ] Stopped OpenBSD Secure Shell server.
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped Console Getty.
         Stopping Permit User Sessions...
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped A high performance web server and a reverse proxy server.
[  OK  ] Stopped Network Name Resolution.
[  OK  ] Stopped LSB: exim Mail Transport Agent.
[  OK  ] Stopped target System Time Synchronized.
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped target Network is Online.
[  OK  ] Stopped Wait for Network to be Configured.
[  OK  ] Stopped Seahub.
         Stopping Seafile...
[  OK  ] Stopped Seafile.
         Stopping Ccnet...
[  OK  ] Stopped Ccnet.
[  OK  ] Stopped Unattended Upgrades Shutdown.
[  OK  ] Stopped target Network.
         Stopping Network Service...
         Stopping Raise network interfaces...
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Slices.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Closed ACPID Listen Socket.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped ACPI Events Check.
[  OK  ] Stopped target System Initialization.
[  OK  ] Stopped target Encrypted Volumes.
[  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
[  OK  ] Stopped target Swap.
         Stopping Update UTMP about System Boot/Shutdown...
[  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
[  OK  ] Stopped Network Service.
[  OK  ] Stopped Update UTMP about System Boot/Shutdown.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped Raise network interfaces.
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped target Network (Pre).
         Stopping netfilter persistent configuration...
[  OK  ] Stopped netfilter persistent configuration.
[  OK  ] Stopped target Local File Systems.
         Unmounting /home...
[  OK  ] Stopped Load Kernel Modules.
[  OK  ] Unmounted /home.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped target Local File Systems (Pre).
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
         Starting Power-Off...
Sending SIGTERM to remaining processes...
Sending SIGKILL to remaining processes...
Powering off.

journalctl -b:

Jan 23 02:18:50 seafile systemd[1]: Stopped target Timers.
Jan 23 02:18:50 seafile systemd[1]: Stopped target Graphical Interface.
Jan 23 02:18:50 seafile systemd[1]: Stopped target Multi-User System.
Jan 23 02:18:50 seafile systemd[1]: Stopping LSB: exim Mail Transport Agent...
Jan 23 02:18:50 seafile systemd[1]: Stopping Regular background program processing daemon...
Jan 23 02:18:50 seafile systemd[1]: Stopping Unattended Upgrades Shutdown...
Jan 23 02:18:50 seafile systemd[1]: Stopped Run certbot twice daily.
Jan 23 02:18:50 seafile systemd[1]: Stopping Seahub...
Jan 23 02:18:50 seafile systemd[1]: Stopped Daily Cleanup of Temporary Directories.
Jan 23 02:18:50 seafile systemd[1]: Stopping D-Bus System Message Bus...
Jan 23 02:18:50 seafile systemd[1]: Stopping Network Name Resolution...
Jan 23 02:18:50 seafile systemd[1]: Stopped Daily apt upgrade and clean activities.
Jan 23 02:18:50 seafile systemd[1]: Stopped Daily apt download activities.
Jan 23 02:18:50 seafile systemd[1]: Stopped target Login Prompts.
Jan 23 02:18:50 seafile sshd[364]: Received signal 15; terminating.
Jan 23 02:18:50 seafile systemd[1]: Stopping Console Getty...
Jan 23 02:18:50 seafile systemd[1]: Stopping A high performance web server and a reverse proxy server...
Jan 23 02:18:50 seafile systemd[1]: Stopping Login Service...
Jan 23 02:18:50 seafile systemd[1]: Stopping OpenBSD Secure Shell server...
Jan 23 02:18:50 seafile systemd[1]: Removed slice system-getty.slice.
Jan 23 02:18:50 seafile systemd[1]: Stopped Regular background program processing daemon.
Jan 23 02:18:50 seafile systemd[1]: Stopped Login Service.
Jan 23 02:18:50 seafile systemd[1]: Stopped OpenBSD Secure Shell server.
Jan 23 02:18:50 seafile systemd[1]: Stopped D-Bus System Message Bus.
Jan 23 02:18:50 seafile systemd[1]: Stopped Console Getty.
Jan 23 02:18:50 seafile systemd[1]: Stopping Permit User Sessions...
Jan 23 02:18:50 seafile systemd[1]: Stopped Permit User Sessions.
Jan 23 02:18:50 seafile systemd[1]: Stopped A high performance web server and a reverse proxy server.
Jan 23 02:18:50 seafile systemd[1]: Stopped Network Name Resolution.
Jan 23 02:18:50 seafile exim4[406]: Stopping MTA: exim4_listener.
Jan 23 02:18:50 seafile systemd[1]: Stopped LSB: exim Mail Transport Agent.
Jan 23 02:18:50 seafile systemd[1]: Stopped target System Time Synchronized.
Jan 23 02:18:50 seafile systemd[1]: Stopped target Remote File Systems.
Jan 23 02:18:50 seafile systemd[1]: Stopped target Network is Online.
Jan 23 02:18:50 seafile systemd[1]: Stopped Wait for Network to be Configured.
Jan 23 02:18:50 seafile systemd[1]: Stopped Seahub.
Jan 23 02:18:50 seafile systemd[1]: Stopping Seafile...
Jan 23 02:18:50 seafile systemd[1]: Stopped Seafile.
Jan 23 02:18:50 seafile systemd[1]: Stopping Ccnet...
Jan 23 02:18:50 seafile systemd[1]: Stopped Ccnet.
Jan 23 02:18:54 seafile systemd[1]: Stopped Unattended Upgrades Shutdown.
Jan 23 02:18:54 seafile systemd[1]: Stopped target Network.
Jan 23 02:18:54 seafile systemd[1]: Stopping Network Service...
Jan 23 02:18:54 seafile systemd[1]: Stopping Raise network interfaces...
Jan 23 02:18:54 seafile systemd[1]: Stopped target Basic System.
Jan 23 02:18:54 seafile systemd[1]: Stopped target Slices.
Jan 23 02:18:54 seafile systemd[1]: Removed slice User and Session Slice.
Jan 23 02:18:54 seafile systemd[1]: Stopped target Sockets.
Jan 23 02:18:54 seafile systemd[1]: Closed D-Bus System Message Bus Socket.
Jan 23 02:18:54 seafile systemd[1]: Closed ACPID Listen Socket.
Jan 23 02:18:54 seafile systemd[1]: Stopped target Paths.
Jan 23 02:18:54 seafile systemd[1]: Stopped ACPI Events Check.
Jan 23 02:18:54 seafile systemd[1]: Stopped target System Initialization.
Jan 23 02:18:54 seafile systemd[1]: Stopped target Encrypted Volumes.
Jan 23 02:18:54 seafile systemd[1]: Stopped Forward Password Requests to Wall Directory Watch.
Jan 23 02:18:54 seafile systemd[1]: Stopped target Swap.
Jan 23 02:18:54 seafile systemd[1]: Stopping Update UTMP about System Boot/Shutdown...
Jan 23 02:18:54 seafile systemd[1]: Stopped Dispatch Password Requests to Console Directory Watch.
Jan 23 02:18:54 seafile systemd[1]: Stopped Network Service.
Jan 23 02:18:54 seafile systemd[1]: Stopped Update UTMP about System Boot/Shutdown.
Jan 23 02:18:54 seafile systemd[1]: Stopped Create Volatile Files and Directories.
Jan 23 02:18:55 seafile dhclient[437]: Killed old client process
Jan 23 02:18:55 seafile ifdown[422]: Killed old client process
Jan 23 02:18:56 seafile dhclient[437]: Internet Systems Consortium DHCP Client 4.3.5
Jan 23 02:18:56 seafile ifdown[422]: Internet Systems Consortium DHCP Client 4.3.5
Jan 23 02:18:56 seafile ifdown[422]: Copyright 2004-2016 Internet Systems Consortium.
Jan 23 02:18:56 seafile ifdown[422]: All rights reserved.
Jan 23 02:18:56 seafile ifdown[422]: For info, please visit https://www.isc.org/software/dhcp/
Jan 23 02:18:56 seafile dhclient[437]: Copyright 2004-2016 Internet Systems Consortium.
Jan 23 02:18:56 seafile dhclient[437]: All rights reserved.
Jan 23 02:18:56 seafile dhclient[437]: For info, please visit https://www.isc.org/software/dhcp/
Jan 23 02:18:56 seafile dhclient[437]: 
Jan 23 02:18:56 seafile dhclient[437]: Listening on LPF/eth0/00:16:3e:a5:27:a7
Jan 23 02:18:56 seafile dhclient[437]: Sending on   LPF/eth0/00:16:3e:a5:27:a7
Jan 23 02:18:56 seafile ifdown[422]: Listening on LPF/eth0/00:16:3e:a5:27:a7
Jan 23 02:18:56 seafile ifdown[422]: Sending on   LPF/eth0/00:16:3e:a5:27:a7
Jan 23 02:18:56 seafile ifdown[422]: Sending on   Socket/fallback
Jan 23 02:18:56 seafile dhclient[437]: Sending on   Socket/fallback
Jan 23 02:18:57 seafile dhclient[437]: DHCPRELEASE on eth0 to 192.168.2.17 port 67
Jan 23 02:18:57 seafile ifdown[422]: DHCPRELEASE on eth0 to 192.168.2.17 port 67
Jan 23 02:18:57 seafile systemd[1]: Requested transaction contradicts existing jobs: Transaction is destructive.
Jan 23 02:18:57 seafile systemd[1]: systemd-networkd.socket: Failed to queue service startup job (Maybe the service file is missing or not a non-template unit?): Transaction is destructive.
Jan 23 02:18:57 seafile systemd[1]: systemd-networkd.socket: Unit entered failed state.
Jan 23 02:18:57 seafile systemd[1]: Stopped Raise network interfaces.
Jan 23 02:18:57 seafile systemd[1]: Stopped Apply Kernel Variables.
Jan 23 02:18:57 seafile systemd[1]: Stopped target Network (Pre).
Jan 23 02:18:57 seafile systemd[1]: Stopping netfilter persistent configuration...
Jan 23 02:18:57 seafile netfilter-persistent[451]: Automatic flush disabled; use '/usr/sbin/netfilter-persistent flush'
Jan 23 02:18:57 seafile systemd[1]: netfilter-persistent.service: Control process exited, code=exited status=1
Jan 23 02:18:57 seafile systemd[1]: Stopped netfilter persistent configuration.
Jan 23 02:18:57 seafile systemd[1]: netfilter-persistent.service: Unit entered failed state.
Jan 23 02:18:57 seafile systemd[1]: netfilter-persistent.service: Failed with result 'exit-code'.
Jan 23 02:18:57 seafile systemd[1]: Stopped target Local File Systems.
Jan 23 02:18:57 seafile systemd[1]: Unmounting /home...
Jan 23 02:18:57 seafile systemd[1]: Stopped Load Kernel Modules.
Jan 23 02:18:57 seafile systemd[1]: Unmounted /home.
Jan 23 02:18:57 seafile systemd[1]: Reached target Unmount All Filesystems.
Jan 23 02:18:57 seafile systemd[1]: Stopped target Local File Systems (Pre).
Jan 23 02:18:57 seafile systemd[1]: Stopped Remount Root and Kernel File Systems.
Jan 23 02:18:57 seafile systemd[1]: Stopped Create Static Device Nodes in /dev.
Jan 23 02:18:57 seafile systemd[1]: Reached target Shutdown.
Jan 23 02:18:57 seafile systemd[1]: Reached target Final Step.
Jan 23 02:18:57 seafile systemd[1]: systemd-poweroff.service: Failed to reset devices.list: Operation not permitted
Jan 23 02:18:57 seafile systemd[1]: systemd-poweroff.service: Failed to set invocation ID on control group /system.slice/systemd-poweroff.service, ignoring: Operation not permitted
Jan 23 02:18:57 seafile systemd[1]: Starting Power-Off...
Jan 23 02:18:57 seafile systemd[1]: Shutting down.
Jan 23 02:18:57 seafile systemd-journald[33]: Journal stopped