OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: opn_nwo on October 04, 2022, 04:16:27 pm

Title: AdGuard not updating
Post by: opn_nwo on October 04, 2022, 04:16:27 pm
I've always been able to upgrade AdGuard from within it's UI. Today there was a new update (v0.107.15), but for some reason it doesn't run. Instead, I get this message "Auto-update failed. Please follow these steps to update manually." redirecting me to https://github.com/AdguardTeam/AdGuardHome/wiki/FAQ#manual-update

Title: Re: AdGuard not updating
Post by: Vesalius on October 04, 2022, 04:28:51 pm
Might be an issue on the adguard update server side. I get the same error for the v0.108.17 that came available today. I would give them a few hours to get things sorted and try again.
Title: Re: AdGuard not updating
Post by: tiermutter on October 04, 2022, 04:44:24 pm
No problems here. Updated from 0.107.09 to 0.107.15 a few minutes ago.
Title: Re: AdGuard not updating
Post by: yeraycito on October 04, 2022, 05:22:35 pm
Solution to Auto-update failed error when trying to install update 0.107.15 on Adguard Home:

1 - In Opnsense stop Adguard Home

2 - Donwload and unzip AdGuardHome_freebsd_amd64.tar.gz ( https://github.com/AdguardTeam/AdGuardHome/releases/tag/v0.107.15 )

3 - Access Opnsense via ssh to /usr/local/AdGuardHome and replace the old files with the new ones respecting the permissions of those files.

4 - In Opnsense launching Adguard Home
Title: Re: AdGuard not updating
Post by: opn_nwo on October 04, 2022, 07:14:53 pm
Thanks for the suggestions. I'll wait a couple of days to see if it's an issue on their end. Then I'll attempt a manual update
Title: Re: AdGuard not updating
Post by: marvine on October 04, 2022, 09:10:50 pm
No problems here just Updated to 0.107.15. ;)
Title: Re: AdGuard not updating
Post by: Inxsible on October 05, 2022, 05:16:50 am
please delete... posted in wrong thread by mistake.
Title: Re: AdGuard not updating
Post by: mimugmail on October 05, 2022, 07:14:33 am
I'm on the beta channel and on both systems it ran fine.
On one I had to refresh the page during update.
Title: Re: AdGuard not updating
Post by: ChrisChros on October 05, 2022, 08:17:55 am
same problem here. After clicking on the update button I directly receive the same message that the update-process failed.
Title: Re: AdGuard not updating
Post by: Vexz on October 05, 2022, 10:32:36 am
Had the same issue with AGH from the community repo. I ended up reinstalling AGH and then the update worked fine.
Title: Re: AdGuard not updating
Post by: athurdent on October 05, 2022, 10:36:55 am
Same on Ubuntu here, maybe not really an OPNsense/FreeBSD issue.
Title: Re: AdGuard not updating
Post by: Blackdragonx21 on October 05, 2022, 10:54:31 am
Had the same issue with AGH from the community repo. I ended up reinstalling AGH and then the update worked fine.
Did the config (Blocklist etc.) lost after reinstall?
Title: Re: AdGuard not updating
Post by: RickNY on October 05, 2022, 12:45:59 pm

I'm apparently on the beta channel running AdGuard Home v0.108.0-b.17 and it fails when I update from the UI to AdGuard Home v0.108.0-b.18..  I'll give it a few days, the updates from the UI had been working fine for months.
Title: Re: AdGuard not updating
Post by: Patrick M. Hausen on October 05, 2022, 01:06:02 pm
I downloaded and extracted the FreeBSD release from here:
https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.107.15/AdGuardHome_freebsd_amd64.tar.gz

Then copied the AdGuardHome binary to /usr/local/AdGuardHome/AdGuardHome, then rebooted just to make sure.

Working as it should.
Title: Re: AdGuard not updating
Post by: Vexz on October 05, 2022, 01:08:55 pm
Had the same issue with AGH from the community repo. I ended up reinstalling AGH and then the update worked fine.
Did the config (Blocklist etc.) lost after reinstall?
Sadly the answer is yes. The better way to do it is as yeraycito described it above.
Title: Re: AdGuard not updating
Post by: svengru on October 05, 2022, 06:03:49 pm
Looks like the bug was introduced in the previous version and this is not a server-side issue:
https://github.com/AdguardTeam/AdGuardHome/discussions/4989#discussioncomment-3798085

Did the manual update yesterday without any issue.
Title: Re: AdGuard not updating
Post by: Chaosphere64 on October 05, 2022, 07:47:57 pm
I'm on the beta channel and on both systems it ran fine.
On one I had to refresh the page during update.

I used your repo to add AGH to my OPNsense (thanks for that btw!) and have 0.107.9 installed currently, but instead of version 0.107.15 I get offered 0.108.17 as an update. So I would switch to the beta branch I guess. How can I change back to stable branch for updates?

BR
Title: Re: AdGuard not updating
Post by: Vexz on October 05, 2022, 08:53:01 pm
Hm, maybe overwrite the files of your currently running AGH with the ones from the latest stable version. But stop the service first and respect the file permissions. I'm running on the latest stable version and can't find an update. This means AGH doesn't offer me a beta version but instead searches for a newer version that doesn't exist yet. Could be that it is a bug on the old version you're running but that's just a wild guess.
Title: Re: AdGuard not updating
Post by: NeoDragon on October 05, 2022, 09:20:34 pm
Solution picked from Adguard bug thread:


- SSH in your opnsense box
- Send this command, change USERNAME:PASSWORD to your Login/Pass of Adguard
- Specify port if you changed the default
 
Code: [Select]
curl -H 'Content-Type: application/json' -X POST -v 'http://USERNAME:PASSWORD@127.0.0.1/control/update'
If you are running adguard on SSL connection :

Code: [Select]
curl --insecure -H 'Content-Type: application/json' -X POST -v 'https://USERNAME:PASSWORD@127.0.0.1:443/control/update'

Title: Re: AdGuard not updating
Post by: RamSense on October 05, 2022, 09:59:32 pm
Thanks for sharing!
I tried https version, but i got this error:
* Closing connection -1
curl: (3) URL using bad/illegal format or missing URL
I tried plain http:
Ambiguous output redirect.

Title: Re: AdGuard not updating
Post by: Koloa on October 05, 2022, 11:19:55 pm
Solution picked from Adguard bug thread:


- SSH in your opnsense box
- Send this command, change USERNAME:PASSWORD to your Login/Pass of Adguard
- Specify port if you changed the default
 
Code: [Select]
curl -H 'Content-Type: application/json' -X POST -v 'http://USERNAME:PASSWORD@127.0.0.1/control/update'

Can confirm this worked - but, in my case, I had to use the IP address of my AGH box on my LAN, localhost didn't work.

Updated to .b17 successfully, no apparent loss of data.  Thank you!
Title: Re: AdGuard not updating
Post by: NeoDragon on October 06, 2022, 12:32:25 am
Thanks for sharing!
I tried https version, but i got this error:
* Closing connection -1
curl: (3) URL using bad/illegal format or missing URL
I tried plain http:
Ambiguous output redirect.

You might wanna try using the lan address and see if it works this way.
Title: Re: AdGuard not updating
Post by: Vesalius on October 06, 2022, 04:36:29 am
Solution picked from Adguard bug thread:


- SSH in your opnsense box
- Send this command, change USERNAME:PASSWORD to your Login/Pass of Adguard
- Specify port if you changed the default
 
Code: [Select]
curl -H 'Content-Type: application/json' -X POST -v 'http://USERNAME:PASSWORD@127.0.0.1/control/update'

Can confirm this worked - but, in my case, I had to use the IP address of my AGH box on my LAN, localhost didn't work.

Updated to .b17 successfully, no apparent loss of data.  Thank you!
Same here, but had to add the IP address and port for it to work for me. Thanks, that was much easier than I expected.
Title: Re: AdGuard not updating
Post by: RamSense on October 06, 2022, 07:25:51 am
Must be something easy to miss. Ip of the Adguard/opnsene box also did not work over here:
(both http and https have different port and used that port)
* Closing connection -1
curl: (3) URL using bad/illegal format or missing URL

ah just saw this post: I was also having the same issue with the auto update failing. I tried the curl command and my password (containing special characters) was also failing.

The supposed sollution there got me a bit further, but still not successful

/update request isn't allowed now
* Connection #0 to host 192.168.1.1 left intact

**Solved it
I was also logged in into adguard webpage while trying to use the command above to update. This did not work. While not being logged in and trying the command, it updated!
Title: Re: AdGuard not updating
Post by: mimugmail on October 06, 2022, 09:24:36 am
I updated the repo to include 0.107.15 ... you need to stop / start agh after update manually
Title: Re: AdGuard not updating
Post by: Vexz on October 06, 2022, 10:26:57 am
I updated the repo to include 0.107.15 ... you need to stop / start agh after update manually
Awesome! The AGH devs said they fixed the update problem in v0.107.15 so we should be good for now until we will face a different update problem anytime in the future.  ;D
Just out of curiosity: Why did you choose the stable version instead of beta? In the past the repo came with the beta version of AGH.
Do you recommend locking the package because an update of the package in the future might downgrade a newer currently running version?

FYI: The plugin details of AGH (System > Firmware > Plugins) doesn't mention v.1.8 yet. Maybe you wanna update those.
Title: Re: AdGuard not updating
Post by: mimugmail on October 06, 2022, 01:12:00 pm
Honestly I have no idea why its beta. I thought I replaced it ages ago. Lets stick to stable
Title: Re: AdGuard not updating
Post by: Chaosphere64 on October 06, 2022, 07:18:38 pm
I updated the repo to include 0.107.15 ... you need to stop / start agh after update manually

That worked great, thx a lot!
Title: Re: AdGuard not updating
Post by: abulafia on October 08, 2022, 11:49:12 am
Similar issue with the new update to .16 unfortunately...
Title: Re: AdGuard not updating
Post by: RamSense on October 08, 2022, 04:10:33 pm
the same method above worked for updating to .16 also over here. Have you tried that?
Title: Re: AdGuard not updating
Post by: yeraycito on October 08, 2022, 06:24:02 pm
Update versión 0.107.15 to 0.107.16  ........Perfect
Title: Re: AdGuard not updating
Post by: Chaosphere64 on October 08, 2022, 08:00:22 pm
Update versión 0.107.15 to 0.107.16  ........Perfect
+1 (after repo update mentioned by mimugmail previously)
Title: Re: AdGuard not updating
Post by: abulafia on October 08, 2022, 10:52:29 pm
...you need to stop / start agh after update manually
This fixed my issue with the update from .15 to .16 - I had updated the plug-in but not restarted AGH.