Autore Topic: Spegnimento lento - a stop job is running for session  (Letto 548 volte)

Offline francesco_dem

  • *
  • Post: 321
  • Reputazione: 9
    • Mostra profilo
Spegnimento lento - a stop job is running for session
« il: 05 Maggio 2016 ore 20:57 »
Ciao a tutti, da alcuni giorni si sta verificando questo fastidioso problema, ossia allo spegnimento appare la scritta di cui in oggetto ed il pc impiega circa 4 minuti per arrestarsi.
Intanto per aggirare il problema ho modificato in

Codice: [Seleziona]
/etc/systemd/system.conf
Codice: [Seleziona]
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s
in
Codice: [Seleziona]
DefaultTimeoutStartSec=10s
DefaultTimeoutStopSec=10s
in  modo da ridurre tempi di arresto, ma ovviamente continuo a visualizzare la scritta:
Codice: [Seleziona]
a stop job is running for session c1 user francescosegno che ancora persiste il problema di qualche timeout di servizio o di moduli kernel

Codice: [Seleziona]
systemctl --failed
  UNIT             LOAD   ACTIVE SUB    DESCRIPTION
● nmbd.service     loaded failed failed Samba NetBIOS name server
● winbindd.service loaded failed failed Samba Winbind daemon

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

2 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

Codice: [Seleziona]
sudo journalctl -bmi resituisce le seguenti anomalie (o almeno credo siano tali)
Codice: [Seleziona]

mag 05 20:19:57 localhost kernel: pmd_set_huge: Cannot satisfy [mem 0xe0000000-0xe0200000] with a huge-page mapping due to MTR

mag 05 20:19:57 localhost kernel: ACPI: \: failed to evaluate _DSM (0x1001)

mag 05 20:20:02 chakra-pc systemd[1]: cups.socket: Cannot add dependency job, ignoring: Unit cups.socket failed to load: No such
mag 05 20:20:02 chakra-pc systemd[1]: cups.path: Cannot add dependency job, ignoring: Unit cups.path failed to load: No such f
mag 05 20:20:08 chakra-pc kernel: ACPI Warning: SystemIO range 0x0000000000000828-0x000000000000082F conflicts with OpRegion 0

mag 05 20:20:04 chakra-pc systemd-udevd[301]: invalid key/value pair in file /etc/udev/rules.d/10-cups_device_link.rules on li

mag 05 20:20:11 chakra-pc avahi-daemon[496]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!

mag 05 20:20:17 chakra-pc dbus[480]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.servi
mag 05 20:20:21 chakra-pc systemd[1]: Failed to start Samba NetBIOS name server.
mag 05 20:20:22 chakra-pc systemd[1]: Failed to start Samba Winbind daemon.

Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/remotedir
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/keyboard.
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/appmenu.s
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/powerdevi
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/bluedevil
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/freespace
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/statusnot
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/kwrited.s
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/desktopno
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/ktimezone
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/solidauto
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/proxyscou
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/networkma
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/networkwa
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/khotkeys.
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/recentdoc
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/baloosear
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/ksysguard
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/networkst
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/device_au
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/soliduise
mag 05 20:20:31 chakra-pc kdeinit5[879]: kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib/qt5/plugins/kf5/kded/kscreen.s

mag 05 20:20:38 chakra-pc kdeinit5[879]: kscreen.kded: PowerDevil SuspendSession action not available!

mag 05 20:20:39 chakra-pc polkit-kde-authentication-agent-1[970]: Invalid service name "/org/kde/polkit-kde-authentication-age

Cannot load profile  "PulseAudio.Playback_Devices.1.default"  . It was removed by the use
mag 05 20:20:50 chakra-pc kmix[995]: Cannot load profile  "PulseAudio.Capture_Devices.1.default"  . It was removed by the user
mag 05 20:20:50 chakra-pc kmix[995]: Cannot load profile  "PulseAudio.Playback_Streams.1.default"  . It was removed by the use
mag 05 20:20:50 chakra-pc kmix[995]: Cannot load profile  "PulseAudio.Capture_Streams.1.default"  . It was removed by the user
mag 05 20:20:50 chakra-pc kdeinit5[879]: Registering "org.kde.StatusNotifierItem-995-1/StatusNotifierItem" to system tray
mag 05 20:20:50 chakra-pc kmix[995]: Cannot load profile  "PulseAudio.Playback_Devices.1.default"  . It was removed by the use
mag 05 20:20:50 chakra-pc kmix[995]: Cannot load profile  "PulseAudio.Capture_Devices.1.default"  . It was removed by the user
mag 05 20:20:50 chakra-pc kmix[995]: Cannot load profile  "PulseAudio.Playback_Streams.1.default"  . It was removed by the use
mag 05 20:20:50 chakra-pc kmix[995]: Cannot load profile  "PulseAudio.Capture_Streams.1.default"  . It was removed by the user

Trattasi di un pc/desktop con scheda video nvidia - driver proprietari

Edit1:

Codice: [Seleziona]
systemctl status smbd.service
Codice: [Seleziona]
● smbd.service - Samba SMB/CIFS server
   Loaded: loaded (/etc/systemd/system/smbd.service; enabled; vendor preset: disabled)
   Active: inactive (dead)

mag 05 20:20:21 chakra-pc systemd[1]: Dependency failed for Samba SMB/CIFS server.
mag 05 20:20:21 chakra-pc systemd[1]: smbd.service: Job smbd.service/start failed with result 'dependency'.
mag 05 21:06:23 chakra-pc systemd[1]: Stopped Samba SMB/CIFS server.
mag 05 21:06:23 chakra-pc systemd[1]: Dependency failed for Samba SMB/CIFS server.
mag 05 21:06:23 chakra-pc systemd[1]: smbd.service: Job smbd.service/start failed with result 'dependency'.

Codice: [Seleziona]
systemctl status nmbd.service
Codice: [Seleziona]
nmbd.service - Samba NetBIOS name server
   Loaded: loaded (/etc/systemd/system/nmbd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since gio 2016-05-05 21:06:23 CEST; 4min 52s ago
  Process: 7401 ExecStart=/usr/bin/nmbd -D (code=exited, status=1/FAILURE)

mag 05 21:06:23 chakra-pc systemd[1]: Starting Samba NetBIOS name server...
mag 05 21:06:23 chakra-pc systemd[1]: nmbd.service: Control process exited, code=exited status=1
mag 05 21:06:23 chakra-pc systemd[1]: Failed to start Samba NetBIOS name server.
mag 05 21:06:23 chakra-pc systemd[1]: nmbd.service: Unit entered failed state.
mag 05 21:06:23 chakra-pc systemd[1]: nmbd.service: Failed with result 'exit-code'.


« Ultima modifica: 05 Maggio 2016 ore 21:15 da francesco_dem »

Offline Cylon

  • *
  • Post: 1958
  • Reputazione: 78
  • CYbernetic Life fOrm Node
    • Mostra profilo
Re:Spegnimento lento - a stop job is running for session
« Risposta #1 il: 05 Maggio 2016 ore 23:08 »
è un 'regalino' di systemd.. esiste un workaround, che ho usato su arch ed è funzionante.

crea questo file:
Codice: [Seleziona]
/etc/sysctl.d/50-coredump.con
al suo interno scrivi:
Codice: [Seleziona]
kernel.core_pattern=core
We are the Cylons. Lower your firewalll and surrender.Your PC will adapt to service our GNU/Linux systems. Resistance is futile. Extermination of human race has began!
                                                                     Non rispondo a PM

Offline francesco_dem

  • *
  • Post: 321
  • Reputazione: 9
    • Mostra profilo
Re:Spegnimento lento - a stop job is running for session
« Risposta #2 il: 06 Maggio 2016 ore 19:57 »
è un 'regalino' di systemd.. esiste un workaround, che ho usato su arch ed è funzionante.

crea questo file:
Codice: [Seleziona]
/etc/sysctl.d/50-coredump.con
al suo interno scrivi:
Codice: [Seleziona]
kernel.core_pattern=core
Sembra funzionare :) :)
Per la cronaca, ho risolto con i servizi di samba rimuovendo la linea "security = share" dalla sezione [global]

