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

Auto-update Fix - v0.107.15 #4987

Closed
privacy-advo opened this issue Oct 3, 2022 · 24 comments
Closed

Auto-update Fix - v0.107.15 #4987

privacy-advo opened this issue Oct 3, 2022 · 24 comments
Labels
duplicate Duplicate or merged issues.

Comments

@privacy-advo
Copy link

privacy-advo commented Oct 3, 2022

(Update by @ainar-g for those encountering this issue.)

A workaround to update v0.107.14 to v0.107.15 without a manual update is to use the command:

curl -H 'Content-Type: application/json' -X POST -v 'http://LOGIN:PASSWORD@127.0.0.1/control/update'

where LOGIN and PASSWORD are your web interface login data and 127.0.0.1 is the address of AdGuard Home's web UI.

See #4989.


Installation

GitHub releases or script from README

AdGuard Home version

v0.107.14

Description

What did you do?

Auto-update

Expected result

Updated version

Actual result

"Auto-update failed. Please follow these steps to update manually."

Additional information

3 machines:
Raspberry Pi 3B+ (AGH: arm64)
2x Ubuntu 20.04.5 LTS (AGH: linux_amd64)

More people experiencing this?

@Harvester57
Copy link

Had the same error, followed the guide to update manually and it worked fine.

@TheCeet
Copy link

TheCeet commented Oct 3, 2022

Same here

@muchqs
Copy link

muchqs commented Oct 3, 2022

yes auto update failed. first time seeing it.

@ppfeufer
Copy link

ppfeufer commented Oct 3, 2022

It fails because of the bug (#4970) it's fixing.

@sausje

This comment was marked as off-topic.

@ppfeufer

This comment was marked as off-topic.

@sausje

This comment was marked as off-topic.

@privacy-advo

This comment was marked as off-topic.

@ppfeufer

This comment was marked as off-topic.

@sausje

This comment was marked as off-topic.

@ppfeufer

This comment was marked as off-topic.

@sausje

This comment was marked as off-topic.

@privacy-advo
Copy link
Author

privacy-advo commented Oct 3, 2022

Oh boi.
@ainar-g

@ainar-g
Copy link
Contributor

ainar-g commented Oct 4, 2022

@sausje, please refrain from using inflammatory language like that, especially if it's off-topic to the issue at hand. You can request documentation improvements by opening new issues instead.

@ainar-g ainar-g added the duplicate Duplicate or merged issues. label Oct 4, 2022
@sausje

This comment was marked as off-topic.

@muchqs
Copy link

muchqs commented Oct 4, 2022

@ainar-g How do I use the command if my pwd contains the symbol @. I tried ' and " with the pwd but couldn't get it to work. Do I have to change it first? thanks.

@Jefffish09
Copy link

Hi @privacy-advo , I meet same error on openwrt. Is there only one way (manual update) to solve this problem? Can I wait for the next version to auto-update? I am a newer to Linux.

@ppfeufer
Copy link

ppfeufer commented Oct 4, 2022

@ainar-g How do I use the command if my pwd contains the symbol @. I tried ' and " with the pwd but couldn't get it to work. Do I have to change it first? thanks.

You can try \@ or \\@

Bottom line, you have to escape the @ in your PW, and I can never remember how many \ that needs in an URL string or if that is even possible.

Another try would be something like this:

MY_PASSWORD="your_pw_here" curl -H 'Content-Type: application/json' -X POST -v 'http://LOGIN:${MY_PASSWORD}@127.0.0.1/control/update'

Pretty much stuffing your password into a variable (MY_PASSWORD) and using the variable in the command.

@Jefffish09
Copy link

Hi @privacy-advo , I meet same error on openwrt. Is there only one way (manual update) to solve this problem? Can I wait for the next version to auto-update? I am a newer to Linux.

@privacy-advo I have seen your solution in latest update, thanks!

@muchqs
Copy link

muchqs commented Oct 5, 2022

@ainar-g How do I use the command if my pwd contains the symbol @. I tried ' and " with the pwd but couldn't get it to work. Do I have to change it first? thanks.

You can try \@ or \\@

Bottom line, you have to escape the @ in your PW, and I can never remember how many \ that needs in an URL string or if that is even possible.

Another try would be something like this:

MY_PASSWORD="your_pw_here" curl -H 'Content-Type: application/json' -X POST -v 'http://LOGIN:${MY_PASSWORD}@127.0.0.1/control/update'

Pretty much stuffing your password into a variable (MY_PASSWORD) and using the variable in the command.

Thank you

@speedingcheetah
Copy link

The Curl command not working for me.

  • Trying 127.0.0.1:80...
  • connect to 127.0.0.1 port 80 failed: Connection refused
  • Failed to connect to 127.0.0.1 port 80: Connection refused
  • Closing connection 0
    curl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused

@speedingcheetah
Copy link

Could not get curl command to work for me. Maybe cause password is complex with special characters (as it should be). I tried the manual method officially posted and that new AGH executable failed to start. I noticed a agh-backup folder and instead replaced the 0.107.14 executable with the backup (that was 0.107.13) and that started up fine, and its auto update worked fine to get to 0.107.15.

@fonic
Copy link

fonic commented Oct 8, 2022

Could not get curl command to work for me. Maybe cause password is complex with special characters (as it should be).

If the password is (too) complex, this command will do the trick:
curl -H 'Content-Type: application/json' -X POST -v -u USER 'http://HOST:PORT/control/update

Replace USER, HOST and PORT to match your setup. curl will ask for the password interactively.

It is also worth mentioning that the command can be run remotely, it is not restricted to the actual machine running AdGuard Home.

@cqjerry
Copy link

cqjerry commented Oct 9, 2022

image

I get this error message,how can i do fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate or merged issues.
Projects
None yet
Development

No branches or pull requests