unifi-utilities / unifios-utilities

A collection of enhancements for UnifiOS based devices
GNU General Public License v3.0
3.86k stars 415 forks source link

Doesn't work at all on 1.8.5 #103

Closed VIPKaiser closed 3 years ago

VIPKaiser commented 3 years ago

I cannot get it to work at all on 1.8.5 the package runs as follows:

root@ubnt:/# dpkg -i udm-boot_1.0.2_all.deb [parse_pkg_files] cmdargs: dpkg (Reading database ... 61700 files and directories currently installed.) Preparing to unpack udm-boot_1.0.2_all.deb ... Unpacking udm-boot (1.0.2) over (1.0.2) ... Setting up udm-boot (1.0.2) ...

-> ubnt-dpkg-cache install

[parse_pkg_files] cmdargs: dpkg [cache_add_action] PKGFILES: /udm-boot_1.0.2_all.deb removing /data/dpkg-cache/stretch/packages/udm-boot_1.0.2_all.deb ... done udm-boot: action=install, package=/data/dpkg-cache/stretch/packages/udm-boot_1.0.2_all.deb mark=manual <-# ubnt-dpkg-cache install

Nothing is created, nothing is added to init.d directory no service is created?

ArmandH commented 3 years ago

I have same question because they also mention if you want to cleanup rm etc/init.d/udm.sh systemctl disable udmboot rm /etc/systemd/system/udmboot.service

None of that i have sudo dpkg-query -l | grep udm show i have package installed and i configured also a podman with adguardhome and its working, so i think maybe things have changed but its working.

mensa84 commented 3 years ago

Is it working on 1.8.6?

ArmandH commented 3 years ago

Upgraded to 1.8.6 my container of adguardhome is gone, when running the boot script i get

./10-dns.sh

grep: /run/dnsmasq.conf.d/custom.conf: No such file or directory adguardhome

re-installed the .deb package in unifi-os shell , exit and re-run the 10-dns.sh and i got back adguardhome container, only cannot access it UPDATE: deleting cni directory and reboot and copying back 20 script solve the problem. All working on 1.8.6 now

mensa84 commented 3 years ago

So the whole package seems to be really not solution, if it fails after every few FW updates :(

vicslive commented 3 years ago

I am trying to find information on how to debug error status=1 as below, I am running 1.8.6 and just installed the udm-boot to run the script for the ea_proxy ATT bypass, but never get the udm-boot to work yet. Please, Any ideas on what to do? root@ubnt:/# systemctl status udm-boot ● udm-boot.service - Run On Startup UDM Loaded: loaded (/lib/systemd/system/udm-boot.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2021-01-28 20:57:52 CST; 5min ago Process: 10536 ExecStart=/sbin/ssh-proxy /mnt/data/on_boot.sh (code=exited, status=1/FAIL URE) Main PID: 10536 (code=exited, status=1/FAILURE)

Jan 28 20:57:52 ubnt systemd[1]: Starting Run On Startup UDM... Jan 28 20:57:52 ubnt ssh-proxy[10536]: [78B blob data] Jan 28 20:57:52 ubnt systemd[1]: udm-boot.service: Main process exited, cod e=exited, status=1/FAILURE Jan 28 20:57:52 ubnt systemd[1]: udm-boot.service: Failed with result 'exit -code'. Jan 28 20:57:52 ubnt systemd[1]: Failed to start Run On Startup UDM.

ArmandH commented 3 years ago

mine is active on 1.8.6 but like i said i had to reinstall the package after upgrade udm-boot.service - Run On Startup UDM Loaded: loaded (/lib/systemd/system/udm-boot.service; enabled; vendor preset: enabled) Active: active (exited) since Thu 2021-01-28 18:58:55 CET; 18h ago Process: 10062 ExecStart=/sbin/ssh-proxy /mnt/data/on_boot.sh (code=exited, status=0/SUCCESS) Main PID: 10062 (code=exited, status=0/SUCCESS)

boostchicken commented 3 years ago

Hey everyone here, please try the 1.0.3 package just released and report b acvk

mensa84 commented 3 years ago

Don't you mean 1.0.4?

boostchicken commented 3 years ago

Yes sorry, 1.0.4 came after this comment

On Fri, Jan 29, 2021, 11:55 PM mensa84 notifications@github.com wrote:

Don't you mean 1.0.4?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/boostchicken/udm-utilities/issues/103#issuecomment-770174161, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADIKH3QLJR2FK66UIL5UL3S4O3NPANCNFSM4WOKR5RQ .

mensa84 commented 3 years ago

For me it worked to install, thx a lot! Is there any example on how to create a cronjob on the UDM-P? Or could you please explain it to me?

ArmandH commented 3 years ago

Works for me thanks for the new update

systemctl status udm-boot ● udm-boot.service - Run On Startup UDM Loaded: loaded (/lib/systemd/system/udm-boot.service; enabled; vendor preset: enabled) Active: active (exited) since Sat 2021-01-30 12:25:12 CET; 1min 40s ago Process: 18024 ExecStart=/sbin/ssh-proxy /mnt/data/on_boot.sh (code=exited, status=0/SUCCESS) Main PID: 18024 (code=exited, status=0/SUCCESS)

Jan 30 12:25:11 ubnt systemd[1]: Starting Run On Startup UDM... Jan 30 12:25:11 ubnt ssh-proxy[18024]: ln: /etc/cni/net.d/20-dns.conflist: File exists Jan 30 12:25:11 ubnt ssh-proxy[18024]: RTNETLINK answers: File exists Jan 30 12:25:11 ubnt ssh-proxy[18024]: RTNETLINK answers: File exists Jan 30 12:25:11 ubnt ssh-proxy[18024]: RTNETLINK answers: File exists Jan 30 12:25:12 ubnt ssh-proxy[18024]: efb582b4c44baf045d428564ad840f61488ac127b79f3a439ef0ea05582f992c Jan 30 12:25:12 ubnt systemd[1]: Started Run On Startup UDM.

heytcass commented 3 years ago

HAve a similar issue. Started on 1.0.4, so @boostchicken comment doesn't seem to fix the issue. When running the boot script at first, I also got the /run/dnsmasq.conf.d/custom.conf: No such file or directory error that @ArmandH got.

Any recommendations? I saw @ArmandH comment about blowing away the cni directory, but don't want to screw up my shiny new UDM I spent all yesterday getting just right.

XxSimpleAceXx commented 3 years ago

Not sure but after reading the comments and reviewing everything I can't get mine to install like the issue above. I am running 1.8.6 and I have the same issue that this ticket was opened for.

When I go to remove the files and do a clean install they are also not found.

Any ideas?

boostchicken commented 3 years ago

@XxSimpleAceXx closing for inactivity, please re-open if you still need help