Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Should I go back to Debian 9 - Stretch ??

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Should I go back to Debian 9 - Stretch ??

#1 Post by fred44nl »

my Debian machine is a Fitlet2 with 64 GB SSD and an external Toshiba HDD.
inxi show this technical info:
fred44nl@Debian:~$ inxi -F
System: Host: Debian Kernel: 4.19.0-6-amd64 x86_64 bits: 64 Console: tty 0 Distro: Debian GNU/Linux 10 (buster)
Machine: Type: Desktop Mobo: Compulab model: fitlet2 v: 1.1 serial: <root required> UEFI: American Megatrends
v: FLT2.MBM2.0.40.01.00 date: 07/05/2018
CPU: Topology: Quad Core model: Intel Celeron J3455 bits: 64 type: MCP L2 cache: 1024 KiB
Speed: 799 MHz min/max: 800/2300 MHz Core speeds (MHz): 1: 799 2: 799 3: 799 4: 799
Graphics: Device-1: Intel driver: i915 v: kernel
Display: tty server: X.org 1.20.4 driver: intel tty: 140x40
Message: Unable to show advanced data. Required tool glxinfo missing.
Audio: Device-1: Intel Atom/Celeron/Pentium Processor N4200/N3350/E3900 Series Audio Cluster driver: snd_hda_intel
Sound Server: ALSA v: k4.19.0-6-amd64
Network: Device-1: Intel Wireless 8260 driver: N/A
Device-2: Intel I211 Gigabit Network driver: igb
IF: enp2s0 state: down mac: 00:01:c0:20:75:6d
Device-3: Intel I211 Gigabit Network driver: igb
IF-ID-1: eno1 state: up speed: 1000 Mbps duplex: full mac: 00:01:c0:20:75:6e
Drives: Local Storage: total: 990.51 GiB used: 767.11 GiB (77.4%)
ID-1: /dev/sda model: NT-64 size: 59.00 GiB
ID-2: /dev/sdb type: USB vendor: Toshiba model: MQ01UBD100 size: 931.51 GiB
Partition: ID-1: / size: 53.56 GiB used: 3.00 GiB (5.6%) fs: ext4 dev: /dev/sda2
ID-2: swap-1 size: 3.83 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda3
Sensors: System Temperatures: cpu: 23.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info: Processes: 128 Uptime: 13m Memory: 3.68 GiB used: 495.0 MiB (13.1%) Init: systemd runlevel: 5 Shell: bash
inxi: 3.0.32
this machine has been running flawlessly on Debian 9 - Stretch
but since an upgrade to Debian 10 - Buster, there are issues with the SSD becoming read-only
this appears in /var/log/syslog
Nov 14 23:14:27 Debian kernel: [133134.021252] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x50000 action 0x6 frozen
Nov 14 23:14:27 Debian kernel: [133134.021267] ata1: SError: { PHYRdyChg CommWake }
Nov 14 23:14:27 Debian kernel: [133134.021273] ata1.00: failed command: FLUSH CACHE
Nov 14 23:14:27 Debian kernel: [133134.021287] ata1.00: cmd e7/00:00:00:00:00/00:00:00:00:00/a0 tag 0
Nov 14 23:14:27 Debian kernel: [133134.021287] res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
Nov 14 23:14:27 Debian kernel: [133134.021295] ata1.00: status: { DRDY }
Nov 14 23:14:27 Debian kernel: [133134.021306] ata1: hard resetting link
Nov 14 23:14:27 Debian kernel: [133134.497361] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
Nov 14 23:14:27 Debian kernel: [133134.513774] ata1.00: configured for UDMA/133
Nov 14 23:14:27 Debian kernel: [133134.513784] ata1.00: retrying FLUSH 0xe7 Emask 0x4
Nov 14 23:14:27 Debian kernel: [133134.514501] ahci 0000:00:12.0: port does not support device sleep
Nov 14 23:14:27 Debian kernel: [133134.514557] ata1: EH complete
Nov 14 23:15:33 Debian kernel: [133199.519516] ata1.00: exception Emask 0x0 SAct 0x441fffff SErr 0x40000 action 0x6 frozen
Nov 14 23:15:33 Debian kernel: [133199.519523] ata1: SError: { CommWake }
Nov 14 23:15:33 Debian kernel: [133199.519526] ata1.00: failed command: WRITE FPDMA QUEUED
Nov 14 23:15:33 Debian kernel: [133199.519532] ata1.00: cmd 61/08:00:18:08:10/00:00:00:00:00/40 tag 0 ncq dma 4096 out
Nov 14 23:15:33 Debian kernel: [133199.519532] res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
Nov 14 23:15:33 Debian kernel: [133199.519535] ata1.00: status: { DRDY }
what I have done so far is adding the following kernel parameter:
GRUB_CMDLINE_LINUX_DEFAULT="quiet libata.force=1.5G"
smartctl tells me this:
fred44nl@Debian:~$ sudo smartctl -i /dev/sda
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-6-amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, http://www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model: NT-64
Serial Number: 977112170455
LU WWN Device Id: 0 000000 000000000
Firmware Version: Q0407A
User Capacity: 63,350,767,616 bytes [63,3 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 1.5 Gb/s)
Local Time is: Fri Nov 15 12:22:45 2019 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
as an SSD might not work very well with SMART, I have done:

Code: Select all

sudo smartctl disable smartd
my question is: what else can I do ??
going back to Stretch does not feel right, but what else is there ??
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Should I go back to Debian 9 - Stretch ??

#2 Post by dilberts_left_nut »

Replace the drive.
AdrianTM wrote:There's no hacker in my grandma...

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: Should I go back to Debian 9 - Stretch ??

#3 Post by fred44nl »

dilberts_left_nut wrote:Replace the drive.
oh, really ??
currently it is a m.2 SSD - Kingspec NT-64 (2242) with 64 GB
the footprint of my Debian now is less than 5 GB, so I could go for 32 GB
any particular brand ??
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Should I go back to Debian 9 - Stretch ??

#4 Post by Bulkley »

When faced with problems like this I start experimenting. First, backup or transfer all important stuff.

dilberts_left_nut has a good suggestion but I'd modify it a bit. Can you scrounge up an old drive to experiment with? If so, load it with a pre-configured Debian 10; choose your preferred flavour such as XFce. Run that for long enough to see if the problem returns.

Did this problem exist immediately with the upgrade? How did you do the upgrade? My personalized Stretch does not like upgrading to Buster; I've tried several times but it always fails. However, when I install a pre-configured Buster it works. Consider a fresh install.

Is the problem intermittent?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Should I go back to Debian 9 - Stretch ??

#5 Post by stevepusser »

Your 2018 hardware is too new to work out of the box with plain Stretch, though you can work around that with stretch-backports kernel, firmware, Mesa, etc.

But your drive's problems may not be related to Buster at all, and just might have decided to start going bad right at the same time, in which case you would have put in a lot of work for nothing.
MX Linux packager and developer

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: Should I go back to Debian 9 - Stretch ??

#6 Post by fred44nl »

Bulkley wrote:Did this problem exist immediately with the upgrade? How did you do the upgrade?
Is the problem intermittent?
I upgraded by modifying /etc/apt/sources.list, where I changed "stretch" into "buster".
next I ran "sudo apt update" followed by "sudo apt upgrade"
immediately after this upgrade my system hang itself and had to remove the power and connect it a while later.
checking the system as to what was running and what was new, I found "apparmor", which I removed.
this made my system stable again.
since than, it runs good and stable, until out of the blue, it hangs itself.
I can not do a reboot, and have to cycle the power.
this haning can happen after 2, 3 or 4 weeks.
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: Should I go back to Debian 9 - Stretch ??

#7 Post by fred44nl »

stevepusser wrote:Your 2018 hardware is too new to work out of the box with plain Stretch, though you can work around that with stretch-backports kernel, firmware, Mesa, etc.
that's what I experienced when I newly installed Stretch for the 1st time.
don't think I needed a stretch-backports kernel, but certainly had to add some firmware, etc.
and I got everything working :)
But your drive's problems may not be related to Buster at all, and just might have decided to start going bad right at the same time, in which case you would have put in a lot of work for nothing.
could very well be, as accidents will happen.
on the other hand, I am not the only one having exactly this problem.
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: Should I go back to Debian 9 - Stretch ??

#8 Post by sunrat »

fred44nl wrote:
Bulkley wrote:Did this problem exist immediately with the upgrade? How did you do the upgrade?
Is the problem intermittent?
I upgraded by modifying /etc/apt/sources.list, where I changed "stretch" into "buster".
next I ran "sudo apt update" followed by "sudo apt upgrade"
Hopefully you did "apt full-upgrade" as well.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: Should I go back to Debian 9 - Stretch ??

#9 Post by fred44nl »

sunrat wrote: Hopefully you did "apt full-upgrade" as well.
I might have done "sudo apt-get dist-upgrade" which is basically the same.
anyway, when I upgraded there were about 300 or 400 packages being updated/upgraded.
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: Should I go back to Debian 9 - Stretch ??

#10 Post by fred44nl »

this morning sabnzbdplus made my machine almost unresposive.
all internal memory and also the complete swap was taken by sabnzbdplus.
this was eventually solved by stopping sabnzbdplus and removing its problamatic download.
all seems to be fine again.

looked in dmesg and syslog and found al lot of entries from ata1:
also many lines with "device reported invalid CHS sector 0"
this seems to be an old error.
never seen it before and also not after solving the memory attack of sabnzbdplus.

any suggestions ??
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: Should I go back to Debian 9 - Stretch ??

#11 Post by sunrat »

One probable cause is that your drive is dying. Back up everything important if you haven't already done so.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Should I go back to Debian 9 - Stretch ??

#12 Post by pylkko »

Did you look at the SMART of the drive?

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: Should I go back to Debian 9 - Stretch ??

#13 Post by fred44nl »

pylkko wrote:Did you look at the SMART of the drive?
yes, I did
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED


SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x0000 100 100 050 Old_age Offline - 0
5 Reallocated_Sector_Ct 0x0002 100 100 050 Old_age Always - 0
would you like the full report ??
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: Should I go back to Debian 9 - Stretch ??

#14 Post by fred44nl »

sunrat wrote:One probable cause is that your drive is dying. Back up everything important if you haven't already done so.
my data is on an external HDD
and I have a spare Raspberry 3B
so, I am pretty well covered :)
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Should I go back to Debian 9 - Stretch ??

#15 Post by pylkko »

fred44nl wrote: would you like the full report ??
Why are you asking this? What are you trying to achieve?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Should I go back to Debian 9 - Stretch ??

#16 Post by stevepusser »

In case it's a bug restricted to the 4.19 kernel, you could also try a buster-backports kernel, or a Liquorix kernel.
MX Linux packager and developer

Post Reply