You are not logged in.

#1 2023-03-21 17:50:22

cikavuve
Member
Registered: 2023-03-21
Posts: 11

[SOLVED] Failing Shutdown and Long Reboots

Hi guys, this is my first post here.

I have a problem with shutting down system it fails to power down (fans are spinning, system is unresponsive, lights are on), only thing that works is long pressing power button and forcing the shutdown.
Also reboots take long time (more than 2 mintues) with (A stop job is running for User Manger for UID 1000).

It does not happen all the time, it only happens when I open code-oss and only when I open some project it does not matter which one, only thing they all have in common is git. I also use ssh keys for authenticating.

If I do not open code-oss or open it only but without any project it does not occur and everything is working normally, PC shuts down normaly and reboots take around ~10-15 seconds.

Here is the the output of

sudo journalctl -b -1

journalctl

Any help is much appreciated. Thanks in advance

Last edited by cikavuve (2023-03-30 18:37:28)

Offline

#2 2023-03-21 20:34:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,686

Re: [SOLVED] Failing Shutdown and Long Reboots

Mar 21 18:30:55 mafunzo systemd[541]: app-gnome-code-18235.scope: Stopping timed out. Killing.
Mar 21 18:30:55 mafunzo systemd[541]: app-gnome-code-18235.scope: Killing process 18550 (zsh) with signal SIGKILL.
Mar 21 18:30:55 mafunzo systemd[541]: app-gnome-code-18235.scope: Killing process 18559 (zsh) with signal SIGKILL.
Mar 21 18:30:55 mafunzo systemd[541]: app-gnome-code\x2doss-3313.scope: Stopping timed out. Killing.
Mar 21 18:30:55 mafunzo systemd[541]: app-gnome-code\x2doss-3313.scope: Killing process 3674 (zsh) with signal SIGKILL.
Mar 21 18:30:55 mafunzo systemd[541]: app-gnome-code\x2doss-3313.scope: Killing process 3684 (zsh) with signal SIGKILL.
Mar 21 18:30:55 mafunzo systemd[541]: app-gnome-code\x2doss-3313.scope: Failed with result 'timeout'.
Mar 21 18:30:55 mafunzo systemd[541]: Stopped Application launched by gnome-shell.
Mar 21 18:30:55 mafunzo systemd[541]: app-gnome-code\x2doss-3313.scope: Consumed 7min 56.099s CPU time.
Mar 21 18:30:55 mafunzo systemd[541]: app-gnome-code-18235.scope: Failed with result 'timeout'.

There seem to be some zsh processes that refuse to die.

Offline

#3 2023-03-21 21:16:40

cikavuve
Member
Registered: 2023-03-21
Posts: 11

Re: [SOLVED] Failing Shutdown and Long Reboots

Thanks for reply,

I noticed that too, also I switched to zsh after I noticed that same messages when I was using bash.

Also it seems that it does not get the same error when just using gnome-console.

Last edited by cikavuve (2023-03-21 21:25:24)

Offline

#4 2023-03-21 21:34:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,686

Re: [SOLVED] Failing Shutdown and Long Reboots

This is gonna be some script, it might be useful to log $PID, "$@", $PPID, /proc/$PPID/cmdline in ~/.zshenv to some permanent file and then compare the PIDs in the journal w/ that log to figure the cause.

Offline

#5 2023-03-22 01:14:44

cikavuve
Member
Registered: 2023-03-21
Posts: 11

Re: [SOLVED] Failing Shutdown and Long Reboots

Here is the output of

sudo journalctl -b -1 | grep zsh

JOURNAL

And here is the output log ~/.zshenv generated
ZSHENV

It seems like code-oss(electron) is causing that warning/error message

Last edited by cikavuve (2023-03-22 01:15:30)

Offline

#6 2023-03-29 14:01:08

wichoso
Member
Registered: 2023-03-29
Posts: 1

Re: [SOLVED] Failing Shutdown and Long Reboots

Same here guys, this is driving me crazy

Mar 29 08:50:11 wicho-tank systemd[1534]: app-gnome-code-2966.scope: Failed with result 'timeout'.
Mar 29 08:50:11 wicho-tank systemd[1534]: app-gnome-code-2966.scope: Killing process 3791 (bash) with signal SIGKILL.
Mar 29 08:50:11 wicho-tank systemd[1534]: app-gnome-code-2966.scope: Stopping timed out. Killing.

Tried this thing:

#/etc/systemd/system.conf
DefaultTimeoutStartSec=3s
DefaultTimeoutStopSec=3s

Disabled watchdog, and no luck yet.

Offline

#7 2023-03-29 14:43:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,686

Offline

#8 2023-03-30 18:37:18

cikavuve
Member
Registered: 2023-03-21
Posts: 11

Re: [SOLVED] Failing Shutdown and Long Reboots

Thanks for that reply seth, it seems it is fixed and just waiting for fix to be released. Marking as solved

Offline

Board footer

Powered by FluxBB