Impossible to shut down

Kernels & Hardware, configuring network, installing services

Impossible to shut down

Postby nedsi » 2020-01-30 19:56

Hey everyone,

First of all, it's my first time posting here, so please redirect me if I'm not at the right place with my question.

Everything was going well until not so long ago (don't remember exactly when tho) when my computer started to have problem when shutting down. At first, it was taking a few minutes and since a few days ago, it's not shutting down at all anymore.

Yesterday the error was "watchdog: watchdog detected hard lockup on cpu", and today it simply froze without any error.

I don't have anything special installed/configured except the pre-boot password with full disk encryption.

I searched on the internet but couldn't find anything related to this, or at least anything that worked.

Do you have any idea what might be happening and how to fix it ?

Thanks in advance for your help !

nedsi
nedsi
 
Posts: 6
Joined: 2019-02-20 13:19

Re: Impossible to shut down

Postby Chrisdb » 2020-01-31 06:06

nedsi wrote:Yesterday the error was "watchdog: watchdog detected hard lockup on cpu", and today it simply froze without any error.

Can we get your CPU information? Post output of command:
Code: Select all
lscpu


Did you install any microcode packages lately?

Welcome by the way :wink:
Chrisdb
 
Posts: 273
Joined: 2018-04-10 07:16

Re: Impossible to shut down

Postby Head_on_a_Stick » 2020-01-31 17:13

Which version of Debian is this?
Code: Select all
apt policy
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12316
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Impossible to shut down

Postby nedsi » 2020-01-31 18:46

Hey,

thanks a lot for your quick answers !

Welcome by the way :wink:

Thanks ! :)

So, output of lscpu:

Code: Select all
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
Address sizes:       39 bits physical, 48 bits virtual
CPU(s):              8
On-line CPU(s) list: 0-7
Thread(s) per core:  2
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               142
Model name:          Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
Stepping:            10
CPU MHz:             800.018
CPU max MHz:         4200.0000
CPU min MHz:         400.0000
BogoMIPS:            4224.00
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            8192K
NUMA node0 CPU(s):   0-7
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d


and the output of apt policy:

Code: Select all
Package files:                                                                                                                       
 100 /var/lib/dpkg/status                                                                                                           
     release a=now                                                                                                                   
 500 https://wire-app.wire.com/linux/debian stable/main amd64 Packages                                                               
     release o=https://github.com/wireapp/wire-desktop,a=stable,n=stable,l=Wire Desktop,c=main,b=amd64                               
     origin wire-app.wire.com                                                                                                       
 150 http://deb.debian.org/debian unstable/main i386 Packages                                                                       
     release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=i386                                                                       
     origin deb.debian.org                                                                                                           
 150 http://deb.debian.org/debian unstable/main amd64 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://repository.spotify.com stable/non-free i386 Packages
     release v=0.4,o=Spotify LTD,a=stable,n=stable,l=Spotify Public Repository,c=non-free,b=i386                                   
     origin repository.spotify.com
 500 http://repository.spotify.com stable/non-free amd64 Packages
     release v=0.4,o=Spotify LTD,a=stable,n=stable,l=Spotify Public Repository,c=non-free,b=amd64                                   
     origin repository.spotify.com
 500 https://deb.etcher.io stable/etcher i386 Packages
     release o=Bintray,a=stable,n=stable,l=Bintray,c=etcher,b=i386
     origin deb.etcher.io
 500 https://deb.etcher.io stable/etcher amd64 Packages
     release o=Bintray,a=stable,n=stable,l=Bintray,c=etcher,b=amd64                                                                 
     origin deb.etcher.io
 500 http://ppa.launchpad.net/gns3/ppa/ubuntu xenial/main i386 Packages                                                             
     release v=16.04,o=LP-PPA-gns3,a=xenial,n=xenial,l=GNS3 PPA,c=main,b=i386                                                       
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/gns3/ppa/ubuntu xenial/main amd64 Packages                                                           
     release v=16.04,o=LP-PPA-gns3,a=xenial,n=xenial,l=GNS3 PPA,c=main,b=amd64                                                     
     origin ppa.launchpad.net
 100 http://ftp.debian.org/debian stable-backports/main i386 Packages                                                               
     release o=Debian Backports,a=buster-backports,n=buster-backports,l=Debian Backports,c=main,b=i386                             
     origin ftp.debian.org
 100 http://ftp.debian.org/debian stable-backports/main amd64 Packages                                                             
     release o=Debian Backports,a=buster-backports,n=buster-backports,l=Debian Backports,c=main,b=amd64                             
     origin ftp.debian.org
 500 http://ftp.ch.debian.org/debian stable-updates/main i386 Packages                                                             
     release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=i386                                                     
     origin ftp.ch.debian.org
 500 http://ftp.ch.debian.org/debian stable-updates/main amd64 Packages                                                             
     release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=amd64                                                     
     origin ftp.ch.debian.org
 500 http://security.debian.org/debian-security stable/updates/non-free i386 Packages                                               
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=non-free,b=i386                                                   
     origin security.debian.org
 500 http://security.debian.org/debian-security stable/updates/non-free amd64 Packages                                             
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=non-free,b=amd64                                                   
     origin security.debian.org
500 http://security.debian.org/debian-security stable/updates/main i386 Packages                                                   
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=i386                                                       
     origin security.debian.org
 500 http://security.debian.org/debian-security stable/updates/main amd64 Packages                                                 
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=amd64                                                       
     origin security.debian.org
 500 http://ftp.ch.debian.org/debian stable/non-free i386 Packages                                                                 
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=non-free,b=i386                                                           
     origin ftp.ch.debian.org
 500 http://ftp.ch.debian.org/debian stable/non-free amd64 Packages                                                                 
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=non-free,b=amd64                                                         
     origin ftp.ch.debian.org
 500 http://ftp.ch.debian.org/debian stable/contrib i386 Packages
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=contrib,b=i386                                                           
     origin ftp.ch.debian.org
 500 http://ftp.ch.debian.org/debian stable/contrib amd64 Packages                                                                 
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=contrib,b=amd64                                                           
     origin ftp.ch.debian.org
 500 http://ftp.ch.debian.org/debian stable/main i386 Packages
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=main,b=i386                                                               
     origin ftp.ch.debian.org
 500 http://ftp.ch.debian.org/debian stable/main amd64 Packages
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=main,b=amd64                                                             
     origin ftp.ch.debian.org
Pinned packages:


Concerning the microcode packages, I don't know what it is, so I would answer no :)

Looking forward to hearing from you.

cheers,

nedsi

ps: does that forum support md syntax ?
nedsi
 
Posts: 6
Joined: 2019-02-20 13:19

Re: Impossible to shut down

Postby Head_on_a_Stick » 2020-02-01 09:13

nedsi wrote:does that forum support md syntax ?

No, it uses BBCode instead. See the top link at the right hand side of the text entry box for instructions.

Then read the first link in my signature, you have broken your box. The pinning attempt for sid was valiant but ultimately useless thanks to the PPAs, why didn't you tell us you had done that in the OP? Was that a challenge for us? :roll:

This will list all of the crap you've installed that doesn't come from the official Debian repositories:
Code: Select all
aptitude search '?narrow(?installed, !?origin(debian))'

And this will list the packages you've pinned from sid:
Code: Select all
apt-show-versions | grep '/unstable'

https://packages.debian.org/buster/apt-show-versions

Post back if the problem still occurs after you've cleared them out, removed sid & the foreign sources and updated the package database.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12316
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Impossible to shut down

Postby nedsi » 2020-02-01 17:56

Thanks for the answer !

why didn't you tell us you had done that in the OP? Was that a challenge for us? :roll:


Well, as I still don't fully understand the first sentence:

The pinning attempt for sid was valiant but ultimately useless thanks to the PPAs,


It wasn't meant the be a challenge for you, but it's still a challenge for me.

So, to be sure I understand correctly this:

cleared them out, removed sid & the foreign sources and updated the package database.


I need to:

    - sudo apt-get autoremove package_name or sudo apt-get remove --purge package_name on all the packages listed in the aptitude search '?narrow(?installed, !?origin(debian))' command.

    - remove all the unofficial repos in etc/apt/sources.list, meaning leaving only those 2 repos
    Code: Select all
    deb http://ftp.ch.debian.org/debian/ stable main contrib non-free
    deb-src http://ftp.ch.debian.org/debian/ stable main contrib non-free

    deb http://security.debian.org/debian-security/ stable/updates main contrib non-free
    deb-src http://security.debian.org/debian-security/ stable/updates main contrib non-free



    - and finally an apt-get update

