BETA: Channels DVR Server for Raspberry Pi 4 (USB BOOT IMAGE)

Look like three reboots made it switch back to the old version.

So can you click Restart Now to upgrade again and then see what is the led/display when it tries to boot into that new update.

I chose Reboot Now and confirmed that and to install the update, but the display and led are the same as my previous post. The admin page is the same too, prompting me to reboot to install the update. I tried it again and got the same result.

Ah, so its not rebooting correctly into the new upgrade after the previous failure.

Over ssh, type these commands:

distro-upgrade 2021.0107.0622
systemctl reboot

Then watch the HDMI as its rebooting and see where its getting stuck.

Okay, I did that and it looks like this is where it is getting stuck. Green light is blinking twice then nothing for a second then two more blinks.

1 Like

Okay, so its trying to repair now as I would expect but that's failing as well.

Do you have a windows PC? I think the best bet at this point would be to attach the drive to Windows and run a disk repair there so it can fix whatever problems are there on the exFAT DVR partition.

I do. I’ll try that now and let you know how it goes.

1 Like

I connected it to my Windows PC and scanned it for errors. Do I need to do something else while I have it attached. It wasn't very clear if it found errors or not.

Sounds like you can use chkdisk to check and repair? Some commands on https://www.diskpart.com/articles/fix-exfat-being-write-protected-4125.html

In your screenshots you can see "Some data may be corrupt, Please run fsck" and "failed to load upcase table (...)". Basically we want those to go away which should happen after windows repairs the errors.

No luck. I went through the steps and it is returning the same error.

Is there a way to backup my settings and reformat the drive? If so, what is the method for that? I have all of my imports on another drive, so I am not worried about losing them.

Yea you can copy off the Database and TV/Movies folders and then reimage, copy them back, and restore.

1 Like

I am back up and running. When through and reimaged it. I am getting the imports migrated over now. Thanks for the help!

Homebridge is very light so I think it would handle it fine unless you intend to do a lot of transcoding.

Hi, I lost all recordings and imports in RPi DVR.

The DVR directory had somehow been turned into read-only mode, 3 recordings had been failed and when I checked the directory structure of DVR, only Database, Images and Streaming were shown. Movies, TV and Import had disappeared. The drive is USB3 external 4TB drive without external power supply. It has been working fine for a month before this.

Mac's Disk Utility was not able to fix the exFAT filesystem and I had to reformat the drive to find out if the drive itself was broken. It was not...

Fortunately, this was my test system and I had my old DVR working at the same time, so all I lost were those three recordings.

I think that the DVR software was updated from 2020-11-06 version to 2020-12-10 (or something like that) before this happened.

I have never trusted FAT filesystems and I'm now back in Mac mini DVR where I use this same drive as HPFS formatted drive.

There were also some other changes I made before this happened, but I think they don't have this kind of effect.

@masterakk I was having something similar happening to me on my RPi but was able to solve it by getting a powered USB 3 hub.

Based on support from Channels developer @tmm1 and other forum posts, I think the bus-powered drive was drawing too much power from the RPi and was creating the ‘read-only’ errors: The RPi 4 does not have enough power for two bus-powered drives.

In my case, I had installed the USB boot image on to a bus-powered USB 3.0 60GB SSD drive, and I also had a bus-powered USB 3.0 5TB WD My Passport drive for my DVR recordings (ExFAT format). Everything had been working fine for several weeks with this configuration, but then about a week ago I kept getting the ‘read-only’ errors and failed recordings.

It’s been about four days since installing the powered USB 3 hub (into which I have plugged the 5TB drive and a 2nd 1TB drive) and fingers crossed so far I have not had any more ‘read-only’ errors. The SSD boot drive is still plugged directly into one of the RPi’s USB 3 ports.

If you have access to a powered USB 3 hub, you may want to try that and see if it works for you.

My first thought also was to power the drive separately, as drives powered by the pi only have been known to have issues for many users.

1 Like

It looks like Homebridge is an image file intended to be dd' to the flash card. You can download the source but I haven't seen a compiler installed on the Channels Pi image so this will likely be an uphill challenge. That said, there are instructions on Homebridge to install on Docker which might work for you. I've had success running the Pluto-for-channels on Docker on the RasPi Channels image--but I always have to do a docker ps after reboot to kick things.

You asked if the RPi4 can handle--I think it could allow a small additional load. I've had 6-8 things (recording, watching, mix of OTA HDHR Conn, Sling, Pluto, WatchATT) and have not noticed any glitches. But the RasPi4 is pretty loaded at this point. I wouldn't try with a smaller Pi but you don't need the larger RAM versions.

You can install Homebridge on RPi along with everything else on your pi, just follow the instructions here: https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Raspbian

That is not going to be compatible with the RPi Channels DVR software image without some work. Many tools like apt or gcc are not available. Docker however is available so running from that framework would require minimal effort on the RPi DVR.

I understand that, but I read your reply that it was just an image that you install directly to the flash card, and was pointing out an alternate method. Anyone who wants to get into Homebridge should be savvy enough to install Channels to RPi the old fashioned way and not need to use the image. I'm new to RPi, bought it for Channels just before they came out with the dedicated image, and it's really pretty easy to setup. I've also been able to install Homebridge, and the Pluto Docker all on the same Pi, with virtually no issues.

Curious if there are default SMB credentials I need to use to login to the SMB Server once enabled? Windows prompts me for network credentials, and I'm not clear on what those would be or how I would set them from the server setup page.