-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Updater expects AdGuard Home to be located in the working directory and with a hardcoded name #4219
Comments
Hello and thank you for the report! I've split the feature request part into a separate issue. The current behaviour where AdGuard Home assumes that the name of its binary could probably be changed, but it needs to be done carefully. |
@ferferga please check the new build |
We'll close this issue for now. Please feel free to report any new issues. |
Hello again! This issue has not been fully resolved in v0.107.8 (as I saw that the fix has been backported to this version). I tried updating to v0.107.9 using the autoupdater, but it still fails. Logs show the following output:
The executable now recognises its name properly, but I guess it's trying to find himself in the working or config directory instead? (that's why it cant't find the file) Refer to the original post to review the structure of the AdGuard installation in my system. |
@ferferga hello again, please have an other look on just published edge build |
Once again, feel free to reopen if this is still an issue. |
Prerequisites
Issue Details
Further details about my installation
Although AdGuard is a portable single binary file, I wanted to have it installed in my Pi in a way that complies the most with the FHS standard. So I placed the binary under
/usr/bin/adguard
, the config file under/etc/adguard/AdGuardHome.yml
and the data in/var/lib/adguard
. To run it as a service, I created a systemd configuration file:Expected Behavior
When an update happens (such as my case, where I'm running v0.107.2 and v0.107.3 is released):
The whole process should work in the same way as rclone selfupdate, which knows where the binary is located (independently from the working dir) and that it's own name is
rclone
.Actual Behavior
Update fails and verbose logging and query response for the
/update
endpoint states:Additional context
In reality, this is a feature request
The binary should also have an argument that performs the self upgrade, so the upgrade process can also be performed automatically through bash and independently from web, without curl trickeries.
The text was updated successfully, but these errors were encountered: