U4 Frequently crashes / reboots / freezes

Moderators: Gully, peteru

Post Reply
Pat
Apprentice
Posts: 58
Joined: Mon May 07, 2018 10:52

U4 Frequently crashes / reboots / freezes

Post by Pat » Sun Nov 22, 2020 22:08

For the past week I've been having various issue, I'm thinking the HDD is dying. A few months ago I had an issue with the HDD:
viewtopic.php?f=42&t=14270

But this time the symptoms are different. I ran fsck.ext4 and it didn't find any issues.

Sometimes when I turn on the U4 I find it is on the boot screen, saying loading 100% on the front panel but never loads. I turn it off and on again and it usually boots fine. It seems to be in this state after a timer was scheduled to record.

I try to manually start a recording and it fails, asking if the disk is full, but there is 148 GB.

Timeshift sometimes works and sometimes doesn't.

Sometimes when I go to play a recording it will crash with a screen of white text then reboot. Sometimes it will reboot fine and other times it will get stuck at the loading screen. If I then try to play the same recording it may work fine.

Recording playback may get part way through then freeze. It might keep playing a minute later, or it might crash, or it might just stay frozen until I restart manually.

Sometimes when it starts up I try to go to my recordings but it is empty, I try to change the location but it says it can't find the path. Reboot and sometimes it may or may come back good.

Sometimes just scrolling through recordings will cause it to crash with the white text.

I reinstalled the firmware from USB and set up everything from scratch (didn't restore a backup). I've use the file system check from the UI, and fsck.ext4 -f and fsck.ext4 -c from telnet. They didn't seem to turn up any errors.

However, I did see this when running -c. It is saying "badblocks: command not found" so does that mean it's not actually able to check for bad sectors?

Code: Select all

root@beyonwizu4:~# fsck.ext4 -c v/sda1
e2fsck 1.44.3 (10-July-2018)
sh: badblocks: command not found
U4: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

U4: ***** FILE SYSTEM WAS MODIFIED *****
U4: 2327/357744 files (18.2% non-contiguous), 208065741/244190208 blocks
Attached are the most recent crash logs. I'm seeing errors like this, so I'm guessing HDD:

Code: Select all

<3>blk_update_request: I/O error, dev sda, sector 88367456
Anything else I can do to try to repair it?
Attachments
Enigma2_crash_2020-11-22_21-33-48.log
(19.92 KiB) Downloaded 44 times
Enigma2_crash_2020-11-22_21-41-30.log
(24.32 KiB) Downloaded 44 times
Enigma2_crash_2020-11-22_22-43-11.log
(22.84 KiB) Downloaded 40 times

User avatar
peteru
Uber Wizard
Posts: 9737
Joined: Tue Jun 12, 2007 23:06
Location: Sydney, Australia
Contact:

Re: U4 Frequently crashes / reboots / freezes

Post by peteru » Mon Nov 23, 2020 00:23

I don't know who advised you to use the -c option to fsck.ext4, but don't.

What you want is fsck.ext4 -f /dev/sda1 (or whatever the correct device for your HDD is).

On the surface, a flaky HDD is the most likely cause. However, it could be something else than the HDD itself. For example bad cabling/connectors between the HDD and motherboard. Simplest test is to replace the HDD and see if the replacement behaves. Even if it is an old and small HDD, just for testing purposes. If the replacement HDD also exhibits problems, you need to start looking at the cables & connectors and maybe the components on the motherboard itself.

Given the crash logs, a file system check is prudent because of all the errors you are getting, but it won't fix the problem. If the HDD operates intermittently, there's not much that a filesystem check can do. The problem will be back.

"Beauty lies in the hands of the beer holder."
Blog.

Pat
Apprentice
Posts: 58
Joined: Mon May 07, 2018 10:52

Re: U4 Frequently crashes / reboots / freezes

Post by Pat » Mon Nov 23, 2020 12:21

Thanks peteru. I did a -f a couple of times already, but didn't see anything indicative.

Code: Select all

root@beyonwizu4:~# fsck.ext4 -f/dev/sda1
e2fsck 1.44.3 (10-July-2018)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
U4: 2327/357744 files (18.2% non-contiguous), 208065741/244190208 blocks
The HDD is 2 years old (so is the PVR), it is a Seagate Barracuda 1TB. Any recommendations on a drive that is going to be more reliable?

User avatar
peteru
Uber Wizard
Posts: 9737
Joined: Tue Jun 12, 2007 23:06
Location: Sydney, Australia
Contact:

Re: U4 Frequently crashes / reboots / freezes

Post by peteru » Mon Nov 23, 2020 13:49

In small quantities, choosing a HDD is a lottery. Go with whatever appears to be reasonable value at the time you purchase. Maybe a 2TB WD Blue? Although, you could get a 1TB SATA SSD for about the same amount of money.

"Beauty lies in the hands of the beer holder."
Blog.

Pat
Apprentice
Posts: 58
Joined: Mon May 07, 2018 10:52

Re: U4 Frequently crashes / reboots / freezes

Post by Pat » Mon Nov 23, 2020 16:50

Can I plug the drive into a USB enclosure and run everything without an internal drive? I.e. can I change the recording and timeshift location to USB? That way I can rule out cable and motherboard while I'm waiting for a new drive.

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: U4 Frequently crashes / reboots / freezes

Post by Grumpy_Geoff » Mon Nov 23, 2020 16:59

Pat wrote:
Mon Nov 23, 2020 16:50
Can I plug the drive into a USB enclosure and run everything without an internal drive? I.e. can I change the recording and timeshift location to USB?

Yes, but you shouldn't need to change any settings as the sole USB HDD should mount as /media/hdd (even though the device attachment may be /dev/sdb1 or /dev/sdc1, for example).
I wouldn't boot with more than one USB storage device attached though, as the device assignment may change and all of a sudden a thumbdrive may be mounted as /media/hdd and your USB HDD may be mounted as /media/usb!

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: U4 Frequently crashes / reboots / freezes

Post by Grumpy_Geoff » Mon Nov 23, 2020 17:04

Pat wrote:
Mon Nov 23, 2020 12:21
The HDD is 2 years old (so is the PVR), it is a Seagate Barracuda 1TB. Any recommendations on a drive that is going to be more reliable?

What model is it?
If it's a ST1000LM048, I wonder if this is a sign of shingle-pox (SMR) issues? Do the issues happen when the box is busy with concurrent recordings?

Pat
Apprentice
Posts: 58
Joined: Mon May 07, 2018 10:52

Re: U4 Frequently crashes / reboots / freezes

Post by Pat » Mon Nov 23, 2020 17:30

Grumpy_Geoff wrote:
Mon Nov 23, 2020 17:04
What model is it?
If it's a ST1000LM048, I wonder if this is a sign of shingle-pox (SMR) issues? Do the issues happen when the box is busy with concurrent recordings?
Yes, that is the model number. Is there anything I can do to fix it?

I have the timeshift turned on, so it is usually recording something via that. But even with timeshift turned off, just scrolling through the recordings list can trigger a crash. Maybe reading the info from lots of different recordings?


Took the drive out, plugged it into USB, booted it up and started a recording... 2 minutes later it crashed.

The error log looks different, but I'm assuming this is the USB version of the same issue.

Code: Select all

<6>sd 2:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=0x00
<6>sd 2:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 5e 8a 78 d8 00 00 08 00
<3>blk_update_request: I/O error, dev sda, sector 1586133208
<6>sd 2:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=0x00
<6>sd 2:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 01 8e 3f 00 00 01 00 00
<3>blk_update_request: I/O error, dev sda, sector 26099456
<4>EXT4-fs warning (device sda1): ext4_end_bio:314: I/O error -5 writing to inode 14093 (offset 54288384 size 1925120 starting block 9139654)
<3>Buffer I/O error on device sda1, logical block 9139142
<3>Buffer I/O error on device sda1, logical block 9139143
...

Pat
Apprentice
Posts: 58
Joined: Mon May 07, 2018 10:52

Re: U4 Frequently crashes / reboots / freezes

Post by Pat » Mon Nov 23, 2020 20:05

As I don't have a working HDD at the moment. Is there any way to set the recording location to a NAS share?

User avatar
peteru
Uber Wizard
Posts: 9737
Joined: Tue Jun 12, 2007 23:06
Location: Sydney, Australia
Contact:

Re: U4 Frequently crashes / reboots / freezes

Post by peteru » Mon Nov 23, 2020 20:10

That's s fairly solid indication that the drive is faulty.

"Beauty lies in the hands of the beer holder."
Blog.

Paul_oz53
Wizard
Posts: 2789
Joined: Sat Jun 13, 2009 02:34
Location: Melbourne

Re: U4 Frequently crashes / reboots / freezes

Post by Paul_oz53 » Mon Nov 23, 2020 21:18

Pat wrote:
Mon Nov 23, 2020 20:05
As I don't have a working HDD at the moment. Is there any way to set the recording location to a NAS share?

I haven't tried it myself but others do. The main issue with NAS shares is to use a version of SMB that works ok for both. Have a user account and password ready if your NAS requires them.

Use the network browser to setup a CIFS share on the NAS. It should work with the autofs mount type but if it doesn't, try fstab instead.

You may need to delete the mount option vers=2.1 if your NAS doesn't support version 2.1.

You should tick the "use as HDD replacement option" too.
__________________________________
Paul
Beyonwiz T4, 2 x U4: FW - 19.3 20211010
Samsung QA85Q80BAWXXY 4K TV
Samsung QA65Q80TAWXXY 4K TV
Samsung HW Q800BXY soundbar
OverlayHD 1.70, IceTV, Foxtel IQ4
2 x Win7 PCs, 2 x Win10 PCs
Denon AVR -X2400H

Pat
Apprentice
Posts: 58
Joined: Mon May 07, 2018 10:52

Re: U4 Frequently crashes / reboots / freezes

Post by Pat » Mon Nov 23, 2020 21:24

Paul_oz53 wrote:
Mon Nov 23, 2020 21:18
You should tick the "use as HDD replacement option" too.
Is that it? Once I do that it will automatically start recording there?

Edit: never mind, I found the setting. Thanks for your help.


I've plugged the HDD into my Windows PC and loaded up the drive using ext2fsd. Seems I can copy a couple of shows before it stops. I cycle the power on the USB and then hit 'retry' and it will copy a few more shows. It's painstaking, and will probably take a week, but looks like I'll be able to save my recordings.

Paul_oz53
Wizard
Posts: 2789
Joined: Sat Jun 13, 2009 02:34
Location: Melbourne

Re: U4 Frequently crashes / reboots / freezes

Post by Paul_oz53 » Mon Nov 23, 2020 21:40

Pat wrote:
Mon Nov 23, 2020 21:24
Paul_oz53 wrote:
Mon Nov 23, 2020 21:18
You should tick the "use as HDD replacement option" too.
Is that it? Once I do that it will automatically start recording there?

Edit: never mind, I found the setting. Thanks for your help.


I've plugged the HDD into my Windows PC and loaded up the drive using ext2fsd. Seems I can copy a couple of shows before it stops. I cycle the power on the USB and then hit 'retry' and it will copy a few more shows. It's painstaking, and will probably take a week, but looks like I'll be able to save my recordings.

You may need to change the recording location in Menu >> Setup >> TV >> Recording settings after a restart or reboot.

I had no problem creating a share on my pc but I am recording so can't restart ATM.
__________________________________
Paul
Beyonwiz T4, 2 x U4: FW - 19.3 20211010
Samsung QA85Q80BAWXXY 4K TV
Samsung QA65Q80TAWXXY 4K TV
Samsung HW Q800BXY soundbar
OverlayHD 1.70, IceTV, Foxtel IQ4
2 x Win7 PCs, 2 x Win10 PCs
Denon AVR -X2400H

Pat
Apprentice
Posts: 58
Joined: Mon May 07, 2018 10:52

Re: U4 Frequently crashes / reboots / freezes

Post by Pat » Tue Nov 24, 2020 19:07

I don't think the NAS was working as a recording device. I think it might be going into low power mode, then when a scheduled recording is supposed to start the NAS takes too long to wake up.

I'll disable HDD hibernation on the NAS and see if that helps.

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: U4 Frequently crashes / reboots / freezes

Post by Grumpy_Geoff » Tue Nov 24, 2020 19:40

Pat wrote:
Tue Nov 24, 2020 19:07
I'll disable HDD hibernation on the NAS and see if that helps.

Yes, required for you.
The beta firmware has code in it that retries the storage at 5 second intervals for up to 4 times if the drive isn't ready. The production/general release f/w doesn't have that.

prl
Wizard God
Posts: 32705
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: U4 Frequently crashes / reboots / freezes

Post by prl » Tue Nov 24, 2020 21:29

Grumpy_Geoff wrote:
Tue Nov 24, 2020 19:40
The beta firmware has code in it that retries the storage at 5 second intervals for up to 4 times if the drive isn't ready. The production/general release f/w doesn't have that.
... up to 3 times ...
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: U4 Frequently crashes / reboots / freezes

Post by Grumpy_Geoff » Tue Nov 24, 2020 22:03

prl wrote:
Tue Nov 24, 2020 21:29
Grumpy_Geoff wrote:
Tue Nov 24, 2020 19:40
The beta firmware has code in it that retries the storage at 5 second intervals for up to 4 times if the drive isn't ready. The production/general release f/w doesn't have that.
... up to 3 times ...

:oops:
Yes, of course silly me, as written, less than 3 means, well - if tried less than 3 times, then try again -
https://bitbucket.org/beyonwiz/easy-ui- ... mer.pyT485
I blame the beer.

prl
Wizard God
Posts: 32705
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: U4 Frequently crashes / reboots / freezes

Post by prl » Wed Nov 25, 2020 09:19

:)
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Pat
Apprentice
Posts: 58
Joined: Mon May 07, 2018 10:52

