AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

V0.107.62 update failed

Open chris-1243 opened this issue 6 months ago • 3 comments

Prerequisites

Platform (OS and CPU architecture)

Linux, AMD64 (aka x86_64)

Installation

Docker

Setup

On one machine

AdGuard Home version

V0.107.62

Action

I updated from V0.107.61 to V0.107.62 via docker pull command. Usually, it works perfectly fine but not this time

adguardhome  | 2025/05/31 23:02:55.989284 [info] AdGuard Home, version v0.107.62
adguardhome  | 2025/05/31 23:02:56.009015 [info] tls_manager: using default ciphers
adguardhome  | 2025/05/31 23:02:56.023864 [info] Initializing auth module: /opt/adguardhome/work/data/sessions.db
adguardhome  | 2025/05/31 23:02:56.024232 [info] auth: initialized.  users:1  sessions:0
adguardhome  | 2025/05/31 23:02:56.024337 [info] webapi: initializing
adguardhome  | 2025/05/31 23:02:56.194808 [error] closing query log: flushing log buffer: nothing to write to a file
adguardhome  | 2025/05/31 23:02:56.194847 [fatal] newServerConfig: constructing tls config: parsing tls key pair: tls: failed to find any PEM data in certificate input
adguardhome exited with code 0

Below, my tls section

tls:
  enabled: true
  server_name: ""
  force_https: false
  port_https: 443
  port_dns_over_tls: 853
  port_dns_over_quic: 853
  port_dnscrypt: 14443
  dnscrypt_config_file: /opt/adguardhome/conf/dnscrypt.yaml
  allow_unencrypted_doh: false
  certificate_chain: ""
  private_key: ""
  certificate_path: ""
  private_key_path: ""
  strict_sni_check: false

I do not use DoH, only DNSCrypt. According to the documentation, there is nothing more to add. https://github.com/AdguardTeam/Adguardhome/wiki/DNSCrypt

Expected result

V0.107.62 to work like previous working version

Actual result

No errors at start-up

Additional information and/or screenshots

This issue looks very similar to https://github.com/AdguardTeam/AdGuardHome/issues/7773

As a work around, I have set

allow_unencrypted_doh: true

V0.107.62 is now starting correctly. What bother me, I do not use DoH and this setting was not used previously.

chris-1243 avatar May 31 '25 21:05 chris-1243

Thanks I agree that's a duplicate of https://github.com/AdguardTeam/AdGuardHome/issues/7773

tjharman avatar May 31 '25 21:05 tjharman

Apologies, I see that issue is closed and you've been asked to open a new ticket.

tjharman avatar May 31 '25 21:05 tjharman

No worries.

It looks slightly different as I do not use DoH at all, only DNSCrypt

chris-1243 avatar May 31 '25 21:05 chris-1243

Yesterday, on 23 Jun I also faced the same issue on V0.107.62. After I updated the version from V0.107.61 Its worked fine for 2-3 days. Suddenly it stopped working showing "Update checked failed, Please check your internet connection" Only WhatsApp is working for sending messages. I checked My internet is working fine. It is installed on raspberry pi 3B+, internet is working fine on raspberry pi as i was able ping and update, only the issue is with adguard. If there is an easy fix I would really like to know.

NikhilMunda avatar Jun 22 '25 07:06 NikhilMunda

This happened to me after updating my Proxmox LXC adguard container, which has been working fine for almost 7 months. I got the same error message after updating to .72, and switching that flag to true is working again.

I've never touched the config manually before, only editing settings through the UI.

My config, after manually turning allow_unencrypted_doh to true, no other changes:

tls:
  enabled: true
  server_name: adguard.<mydomain>
  force_https: false
  port_https: 443
  port_dns_over_tls: 853
  port_dns_over_quic: 853
  port_dnscrypt: 0
  dnscrypt_config_file: ""
  allow_unencrypted_doh: true
  certificate_chain: ""
  private_key: ""
  certificate_path: ""
  private_key_path: ""
  strict_sni_check: false

mix3d avatar Jun 22 '25 17:06 mix3d

It didn't work, then i tried v0.108.0-b.71 and still the same issue. Downgrading to v0.107.61 is also not working.

NikhilMunda avatar Jun 22 '25 18:06 NikhilMunda

At last I was exhausted and not able to find the right solution. All New versions AFTER V0.107.61 is not working as well as beta versions. Only shows, "Update checked failed, Please check your internet connection". I tried uninstalling and installing V0.107.61 then the page won't open up its just say refuse to connect. At last, after trying everything within my knowledge, nothing seems to be working. Then I uninstall the Adguard then installed docker and install the Adguard V0.107.61 container in it. Now everything is working smoothly. I adore Adguard very much but I guess I will have to wait till Adguard have its stable release 😁

NikhilMunda avatar Jun 23 '25 10:06 NikhilMunda

@schzhn, the TLS configuration logic should be modified to check the DSNCrypt configuration as well before reading the certificate for the main protocols.

ainar-g avatar Jun 24 '25 15:06 ainar-g

Fixed in the edge release (binary for your platform).

schzhn avatar Jul 01 '25 13:07 schzhn

@schzhn

Thanks for the fix. I just tried latest edge version and everything is running as expected

No need anymore to set

allow_unencrypted_doh: true

when using DNSCrypt only

chris-1243 avatar Jul 01 '25 17:07 chris-1243