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

AGH Service fails to install on OpenWrt #4677

Closed
mercyground opened this issue Jun 18, 2022 · 4 comments
Closed

AGH Service fails to install on OpenWrt #4677

mercyground opened this issue Jun 18, 2022 · 4 comments
Assignees
Milestone

Comments

@mercyground
Copy link

mercyground commented Jun 18, 2022

Prerequisites

  • [x ] I am running the latest version
  • [ x] I checked the documentation and found no answer
  • [ x] I checked to make sure that this issue has not already been filed

Issue Details

FYI i'm reporting this on behalf of others as my existing install is fine. However, it appears since #4480 was fixed and patched in. OpenWrt installs fail to install AGH service as OpenWrt does not use systemd's update-rc. OpenWrt uses libubox+ubus+procd.

https://forum.openwrt.org/t/how-to-updated-2021-installing-adguardhome-on-openwrt-manual-and-opkg-method/113904/257

starting AdGuard Home installation script
2022/06/16 11:43:34 [info] service: control action: install
6/16/2022 11:43:34 [fatal] service: executing action "install": Failed to install AdGuard Home service: command "update-rc.d" failed: exec: "update-rc.d": executable file not found in $PATH:
cannot install AdGuardHome as a service

Attempting this manually from the fix thread :

root@OpenWrt:~# sudo update-rc.d AdGuardHome defaults
sudo: update-rc.d: command not found

Is it possible to either check on if AGH installs correctly as a service and if the systemd method fails then you fall back to init.d method? Or even check the distribution and thus pick either systemd or init.d?

Expected Behavior

Using the install script should install AGH and activate the service.

Actual Behavior

Install script executes but fails to install as OpenWrt does not have systemds update-rc.d

@mercyground mercyground changed the title AGH Service fails to install OpenWrt AGH Service fails to install on OpenWrt Jun 18, 2022
@ainar-g ainar-g added this to the v0.107.8 milestone Jun 20, 2022
adguard pushed a commit that referenced this issue Jun 20, 2022
Merge in DNS/adguard-home from 4677-openwrt-service to master

Updates #4677.

Squashed commit of the following:

commit 6aed403
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date:   Mon Jun 20 14:49:33 2022 +0300

    home: imp docs

commit 54e32fa
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date:   Mon Jun 20 14:30:08 2022 +0300

    home: fix wrt svc
@EugeneOne1
Copy link
Member

@mercyground, we've just pushed the newest edge build. It now should be able to successfully install itself as a service on OpenWrt. Could you please check if it works?

@mercyground
Copy link
Author

Will do. I reported back to the forum and i'll go find a spare Sdcard to try a new build and let you guys know. tyvm for the quick fix! Thread is here btw. https://forum.openwrt.org/t/how-to-updated-2021-installing-adguardhome-on-openwrt-manual-and-opkg-method/113904/265

@mercyground
Copy link
Author

Confirmed. Clean install on the new OpenWrt 22.03.0-rc4 on a NanoPi R4S router. Thank you!

starting AdGuard Home installation script
2022/06/20 16:55:55 [info] service: control action: install
2022/06/20 16:55:57 [info] service: started
2022/06/20 16:55:57 [info] Almost ready!
AdGuard Home is successfully installed and will automatically start on boot.
There are a few more things that must be configured before you can use it.
Click on the link below and follow the Installation Wizard steps to finish setup.
AdGuard Home is now available at the following addresses:

@EugeneOne1
Copy link
Member

@mercyground, thanks for contributing your time.

adguard pushed a commit that referenced this issue Jul 13, 2022
Merge in DNS/adguard-home from 4677-openwrt-service to master

Updates #4677.

Squashed commit of the following:

commit 6aed403
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date:   Mon Jun 20 14:49:33 2022 +0300

    home: imp docs

commit 54e32fa
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date:   Mon Jun 20 14:30:08 2022 +0300

    home: fix wrt svc
heyxkhoa pushed a commit to heyxkhoa/AdGuardHome that referenced this issue Mar 20, 2023
Merge in DNS/adguard-home from 4677-openwrt-service to master

Updates AdguardTeam#4677.

Squashed commit of the following:

commit 6aed403
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date:   Mon Jun 20 14:49:33 2022 +0300

    home: imp docs

commit 54e32fa
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date:   Mon Jun 20 14:30:08 2022 +0300

    home: fix wrt svc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants