OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • AdGuard not updating
« previous next »
  • Print
Pages: 1 [2] 3

Author Topic: AdGuard not updating  (Read 3618 times)

svengru

  • Newbie
  • *
  • Posts: 15
  • Karma: 1
    • View Profile
Re: AdGuard not updating
« Reply #15 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.
Logged

Chaosphere64

  • Newbie
  • *
  • Posts: 43
  • Karma: 1
    • View Profile
Re: AdGuard not updating
« Reply #16 on: October 05, 2022, 07:47:57 pm »
Quote from: 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.

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
« Last Edit: October 05, 2022, 07:59:11 pm by Chaosphere64 »
Logged

Vexz

  • Newbie
  • *
  • Posts: 46
  • Karma: 1
    • View Profile
Re: AdGuard not updating
« Reply #17 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.
Logged

NeoDragon

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: AdGuard not updating
« Reply #18 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'

Logged

RamSense

  • Hero Member
  • *****
  • Posts: 518
  • Karma: 9
    • View Profile
Re: AdGuard not updating
« Reply #19 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.

Logged

Koloa

  • Newbie
  • *
  • Posts: 35
  • Karma: 3
    • View Profile
Re: AdGuard not updating
« Reply #20 on: October 05, 2022, 11:19:55 pm »
Quote from: 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'

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!
Logged

NeoDragon

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: AdGuard not updating
« Reply #21 on: October 06, 2022, 12:32:25 am »
Quote from: 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.

You might wanna try using the lan address and see if it works this way.
Logged

Vesalius

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 10
    • View Profile
Re: AdGuard not updating
« Reply #22 on: October 06, 2022, 04:36:29 am »
Quote from: Koloa on October 05, 2022, 11:19:55 pm
Quote from: 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'

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.
Logged

RamSense

  • Hero Member
  • *****
  • Posts: 518
  • Karma: 9
    • View Profile
Re: AdGuard not updating
« Reply #23 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!
« Last Edit: October 06, 2022, 06:39:37 pm by RamSense »
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6481
  • Karma: 449
    • View Profile
Re: AdGuard not updating
« Reply #24 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
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

Vexz

  • Newbie
  • *
  • Posts: 46
  • Karma: 1
    • View Profile
Re: AdGuard not updating
« Reply #25 on: October 06, 2022, 10:26:57 am »
Quote from: 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
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.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6481
  • Karma: 449
    • View Profile
Re: AdGuard not updating
« Reply #26 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
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

Chaosphere64

  • Newbie
  • *
  • Posts: 43
  • Karma: 1
    • View Profile
Re: AdGuard not updating
« Reply #27 on: October 06, 2022, 07:18:38 pm »
Quote from: 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

That worked great, thx a lot!
Logged

abulafia

  • Full Member
  • ***
  • Posts: 122
  • Karma: 4
    • View Profile
Re: AdGuard not updating
« Reply #28 on: October 08, 2022, 11:49:12 am »
Similar issue with the new update to .16 unfortunately...
Logged

RamSense

  • Hero Member
  • *****
  • Posts: 518
  • Karma: 9
    • View Profile
Re: AdGuard not updating
« Reply #29 on: October 08, 2022, 04:10:33 pm »
the same method above worked for updating to .16 also over here. Have you tried that?
Logged

  • Print
Pages: 1 [2] 3
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • AdGuard not updating
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2