Offline francesco_dem

  • *
  • Post: 321
  • Reputazione: 9
    • Mostra profilo
Re:Spegnimento lento - a stop job is running for session
« Risposta #3 il: 06 Maggio 2016 ore 20:20 »
Ho parlato troppo presto,
purtroppo il problema permane  >:( >:(

Codice: [Seleziona]
sudo journalctl -bcontinua a darmi questo errore

Codice: [Seleziona]
Cannot load profile  "PulseAudio.Playback_Devices.1.default"  . It was removed by the user, or the KMix config file is defective.
mag 06 20:15:31 chakra-pc kmix[987]: Cannot load profile  "PulseAudio.Capture_Devices.1.default"  . It was removed by the user, or the KMix config file is defective.
mag 06 20:15:31 chakra-pc kmix[987]: Cannot load profile  "PulseAudio.Playback_Streams.1.default"  . It was removed by the user, or the KMix config file is defective.
mag 06 20:15:31 chakra-pc kmix[987]: Cannot load profile  "PulseAudio.Capture_Streams.1.default"  . It was removed by the user, or the KMix config file is defective.
mag 06 20:15:31 chakra-pc kdeinit5[881]: kmix: kmixd: Delayed initialization done
mag 06 20:15:31 chakra-pc kdeinit5[881]: Registering "org.kde.StatusNotifierItem-987-1/StatusNotifierItem" to system tray
mag 06 20:15:31 chakra-pc kmix[987]: Cannot load profile  "PulseAudio.Playback_Devices.1.default"  . It was removed by the user, or the KMix config file is defective.
mag 06 20:15:32 chakra-pc kmix[987]: Cannot load profile  "PulseAudio.Capture_Devices.1.default"  . It was removed by the user, or the KMix config file is defective.
mag 06 20:15:32 chakra-pc kmix[987]: Cannot load profile  "PulseAudio.Playback_Streams.1.default"  . It was removed by the user, or the KMix config file is defective.
mag 06 20:15:32 chakra-pc kmix[987]: Cannot load profile  "PulseAudio.Capture_Streams.1.default"  . It was removed by the user, or the KMix config file is defective.
« Ultima modifica: 06 Maggio 2016 ore 20:54 da francesco_dem »

Offline Cylon

  • *
  • Post: 1958
  • Reputazione: 78
  • CYbernetic Life fOrm Node
    • Mostra profilo
Re:Spegnimento lento - a stop job is running for session
« Risposta #4 il: 06 Maggio 2016 ore 21:12 »
almeno si chiude senza aspettare .. :D ...
We are the Cylons. Lower your firewalll and surrender.Your PC will adapt to service our GNU/Linux systems. Resistance is futile. Extermination of human race has began!
                                                                     Non rispondo a PM

Offline francesco_dem

  • *
  • Post: 321
  • Reputazione: 9
    • Mostra profilo
Re:Spegnimento lento - a stop job is running for session
« Risposta #5 il: 06 Maggio 2016 ore 21:14 »
almeno si chiude senza aspettare .. :D ...
;D ;D

Offline francesco_dem

  • *
  • Post: 321
  • Reputazione: 9
    • Mostra profilo
Re:Spegnimento lento - a stop job is running for session
« Risposta #6 il: 09 Maggio 2016 ore 08:56 »
Ho notato tra le scritte di chiusure, i seguenti messaggi di errore:

Codice: [Seleziona]
failed unmounting /tmp
failed to finalize file system , ignored

fstab
Codice: [Seleziona]
tmpfs /tmp tmpfs nodev,nosuid 0 0
UUID=2ed4b9a3-3f96-4ee5-a028-dd2ace0eea2f / ext4 defaults 0 1
/dev/sda5 swap swap defaults 0 0
UUID=8f8b637f-a4f5-43c7-8075-72938a641890 /media/Dati ext4  defaults,noatime,user 0 2

 

Template by Homey | Sito ufficiale | Disclaimer