[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A stop job is running for...



On 12/03/2015 01:00 PM, Michael Biebl wrote:
Am 03.12.2015 um 18:18 schrieb Jape Person:
A stop job is running for...

The endings are

Make remote CUPS printers available locally

and

Network Time Synchronization

I've checked for CUPS and NTP errors in the logs and have found nothing.
I presume that's because this happens during shutdown, but haven't done
enough research to be sure.

I would try the following as next steps.
Before shutting down, start the debug shell on tty9
# systemctl start debug-shell.service

Okay, this didn't go as I expected. When I tried to switch to tty9 I got a blank screen with a flashing underline cursor in the upper left corner.

I don't remember ever having looked at tty8 or tty9 before.

I tried to follow your directions as closely as possible by issuing the above command from the root account on tty6.

After I switched back to the GUI on tty7 and initiated the shutdown I was able to switch to tty9 where I was greeted by a root prompt from which I issued the commands below.


Then on shutdown switch to tty9 and save the output of
ps aux

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0 137820  5580 ?        Ss   11:37   0:01 /sbin/init
root         2  0.0  0.0      0     0 ?        S    11:37   0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S 11:37 0:00 [ksoftirqd/0] root 5 0.0 0.0 0 0 ? S< 11:37 0:00 [kworker/0:0H]
root         7  0.0  0.0      0     0 ?        S    11:37   0:07 [rcu_sched]
root         8  0.0  0.0      0     0 ?        S    11:37   0:00 [rcu_bh]
root 9 0.0 0.0 0 0 ? S 11:37 0:00 [migration/0] root 10 0.0 0.0 0 0 ? S 11:37 0:00 [watchdog/0] root 11 0.0 0.0 0 0 ? S 11:37 0:00 [watchdog/1] root 12 0.0 0.0 0 0 ? S 11:37 0:00 [migration/1] root 13 0.0 0.0 0 0 ? S 11:37 0:00 [ksoftirqd/1] root 15 0.0 0.0 0 0 ? S< 11:37 0:00 [kworker/1:0H] root 16 0.0 0.0 0 0 ? S 11:37 0:00 [watchdog/2] root 17 0.0 0.0 0 0 ? S 11:37 0:00 [migration/2] root 18 0.0 0.0 0 0 ? S 11:37 0:00 [ksoftirqd/2] root 20 0.0 0.0 0 0 ? S< 11:37 0:00 [kworker/2:0H] root 21 0.0 0.0 0 0 ? S 11:37 0:00 [watchdog/3] root 22 0.0 0.0 0 0 ? S 11:37 0:00 [migration/3] root 23 0.0 0.0 0 0 ? S 11:37 0:00 [ksoftirqd/3] root 25 0.0 0.0 0 0 ? S< 11:37 0:00 [kworker/3:0H]
root        26  0.0  0.0      0     0 ?        S<   11:37   0:00 [khelper]
root        27  0.0  0.0      0     0 ?        S    11:37   0:00 [kdevtmpfs]
root        28  0.0  0.0      0     0 ?        S<   11:37   0:00 [netns]
root        29  0.0  0.0      0     0 ?        S<   11:37   0:00 [perf]
root 30 0.0 0.0 0 0 ? S 11:37 0:00 [khungtaskd]
root        31  0.0  0.0      0     0 ?        S<   11:37   0:00 [writeback]
root        33  0.0  0.0      0     0 ?        SN   11:37   0:00 [ksmd]
root 34 0.0 0.0 0 0 ? SN 11:37 0:00 [khugepaged]
root        35  0.0  0.0      0     0 ?        S<   11:37   0:00 [crypto]
root 36 0.0 0.0 0 0 ? S< 11:37 0:00 [kintegrityd]
root        37  0.0  0.0      0     0 ?        S<   11:37   0:00 [bioset]
root        38  0.0  0.0      0     0 ?        S<   11:37   0:00 [kblockd]
root 39 0.0 0.0 0 0 ? S< 11:37 0:00 [devfreq_wq]
root        41  0.0  0.0      0     0 ?        S    11:37   0:00 [kswapd0]
root 42 0.0 0.0 0 0 ? S 11:37 0:00 [fsnotify_mark]
root        48  0.0  0.0      0     0 ?        S<   11:37   0:00 [kthrotld]
root 50 0.0 0.0 0 0 ? S< 11:37 0:00 [ipv6_addrconf]
root        51  0.0  0.0      0     0 ?        S<   11:37   0:00 [deferwq]
root 82 0.0 0.0 0 0 ? S< 11:37 0:00 [acpi_thermal_pm] root 83 0.0 0.0 0 0 ? S 11:37 0:00 [irq/16-mmc0]
root        86  0.0  0.0      0     0 ?        S<   11:37   0:00 [ata_sff]
root        92  0.0  0.0      0     0 ?        S    11:37   0:00 [scsi_eh_0]
root 93 0.0 0.0 0 0 ? S< 11:37 0:00 [scsi_tmf_0]
root        94  0.0  0.0      0     0 ?        S    11:37   0:00 [scsi_eh_1]
root 95 0.0 0.0 0 0 ? S< 11:37 0:00 [scsi_tmf_1]
root        96  0.0  0.0      0     0 ?        S    11:37   0:00 [scsi_eh_2]
root 97 0.0 0.0 0 0 ? S< 11:37 0:00 [scsi_tmf_2]
root        98  0.0  0.0      0     0 ?        S    11:37   0:00 [scsi_eh_3]
root 99 0.0 0.0 0 0 ? S< 11:37 0:00 [scsi_tmf_3]
root       100  0.0  0.0      0     0 ?        S    11:37   0:00 [scsi_eh_4]
root 101 0.0 0.0 0 0 ? S< 11:37 0:00 [scsi_tmf_4]
root       102  0.0  0.0      0     0 ?        S    11:37   0:00 [scsi_eh_5]
root 103 0.0 0.0 0 0 ? S< 11:37 0:00 [scsi_tmf_5] root 110 0.0 0.0 0 0 ? S 11:37 0:00 [kworker/3:2] root 118 0.0 0.0 0 0 ? S< 11:37 0:00 [kworker/0:1H] root 121 0.0 0.0 0 0 ? S< 11:37 0:00 [kworker/2:1H] root 153 0.0 0.0 0 0 ? S 11:37 0:00 [jbd2/sda1-8] root 154 0.0 0.0 0 0 ? S< 11:37 0:00 [ext4-rsv-conver] root 192 0.0 0.0 0 0 ? S< 11:37 0:00 [kworker/1:1H] root 199 0.0 0.0 43756 6656 ? Ss 11:37 0:00 /lib/systemd/systemd-journald root 207 0.0 0.0 0 0 ? S< 11:37 0:00 [kworker/3:1H]
root       209  0.0  0.0      0     0 ?        S    11:37   0:00 [kauditd]
root 217 0.0 0.0 45504 5160 ? Ss 11:37 0:00 /lib/systemd/systemd-udevd systemd+ 457 0.0 0.0 104216 2596 ? Ssl 11:37 0:00 /lib/systemd/systemd-timesyncd root 509 0.0 0.0 0 0 ? S 11:37 0:00 [irq/25-mei_me]
root       525  0.0  0.0      0     0 ?        S<   11:37   0:00 [kpsmoused]
root       526  0.0  0.0      0     0 ?        S<   11:37   0:00 [ktpacpid]
root       541  0.0  0.0      0     0 ?        S<   11:37   0:00 [cfg80211]
root 546 0.2 0.0 0 0 ? S 11:37 0:35 [irq/27-iwlwifi] root 557 0.0 0.0 0 0 ? S 11:37 0:00 [kworker/2:3] root 574 0.0 0.0 0 0 ? S< 11:37 0:00 [kvm-irqfd-clean]
root       581  0.0  0.0      0     0 ?        S<   11:37   0:00 [iwlwifi]
root 663 0.0 0.1 91504 9404 ? Ss 11:37 0:00 /usr/sbin/cupsd -l root 715 0.0 0.1 250812 8680 ? Ssl 11:37 0:00 /usr/sbin/cups-browsed lp 993 0.0 0.0 78772 5584 ? S 11:38 0:00 /usr/lib/cups/notifier/dbus dbus:// root 1114 0.0 0.0 43828 3048 ? Ss 11:38 0:00 wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/586d8facceba -Dwext lp 1188 0.0 0.0 78772 5584 ? S 11:38 0:00 /usr/lib/cups/notifier/dbus dbus:// root 1234 0.0 0.0 15020 1720 ? Ss 11:38 0:00 /sbin/dhclient -v wlan0 root 2796 0.0 0.0 0 0 ? S 11:52 0:00 [kworker/1:1] root 2973 0.0 0.0 0 0 ? S 11:53 0:00 [kworker/2:0] root 4263 0.0 0.0 0 0 ? S 12:14 0:01 [kworker/0:0] root 4281 0.0 0.0 0 0 ? S 12:15 0:00 [kworker/1:2] root 4288 0.0 0.0 0 0 ? S 12:15 0:00 [kworker/3:0] root 9156 0.0 0.0 0 0 ? S 13:40 0:00 [kworker/0:2] root 11116 0.0 0.0 0 0 ? S 14:15 0:01 [kworker/u16:1] root 11832 0.0 0.0 0 0 ? S 14:28 0:00 [kworker/u16:3] root 13565 0.0 0.0 0 0 ? S 14:47 0:00 [kworker/u16:0] root 13782 0.0 0.0 0 0 ? S 14:51 0:00 [kworker/3:1]
root     13891  0.0  0.0  21564  4648 tty9     Ss   14:52   0:00 /bin/bash
root 13918 0.0 0.0 0 0 ? S 14:52 0:00 [kworker/1:0] root 13923 0.0 0.0 0 0 ? S 14:52 0:00 [kworker/0:1] root 13928 0.0 0.0 0 0 ? S 14:52 0:00 [kworker/2:1] root 13950 0.0 0.0 0 0 ? S 14:52 0:00 [kworker/3:3] root 13953 0.0 0.0 0 0 ? S 14:52 0:00 [kworker/2:2] root 13954 0.0 0.0 0 0 ? S 14:52 0:00 [kworker/0:3] root 13959 0.0 0.0 0 0 ? S 14:52 0:00 [kworker/0:4] root 14014 0.0 0.0 0 0 ? S 14:52 0:00 [kworker/2:4] root 14020 0.0 0.0 0 0 ? S 14:52 0:00 [kworker/u16:2]
root     14027  0.0  0.0  34216  2768 tty9     R+   14:53   0:00 ps aux

systemctl list-jobs

 JOB UNIT                                                TYPE  STATE
1234 local-fs.target                                     stop  waiting
1198 dbus.socket                                         stop  waiting
1197 cups.path                                           stop  waiting
1223 systemd-ask-password-wall.path                      stop  waiting
1143 systemd-backlight@backlight:acpi_video0.service     stop  waiting
1149 systemd-tmpfiles-setup-dev.service                  stop  waiting
1141 local-fs-pre.target                                 stop  waiting
1168 cups.service                                        stop  waiting
1175 time-sync.target                                    stop  waiting
1231 paths.target                                        stop  waiting
1238 cryptsetup.target                                   stop  waiting
1125 final.target                                        start waiting
1155 slices.target                                       stop  waiting
1178 avahi-daemon.socket                                 stop  waiting
1227 systemd-remount-fs.service                          stop  waiting
1142 systemd-ask-password-console.path                   stop  waiting
1192 cups-browsed.service                                stop  running
1209 rpcbind.socket                                      stop  waiting
1113 poweroff.target                                     start waiting
1174 systemd-tmpfiles-setup.service                      stop  waiting
1150 systemd-random-seed.service                         stop  waiting
1204 basic.target                                        stop  waiting
1114 systemd-poweroff.service                            start waiting
1232 system-systemd\x2dbacklight.slice                   stop  waiting
1123 run-user-0.mount                                    stop  waiting
1222 networking.service                                  stop  waiting
1233 systemd-backlight@backlight:intel_backlight.service stop  waiting
1122 swap.target                                         stop  waiting
1171 systemd-networkd-resolvconf-update.path             stop  waiting
1218 nfs-common.service                                  stop  waiting
1145 systemd-timesyncd.service                           stop  waiting
1115 umount.target                                       start waiting
1147 cups.socket                                         stop  waiting
1128 shutdown.target                                     start waiting
1219 systemd-modules-load.service                        stop  waiting
1220 sockets.target                                      stop  waiting
1170 syslog.socket                                       stop  waiting
1116 run-user-1000.mount                                 stop  waiting
1130 uuidd.socket                                        stop  waiting
1216 user.slice                                          stop  waiting
1217 systemd-sysctl.service                              stop  waiting
1188 sysinit.target                                      stop  waiting
1124 run-user-117.mount                                  stop  waiting

43 jobs listed.

systemctl status ntp cups-browsed


* ntp.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

* cups-browsed.service - Make remote CUPS printers available locally
Loaded: loaded (/lib/systemd/system/cups-browsed.service; enabled; vendor preset: enabled) Active: deactivating (stop-sigterm) since Thu 2015-12-03 14:52:34 EST; 57s ago
 Main PID: 715 (cups-browsed)
   CGroup: /system.slice/cups-browsed.service
           `-715 /usr/sbin/cups-browsed

Dec 03 11:37:57 trick systemd[1]: Started Make remote CUPS printers available locally. Dec 03 14:52:34 trick systemd[1]: Stopping Make remote CUPS printers available locally...


and maybe attach an strace to the process(es) which don't want to die.


I'm going to have to do a little reading on this utility to figure out how to use it.

Is there any particlar set of commands and / or options I should use with it to get the results you feel might be useful? I gather that I open a terminal emulator or use a tty, log in as root, get the PIDs of the recalcitrant processes, and attach an strace (set to record its output to a file) to each of them, then initiate the shutdown?

Sorry that I'm not used to doing stuff like this, but I'm willing to give it a try if it can be helpful.

Thanks for your help, Michael. I'm a fan of your work.


Reply to: