systemctl status channels-dvr
● channels-dvr.service - Channels DVR
Loaded: loaded (/etc/systemd/system/channels-dvr.service; enabled; vendor >
Active: active (running) since Fri 2024-02-23 20:55:21 CST; 31s ago
Main PID: 3954 (channels-dvr)
Tasks: 15 (limit: 38204)
Memory: 36.8M
CPU: 542ms
CGroup: /system.slice/channels-dvr.service
└─3954 /backup/channels-dvr/latest/channels-dvr
Check the log file
tried to get to log using this, but no luck.
tail -50 ~/channels-dvr/data/channels-dvr.log
tail: cannot open '/home/jsn61985/channels-dvr/data/channels-dvr.log' for reading: No such file or directory
Try tail /backup/channels-dvr/data/channels-dvr.log
.
At least, that's where the service unit seems to be looking ...
good call, missed that...
tail /backup/channels-dvr/data/channels-dvr.log
2024/02/22 19:31:35.392984 [DVR] Commercial detection for Young Sheldon S07E02 A Roulette Wheel and a Pi 2024-02-22-1900.mpg finished with 8 markers in 33.439374159s (6 threads).
2024/02/23 20:33:18.907567 [SYS] Starting Channels DVR v2024.02.11.0311 (linux-x86_64 pid:2624) in /backup/channels-dvr/data
2024/02/23 20:33:20.002935 [SYS] Started HTTP Server on 8089
2024/02/23 20:33:20.447970 [HDR] Found 1 devices
2024/02/23 20:33:23.110394 [DVR] Processing partially recorded expired job 1708651860-9 Ghosts
2024/02/23 20:55:23.262390 [SYS] Starting Channels DVR v2024.02.11.0311 (linux-x86_64 pid:3954) in /backup/channels-dvr/data
2024/02/23 20:55:23.704468 [SYS] Started HTTP Server on 8089
2024/02/23 20:55:24.159778 [HDR] Found 1 devices
2024/02/23 20:55:26.414280 [DVR] Processing partially recorded expired job 1708651860-9 Ghosts
2024/02/23 21:02:45.232031 [IDX] Pruned 5237 expired airings from USA-OTA76001 in 7m7s.
just sent, thanks
I sent the debug file on Saturday, just curious when I should expect some feedback.
Something weird going on with your computer. Did you mean to run out of /backup
? is that some kind of special mount or filesystem? It's hanging when talking to it.
Odd. Been running for almost a year no issues. Last week I was using Tailscale, then streaming to web player on my laptop... first time ever doing that. Would it be writing anything to the drive during that? It was the morning after that it starting hanging... it's a separate HDD set to a specific mount point. It's a 1TB drive that has historically never had more than ~250GB on it... I keep most everything deleted after I watch it, and use a separate drive altogether for the my movie library.
Strange.. have you tried to reboot already? Check dmesg
for any weird errors?
I did reboot, then went ahead and apt update && apt upgrade then reboot again. Let me go dive into dmesg and the mounting/drive itself and see what comes up
Did you have a power loss or something recently?
I think maybe your recorder.db file has become corrupted...
You could try moving it away, then use http://x.x.x.x:8089/restore to pick a backup from a few days before the issue started and see if that boots up correctly.
I was out of town, could have had a power loss, but this machine is on a UPS. I am getting all kinds of read errors on that drive:
from dmesg
[431652.920833] ata5.00: status: { DRDY ERR }
[431652.920837] ata5.00: error: { UNC }
[431652.925804] ata5.00: configured for UDMA/133
[431652.925820] sd 4:0:0:0: [sdd] tag#24 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=2s
[431652.925825] sd 4:0:0:0: [sdd] tag#24 Sense Key : Medium Error [current]
[431652.925829] sd 4:0:0:0: [sdd] tag#24 Add. Sense: Unrecovered read error - auto reallocate failed
[431652.925833] sd 4:0:0:0: [sdd] tag#24 CDB: Read(10) 28 00 36 95 0e 20 00 00 08 00
[431652.925836] I/O error, dev sdd, sector 915738144 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[431652.925855] ata5: EH complete
that series of lines repeats over and over
Well more specifically, it iterates over and over with different tags but the same sector as showing bad
There you go the drive is failing
Thanks for the help... new drive will be here Friday. I think I got it from there