Re: U4 Frequently crashes / reboots / freezes

Post by Pat » Wed Nov 25, 2020 18:11

So is that only for NAS? Or would the same retry apply to local disk errors? Or if I stuck this faulty drive into USB?

Looking at the merge log it seems to only be for writing, or is there something similar to retry on read errors?

I'm thinking if the Beta is a bit more robust for reading from flaky drives, it might save me from having to (painfully) transfer all the recordings to my NAS. If I can at least watch them off the bad drive, albeit with a few interruptions, it might be worth the hassle of running Beta.

P.S. (off topic), has anything been added to the Beta to workaround my other issue?

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: U4 Frequently crashes / reboots / freezes

Post by MrQuade » Wed Nov 25, 2020 18:40

Pat wrote:
Wed Nov 25, 2020 18:11

P.S. (off topic), has anything been added to the Beta to workaround my other issue?
From a quick review of those issues, I would say that many of them could be explained by........a failing harddisk.

It's likely all related to your current issue.
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

Pat
Apprentice
Posts: 58
Joined: Mon May 07, 2018 10:52

Re: U4 Frequently crashes / reboots / freezes

Post by Pat » Wed Nov 25, 2020 20:02

MrQuade wrote:
Wed Nov 25, 2020 18:40
Pat wrote:
Wed Nov 25, 2020 18:11

P.S. (off topic), has anything been added to the Beta to workaround my other issue?
From a quick review of those issues, I would say that many of them could be explained by........a failing harddisk.

It's likely all related to your current issue.
The timeshift issue has been there since day one. Whereas the failing hard drive only started 6 months ago, I managed to repair it then, but the past week it packed it in.

The other issue seemed to indicate a problem with the broadcast.
peteru wrote:
Thu Jun 13, 2019 18:36
Sounds like you might have a regional broadcaster with dodgy operating practices. In particular, they may have lots of PTS discontinuities, which could imply they are broadcasting a signal that does comply with the standard...
If you look at the screenshots in this post, it doesn't seem like they would be caused by a faulty hard drive. At minimum the playback needs some out of bounds validation.


Back on topic. Scheduled timers still weren't recording to the NAS, even after disabling hibernation. Long story short, it turns our the timers were still trying to save to the internal HDD. I had changed the Timer Location and Instant Recording Location to the NAS, but left the Default Movie Location on the original setting. It seems like the scheduled timers from IceTV and and manually created timer were using Default Movie Location rather than Timer Location. Once I changed the Default Movie Location, all the timers then updated. I'll have to wait until tomorrow to see if it all works after a few hours idle.

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: U4 Frequently crashes / reboots / freezes

Post by MrQuade » Wed Nov 25, 2020 22:08

Pat wrote:
Wed Nov 25, 2020 20:02
The timeshift issue has been there since day one. Whereas the failing hard drive only started 6 months ago, I managed to repair it then, but the past week it packed it in.
If suggest that the harddisk had probably been intermittently dicky the whole time but probably only got bad enough in the last 6 months to become an obvious problem.

I agree though, that the other stuff looks like garbage data from the broadcaster. Not much you can do about that other than to get them to fix their end though. The Wiz can only act on what it receives.
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

User avatar
peteru
Uber Wizard
Posts: 9737
Joined: Tue Jun 12, 2007 23:06
Location: Sydney, Australia
Contact:

Re: U4 Frequently crashes / reboots / freezes

Post by peteru » Wed Nov 25, 2020 23:06

If the failing HDD locks up the kernel long enough while the drivers deal with error retries on the media, then there could be secondary issues, such as lost packets from the DVB drivers. This could then present as errors and discontinuities in the stream.

My advice would be to replace the faulty HDD, reflash firmware with the most recent beta available at the time and setup from scratch, without restoring settings. You may find that doing this cures all your problems.

If it does not help with the other issues, you will have increased confidence that those issues are caused by something else, such as dodgy broadcaster practices. It's always a good idea to ensure that the fault is not at your end before asking others to look into their systems.

"Beauty lies in the hands of the beer holder."
Blog.

Post Reply

Return to “General Topics”