Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation not persistent on UDR / UDM SE #120

Open
Calimerorulez opened this issue Apr 26, 2022 · 10 comments
Open

Installation not persistent on UDR / UDM SE #120

Calimerorulez opened this issue Apr 26, 2022 · 10 comments
Labels
kind/bug Something isn't working

Comments

@Calimerorulez
Copy link

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 :)

@Calimerorulez Calimerorulez added the kind/bug Something isn't working label Apr 26, 2022
@fabianishere
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

@Calimerorulez
Copy link
Author

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 ;)

@fabianishere fabianishere changed the title After upgrade UDR firmware, reinstall necessary? Installation not persistent on UDR / UDM SE Jan 23, 2023
@00ihsan
Copy link

00ihsan commented Sep 5, 2023

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
Copy link
Author

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
Copy link

00ihsan commented Sep 17, 2023

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

@PerryVerheij
Copy link

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
Copy link

GraceGRD commented Mar 13, 2024

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants