fabianishere / udm-iptv

Helper tool for configuring routed IPTV on the UniFi Dream Machine (Pro)
GNU General Public License v2.0
415 stars 61 forks source link

Installation not persistent on UDR / UDM SE #120

Open Calimerorulez opened 2 years ago

Calimerorulez commented 2 years ago

What is your ISP? (if relevant)

KPN

Diagnostic Information

Not available anymore after reinstall :(

Describe the Bug

I just installed the new firmware for the UDR (2.4.9), and I had to reinstall the .deb file, despite having:

root@UDR:/tmp# cat /etc/default/ubnt-dpkg-cache
DPKG_CACHE=yes
DPKG_CACHE_DEBUG=yes
DPKG_CACHE_APT_UNPACK=yes
DPKG_CACHE_APT_REMOVE_AS_PURGE=yes
DPKG_CACHE_UBNT_PKGS="unifi unifi-protect ulp-go unifi-access unifi-talk unifi-connect uid-agent"
DPKG_CACHE_UBNT_PKGS+=" udm-iptv igmpproxy dialog"

In the ubnt-dpkg-cache file.

Expected Behavior

No reinstall :)

fabianishere commented 2 years ago

I suspect this is unavoidable on the UDR. I recommend making a backup of /etc/udm-iptv.conf and restoring it after re-installation.

Calimerorulez commented 2 years ago

Hi, thank you for your reply.

Should I close this issue, or do you want to look into it further?

I can provide debug info if necessary.

fabianishere commented 2 years ago

I'll keep it open so others can see, but I don't expect a fix unless Ubiquiti changes the firmware update process.

Calimerorulez commented 2 years ago

Just upgraded to 2.4.10, and I did not have to reinstall the script/software. But maybe that was a lucky shot... Can't reproduce it anymore now ;)

00ihsan commented 1 year ago

Just an idea.... what if you add a feature to configure the app as an argument? for example:

sh -c "$(curl https://raw.githubusercontent.com/fabianishere/udm-iptv/master/install.sh -sSf)" 192.168.2.1 KPN

Now I can run this command every time when the UDR has an update. Just need to build a monitoring system that will execute this command and you're done.

Or am I missing something?

Calimerorulez commented 1 year ago

Well every time there's an update, I just run the install script again as it keeps track of the configuration as it was before the update.

00ihsan commented 1 year ago

Again, iptv gone. Knew instantly where to look. Fmi this is an ubiquity problem right?

PerryVerheij commented 11 months ago

Again, iptv gone. Knew instantly where to look. Fmi this is an ubiquity problem right?

This is correct. See fabianishere's comment below.

I'll keep it open so others can see, but I don't expect a fix unless Ubiquiti changes the firmware update process.

Unfortunately, Ubiquiti hasn't change the process since this comment.

GraceGRD commented 6 months ago

I'm using the USG with KPN (Internet + IPTV) using the following manual (written in Dutch). And I'm about to upgrade to the Cloud Gateway Ultra (CGU).

It places the kpn.sh file in the /config/scripts/post-config.d/ folder which for me persisted over updates (I'm not sure if this is the case for UDM/CGU. According the following unifi forum post. files in the /config/ folder are persisted.

Perhaps it is possible to modify the install.sh script to check for and download the missing packages and put this script in the /config/scripts/post-config.d/ folder which is executed every time on reboot.

Has this been tried before?

Edit:

Found this: https://www.reddit.com/r/Ubiquiti/comments/gt8ijq/udmudmpro_how_to_run_commands_on_device_startup/

kayvanaarssen commented 6 months ago

I'm using the USG with KPN (Internet + IPTV) using the following manual (written in Dutch). And I'm about to upgrade to the Cloud Gateway Ultra (CGU).

It places the kpn.sh file in the /config/scripts/post-config.d/ folder which for me persisted over updates (I'm not sure if this is the case for UDM/CGU. According the following unifi forum post. files in the /config/ folder are persisted.

Perhaps it is possible to modify the install.sh script to check for and download the missing packages and put this script in the /config/scripts/post-config.d/ folder which is executed every time on reboot.

Has this been tried before?

Edit:

Found this: https://www.reddit.com/r/Ubiquiti/comments/gt8ijq/udmudmpro_how_to_run_commands_on_device_startup/

@fabianishere Can you check this, we. use the /config/scripts/post-config.d/ for things in the Edgerouter and have some custom scripting in it. Would be nice to also have something like this for the UniFi Line-up. In case of your running script, you could also opt to make an option at the end of an install / upgrade / reconfigure to copy the files used to persistent storage on the UniFi Line-Up. When a user than runs the script again check first of these files are there or not and act accordingly.

Let me know what you think.

bubblegum6754 commented 4 months ago

Also running the Cloud Gateway Ultra. I suspect this will be a very popular device given its price. I upgraded the console today to version 3.2.17 and my KPN iTV stopped working. After running the install script, it is running again. Hopeful we can figure something out to make it persistent.

Bolten88 commented 4 months ago

Also running the Cloud Gateway Ultra. I suspect this will be a very popular device given its price. I upgraded the console today to version 3.2.17 and my KPN iTV stopped working. After running the install script, it is running again. Hopeful we can figure something out to make it persistent.

Well, my 2 cents: with the UDM SE, it wasn’t persistent as well. After a OS update I had to re run the script to het the iTV working again. 1 minute effort.

dmutsaers commented 4 months ago

While it's a one minute effort, it would be nice if the reinstall could be automated. 😉