Is that right ?

I'm sorry if my questions are stupid, I'm still trying to get my hear around how all this really works - as you might have guessed.
nedsi
 
Posts: 6
Joined: 2019-02-20 13:19

Re: Impossible to shut down

Postby Head_on_a_Stick » 2020-02-01 18:05

nedsi wrote:It wasn't meant the be a challenge for you, but it's still a challenge for me.

Okay, fair enough. The output you have posted shows that several foreign repositories have been added, do you not remember doing that?

The output also shows that the sid repository has a pin value of 150, which means that you have a file at /etc/apt/preferences (or under /etc/apt/preferences.d/) to specify that. Did you not create such a file?

It's a bit frustrating when the OP claims that "I don't have anything special installed/configured" but the evidence clearly says otherwise.

nedsi wrote:I need to:
  • sudo apt-get autoremove package_name or sudo apt-get remove --purge package_name on all the packages listed in the aptitude search '?narrow(?installed, !?origin(debian))' command.
  • remove all the unofficial repos in etc/apt/sources.list, meaning leaving only those 2 repos [code block redacted]
  • and finally an apt-get update
Is that right ?

Yes but you should have three repositories rather than two, see the Debian wiki page about sources for an example list. And remove the sid repository, packages and preferences file as well, that's playing with fire (pinning notwithstanding).

EDIT: it is possible that you won't be able to remove all of the non-stable packages. Re-installation is the only way to be sure here.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12316
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Impossible to shut down

Postby nedsi » 2020-02-01 19:02

do you not remember doing that?


This I do (at least for the mots recent ones). I didn't understand well what I was doing at the beginning and tended to follow blindly tutorials by copying/pasting stuff without thinking too much about it. Now, I'm more aware of the implications but didn't think it was possible that stuff like Signal or other such big product could actually break something in Debian.

Did you not create such a file?


This one I can only say I don't remember ever doing this as I didn't even know what "pin" meant before I checked on the internet after you mentioned it.

It's a bit frustrating when the OP claims that "I don't have anything special installed/configured" but the evidence clearly says otherwise.


I do understand that and I'm sorry about it. I genuinely thought that my usage was really not special at all.


Anyway, thanks again for the help, I'll try to do that asap and post an update here whether it worked or not. I hope I'll manage to get it to work without re-installation tho.
nedsi
 
Posts: 6
Joined: 2019-02-20 13:19

Re: Impossible to shut down

Postby nedsi » 2020-02-03 20:32

Ok, well, I tried to uninstall everything but, as you said it'd be possible that it wouldn't work, it didn't.

So I had to make a fresh install which is now running perfectly fine.

So thanks a lot for the help !

Just a last thing:

How could I have diagnosed this myself? I didn't follow the reasoning there...
nedsi
 
Posts: 6
Joined: 2019-02-20 13:19

Re: Impossible to shut down

Postby Head_on_a_Stick » 2020-02-05 17:26

nedsi wrote:I didn't follow the reasoning there...

The only reasoning is given in the DontBreakDebian link. I don't actually know how or why you had this problem but foreign repositories are a bad idea so I wasn't prepared to go any further until they were removed.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12316
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Impossible to shut down

Postby nedsi » 2020-02-08 19:45

So actually there is something new.

I didn't have time to post back, but basically the fresh install worked once and then the same problem happened - I couldn't shut down.

I tried to install something else (Manjaro) and there was no problem anymore. But going back to Debian (I wasn't going to leave it for long, it was just a test), I have again that same shut down problem.

Any idea what might be happening ? A hardware compatibility issue with Debian maybe ? I have a Lenovo T580 with an nVidia graphic card.

EDIT:
So as I started having shutdown problems before, I guess some of the non-official repos and other modifications I made without thinking too much about it were the first problems. And then I didn't link it directly, but I guess it's when I updated to Buster that the real shutdown freezes appeared. Thanks to your advice of reinstalling, I managed to see that there was a good chance it was linked to hardware and the final solution was to add the buster-backports repo and install nvidia-driver from there. (https://wiki.debian.org/NvidiaGraphicsD ... 2Buster.22)

thanks again for your help !
nedsi
 
Posts: 6
Joined: 2019-02-20 13:19


Return to System configuration

Who is online

Users browsing this forum: No registered users and 17 guests

fashionable