"A stop job is running"

If none of the more specific forums is the right place to ask

"A stop job is running"

Postby pawRoot » 2017-02-14 18:09

Hi

Every time i restart my computer i get "A stop job is running" information and it takes about 2 mins.

A stop job is running for Session c2 of user Debian-gdm (24s / 1min 30s)


I had same problem happen in Debian 8 (now im on Stretch).
OS: Debian testing stretch
Kernel: x86_64 Linux 4.8.0-2-amd64
DE: Gnome
CPU: Intel Core i5-4690K CPU @ 3.9GHz
GPU: GeForce GTX 970/PCIe/SSE2
MOBO: MSI Z97 Gaming 3
User avatar
pawRoot
 
Posts: 125
Joined: 2016-12-28 18:26
Location: Poland

Re: "A stop job is running"

Postby phenest » 2017-02-14 20:29

Yeah, annoying aint it?

Ok, this happens to me, so I Googled this. One work-around is to reduce the timeout. Edit /etc/systemd/system.conf:
Code: Select all
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s

Uncomment the lines and reduce the timeout value to 10s.

I have no idea if this has any side-effects.

EDIT: Edited to show this as a work-around and not a solution.
Last edited by phenest on 2017-02-14 20:48, edited 1 time in total.
Dell XPS 17 L702X i7 2860QM 2.5GHz - 32GB RAM - 4G WWAN - Pioneer TD05-BDR
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS P8P67 EVO i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1387
Joined: 2010-03-09 09:38
Location: The Matrix

Re: "A stop job is running"

Postby Head_on_a_Stick » 2017-02-14 20:40

phenest wrote:Uncomment the lines and reduce the timeout value to 10s.

I have no idea if this has any side-effects.

It causes the user to blindly ignore potentially serious problems and also does not solve the actual problem in any way.

@OP: use the systemd journal to investigate this problem, guide here:

https://www.digitalocean.com/community/ ... stemd-logs

You will have to enable persistent logs to view the journal contents of a previous (ie, not current) boot, instructions for this can be found by reading:
Code: Select all
man journald.conf

tl;dr:
Code: Select all
# mkdir -p /var/log/journal

Post back if you need further guidance.
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6488
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: "A stop job is running"

Postby phenest » 2017-02-16 10:00

Head_on_a_Stick wrote:Post back if you need further guidance.

If I've got this right, this message is due to a process not responding properly to a SIGTERM signal. Would this message also appear if a process was absent?

The reason I ask is, since viewing the journal logs, I noticed during startup some errors about a binary that didn't exist (/lib/udev/mtp-probe). I installed libmtp-runtime, which has that binary, and now I get no messages at shutdown.
Dell XPS 17 L702X i7 2860QM 2.5GHz - 32GB RAM - 4G WWAN - Pioneer TD05-BDR
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS P8P67 EVO i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1387
Joined: 2010-03-09 09:38
Location: The Matrix

Re: "A stop job is running"

Postby Head_on_a_Stick » 2017-02-18 22:45

phenest wrote:this message is due to a process not responding properly to a SIGTERM signal. Would this message also appear if a process was absent?

I think we need to see the actual journal contents before drawing any conclusions.

The reason I ask is, since viewing the journal logs, I noticed during startup some errors about a binary that didn't exist (/lib/udev/mtp-probe). I installed libmtp-runtime, which has that binary, and now I get no messages at shutdown.

Weird :?

It's difficult to comment without seeing the verbatim journal contents, vague descriptions don't startpage well :D
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6488
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: "A stop job is running"

Postby phenest » 2017-02-19 18:36

Code: Select all
Feb 14 15:50:37 debian systemd-udevd[419]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4 1 4': No such file or directory
Feb 14 15:50:37 debian systemd-udevd[420]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3 1 3': No such file or directory
Feb 14 15:50:37 debian systemd-udevd[428]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.6 4 4': No such file or directory

Like I said, installing libmtp-runtime fixed this error, and also stopped the "A stop job is running" at shutdown (at least I've not seen it so far).
Dell XPS 17 L702X i7 2860QM 2.5GHz - 32GB RAM - 4G WWAN - Pioneer TD05-BDR
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS P8P67 EVO i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1387
Joined: 2010-03-09 09:38
Location: The Matrix


Return to General Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable