-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
onboot service not persistent across newer firmware upgrades #71
Comments
I'm seeing this as well. |
Also seeing this on my UDMB, after upgrade from 1.8.2-8 > 1.8.3-2 and again on upgrade from 1.8.3-2 > 1.8.3-3. |
Oddly enough, I just installed the 6.0.3.7 Controller release and after a reboot, multicast-relay started automatically. Every reboot since the 1.8.3-2 upgrade, I had to start that manually. No idea why on-boot unbroke, but can't complain. |
I just saw this upgrading to 1.8.3-4. |
upgrading to 1.8.3-4 same Problem had to start manuel |
I noticed that onboot.d failed during the first boot after an update. subsequent reboots will trigger the onboot.d scripts |
Same here. It always seems to fail on the first boot after an upgrade, but works after that. Other user added systemd units seem to run fine. |
Same here. Always have to do a manual reboot after the upgrade, then the podman containers can start correctly |
@mlankamp you can also always restart the service using |
Confirmed that another reboot works here too. |
I observed that behavior only with the 1.0.2 udm-boot package. The 1.0.1 works fine - I got two routers and I was surprised to have to reboot the second one to fix the upgrade. I suspect the postinst changes are the culprit (original commit between 1.0.1 and 1.0.2 was 282b9bd#diff-60f00db60b712271f12f9fbaadee09d956229745493e2f812a701c28386cf54e, if I am not mistaken). |
I just upgraded to 1.8.3 official with 6.0.41 controller, and can confirm the same behavior. Doesn't start automatically on the first boot after an upgrade, but does on following restarts. |
Just to confirm this, I downgraded to the 1.0.1 version of the package. Worked perfectly on the latest UDM update - no need to manually reboot which is great news - thanks @ravens for the tip. |
Failed to restart for me too; I found this in
|
Can someone sum up the current state here for me? From what I see
|
I think the change @ravens id'ed above looks relevant that |
1.0.1 works without any issues, even across firmware upgrades |
@spali can you investigate why your 1.0.2 behaves so differently. Its much more complex than mine but hits all the same bases If we can't then we have to rollback to 1.0.1 |
Man, that has to be it right? There is so little that really changed, just the more "debian" way of doing it. Maybe my simpleton way cut through some garbage, i'll see what @spali says and we go from there |
Just went to 1.8.4 final with 1.0.1 with no issues |
@boostchicken btw this was the link I found when I looked at the problem; https://jpetazzo.github.io/2013/10/06/policy-rc-d-do-not-start-services-automatically/ |
To be honest, I have no idea why it behaves so differently. But I'm fine with rollback the calls to direct systemd calls. Maybe this is the same problem I observe with #46. Which basically uses the same calls. Bit of theory: I'm not a debian packages specialist, but during my research on this calls... I did understand, that the deb calls should just postpone the calls to be called after all packages are installed, to have a more control over them if you install more complex stuff. So as long we do not interfere much with other services I think it would be save to revert this calls. |
Hi, yesterday I updated from 1.8.3 to 1.8.4 firmware on the UDM Pro. I had onBoot 1.0.2 installed and everything worked like a charm... even after the upgrade, the onBoot works without doing something. I didn't had to do additional boots. So, no issues with 1.0.2 and 1.8.4. Cheers |
Upgrading from 1.8.0 to 1.8.4 I can confirm that I had to reboot a second time to get the container and service running again. Cheers, |
Is there a new udm-boot package with the potential fix, or do I need to build my own? Happy to install and see how it goes -- I've had no on-boot scripts run the past two automatic upgrades. (upgraded to 1.8.4 automatically last night, no on-boot) |
Not yet, I assume John will merge the fix and build it soon. If you want you can for sure build it by yourself based on the PR. |
I suggest we provide explicit instructions for how to update the deb when a release is cut. |
@JKomoroski |
FYI - I exhibit this behaviour too. |
In my case and I tink in any case of this issue, usually |
@spali, I used your v1.1.0 package (udm-boot) and installed two piHole containers and a ntopng container on UDM-base v1.8.5. I'll report back when I update to the next beta/alpha firmware on the UDM to confirm it survived the upgrade. As of now, it's surviving UDM reboots, so I'm optimistic it'll work. Here's the instructions for anyone that wants to run the same test with NTOPNG-UDM. It avoids some of the more complicated networking setup involved with the piHole. Feel free to correct/comment on any of this, I'm a GitHub and Linux noob, so I'm sure there's probably room for improvement :). Step 1: Install the udm-utilities package...SSH into the UDM:unifi-os shell In the UniFi-OS shell, download the package, install it, and go back to the UDM
Step 2: Install ntopng-udm containerCreate persistent folders and files for ntopng-udm
Edit the file at /mnt/data/udm-boot/data/ntopng/ntopng.conf to determine which interfaces NTOP will analyze.Enter udm-boot bash shell:
Use podman to create container
Configure systemd to load containers at startup
|
I did a manual build for the Debian package, installed that and then did the |
Closing as this is now fixed with a new release! |
Describe the bug
After upgrade from 1.8.0 to 1.8.2-10 (and also from 1.8.2-10 to 1.8.3-2) the onboot service was wiped and not reloaded
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Onboot scripts are reinstalled from dpkg cache
UDM Information
Additional context
There very well may be nothing that could be done and it might just be a difference on how the firmware upgrades are installed/handled now by the UDM. I just wanted to log it so if nothing can be done, documentation can be updated to reflect that it's no longer persistent.
The text was updated successfully, but these errors were encountered: