I made another comment since the previous one was getting long.
System locked again when trying to delete a folder with many files. I was able to run the commands @MichaIng gave me:
dmesg -l 0,1,2,3
:
[130093.024919] usb usb2-port1: connect-debounce failed
[130106.649177] usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
[151706.172920] hwmon hwmon1: Undervoltage detected!
[151796.892907] hwmon hwmon1: Undervoltage detected!
[152548.860868] hwmon hwmon1: Undervoltage detected!
[152875.452877] hwmon hwmon1: Undervoltage detected!
[153415.740852] hwmon hwmon1: Undervoltage detected!
[171221.055216] hwmon hwmon1: Undervoltage detected!
[261207.228552] hwmon hwmon1: Undervoltage detected!
[261271.068361] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261271.068450] xhci_hcd 0000:01:00.0: @00000005013e30f0 00000000 00000000 05000000 02088001
[261301.264146] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261301.264229] xhci_hcd 0000:01:00.0: @00000005013e3350 00000000 00000000 05000000 02088001
[261301.264568] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261301.264628] xhci_hcd 0000:01:00.0: @00000005013e3390 00000000 00000000 05000000 02088001
[261301.264961] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261301.265019] xhci_hcd 0000:01:00.0: @00000005013e33d0 00000000 00000000 05000000 02088001
[261301.265350] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261301.265407] xhci_hcd 0000:01:00.0: @00000005013e3410 00000000 00000000 05000000 02088001
[261301.265737] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261301.265794] xhci_hcd 0000:01:00.0: @00000005013e3450 00000000 00000000 05000000 02088001
[261301.266125] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261301.266184] xhci_hcd 0000:01:00.0: @00000005013e3490 00000000 00000000 05000000 02088001
[261301.266512] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261301.266569] xhci_hcd 0000:01:00.0: @00000005013e34d0 00000000 00000000 05000000 02088001
[261301.793613] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261301.793703] xhci_hcd 0000:01:00.0: @00000005013e37f0 00000000 00000000 05000000 02088001
[261331.972239] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261331.972321] xhci_hcd 0000:01:00.0: @00000005013e3a10 00000000 00000000 05000000 02088001
[261331.972661] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261331.972726] xhci_hcd 0000:01:00.0: @00000005013e3a50 00000000 00000000 05000000 02088001
[261331.973064] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261331.973125] xhci_hcd 0000:01:00.0: @00000005013e3a90 00000000 00000000 05000000 02088001
[261331.973457] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261331.973516] xhci_hcd 0000:01:00.0: @00000005013e3ad0 00000000 00000000 05000000 02088001
[261331.973849] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261331.973908] xhci_hcd 0000:01:00.0: @00000005013e3b10 00000000 00000000 05000000 02088001
[261331.974236] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261331.974297] xhci_hcd 0000:01:00.0: @00000005013e3b50 00000000 00000000 05000000 02088001
[261331.974623] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[261331.974682] xhci_hcd 0000:01:00.0: @00000005013e3b90 00000000 00000000 05000000 02088001
[262755.445781] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[262755.445871] xhci_hcd 0000:01:00.0: @00000005013defb0 00000000 00000000 05000000 02088000
[262786.046207] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[262786.046288] xhci_hcd 0000:01:00.0: @00000005013df0b0 00000000 00000000 05000000 02088000
[262786.046639] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[262786.046701] xhci_hcd 0000:01:00.0: @00000005013df0f0 00000000 00000000 05000000 02088000
[262786.047044] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[262786.047104] xhci_hcd 0000:01:00.0: @00000005013df130 00000000 00000000 05000000 02088000
[262786.579286] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[262786.579370] xhci_hcd 0000:01:00.0: @00000005013df380 00000000 00000000 05000000 02088000
[262817.295296] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[262817.295385] xhci_hcd 0000:01:00.0: @00000005013df750 00000000 00000000 05000000 02088000
[262878.709428] xhci_hcd 0000:01:00.0: ERROR Transfer event for unknown stream ring slot 2 ep 7
[262878.709514] xhci_hcd 0000:01:00.0: @00000005013dfee0 00000000 00000000 05000000 02088000
[262909.083939] sd 0:0:0:0: [sda] tag#8 timing out command, waited 180s
[262909.085681] I/O error, dev sda, sector 806840 op 0x1:(WRITE) flags 0x4800 phys_seg 128 prio class 2
[262909.087315] Buffer I/O error on dev sda2, logical block 67831, lost sync page write
[262909.088969] Buffer I/O error on dev sda2, logical block 67832, lost sync page write
[262909.090579] Buffer I/O error on dev sda2, logical block 67833, lost sync page write
[262909.092172] Buffer I/O error on dev sda2, logical block 67834, lost sync page write
[262909.093767] Buffer I/O error on dev sda2, logical block 67835, lost sync page write
[262909.095329] Buffer I/O error on dev sda2, logical block 67836, lost sync page write
[262909.097139] sd 0:0:0:0: [sda] tag#9 timing out command, waited 180s
[262909.098750] I/O error, dev sda, sector 809912 op 0x1:(WRITE) flags 0x800 phys_seg 11 prio class 2
[262909.100458] sd 0:0:0:0: [sda] tag#10 timing out command, waited 180s
[262909.100468] EXT4-fs error (device sda2): ext4_check_bdev_write_error:218: comm rm: Error while async write back metadata
[262909.103703] Aborting journal on device sda2-8.
[262909.104903] I/O error, dev sda, sector 808888 op 0x1:(WRITE) flags 0x4800 phys_seg 128 prio class 2
[262909.106345] sd 0:0:0:0: [sda] tag#11 timing out command, waited 180s
[262909.107594] I/O error, dev sda, sector 807864 op 0x1:(WRITE) flags 0x4800 phys_seg 128 prio class 2
[262909.455282] EXT4-fs (sda2): Remounting filesystem read-only
[262909.457106] EXT4-fs error (device sda2) in ext4_orphan_add:188: Journal has aborted
[262909.459503] EXT4-fs error (device sda2) in ext4_reserve_inode_write:5839: Journal has aborted
[262909.461827] EXT4-fs error (device sda2): __ext4_unlink:3269: inode #4070387: comm rm: mark_inode_dirty error
[263057.916518] hwmon hwmon1: Undervoltage detected!
and:
vcgencmd get_throttled
:
throttled=0x50000
Seeing the many “hwmon hwmon1: Undervoltage detected!” and the fact that vcgencmd get_throttled
reports that under-voltage and throttling has occurred makes me think I should try another power supply. It’s a bit odd since it’s rated to power the PI correctly and it’s the same one I have been using since I bought the PI 1 year ago.
I will try with a different power supply and hopefully this issue will be no more.
1 thing that does concern me a little bit is the first error lines:
[130093.024919] usb usb2-port1: connect-debounce failed
[130106.649177] usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
Do they mean anything? I doubt the USB cable is actually bad since it’s brand new (came with the enclosure) and also the locking has occurred with both enclosures (the second one uses a different cable). Can this be shrugged off as caused by undervoltage and throttling? Or there might be something wrong with the port/usb controller?
Any suggestions on how to proceed? For now I have shut down the PI