gethomepage / homepage

A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations.
https://gethomepage.dev
GNU General Public License v3.0
18.33k stars 1.07k forks source link

[Bug] Adguard HTTP Error 403 calling the stats URL #2548

Closed groenator closed 8 months ago

groenator commented 8 months ago

Description

Since I changed the DNS of my Adguard instance I am getting an HTTP 403 error:

<genericProxyHandler> HTTP Error 403 calling https://adguard253.localdomain/control/stats...

However, when I run curl from inside the container I can open the URL stats without any issues.

Steps to reproduce

  1. Go to portainer instance, open the homepage stack
  2. Follow the container logs output: The logs are showing the 403 error.
  3. Login inside the homepage container and execute the curl command, the command works fine from within the container.
  4. Only the dashboard and the container logs are showing the API error, as showing in screenshot below:

2023-12-31 13 00 37 homepage wonkypaw org d2cf97861c92

homepage version

ghcr.io/gethomepage/homepage:latest

Installation method

Docker

Configuration

- AdGuard:
            href: https://adguard253.localdomain
            description: AdGuard
            icon: adguard-home.png
            widget:
              type: adguard
              url: https://adguard253.localdomain
              username: {{HOMEPAGE_VAR_ADGUARD_USER}}
              password: {{HOMEPAGE_VAR_ADGUARD_PASS}}

Container Logs

[media@minipc02 logs]$ tail -f homepage.log 
[2023-12-31T12:42:53.106Z] debug: No containers were found with homepage labels.
[2023-12-31T12:42:53.338Z] debug: No containers were found with homepage labels.
[2023-12-31T12:42:55.097Z] debug: <genericProxyHandler> HTTP Error 403 calling https://adguard253.localdomain/control/stats...
[2023-12-31T12:42:57.633Z] debug: <qbittorrentProxyHandler> qBittorrent is rejecting the request, logging in.
[2023-12-31T12:43:03.926Z] debug: No containers were found with homepage labels.
[2023-12-31T12:43:03.996Z] debug: <genericProxyHandler> HTTP Error 403 calling https://adguard253.localdomain/control/stats...

### Browser Logs

_No response_

### Troubleshooting

Curl command running inside the container: 
```bash
curl -L -k -u 'user:password' https://adguard253.localdomain/control/stats
{"time_units":"hours","top_queried_domains":[{"cloudflare.com":16436},{"qbittorrent.localdomain":5197},{"sabnzb.localdomain":5196},{"slb9.cfsystems.io":1742},{"registry-1.docker.io":1282},{"mail.proton.me":1185},{"auth.docker.io":1146},{"pass-api.proton.me":782},{"r3.o.lencr.org":709},{"google.com":678},{"cam.ac.uk":552},{"ucsd.edu":552},{"www.berkeley.edu":552},{"osuosl.org":552},{"cixp.web.cern.ch":552},{"www.uea.ac.uk":552},{"web.mit.edu":552},{"www.indiana.edu":552},{"twin-cities.umn.edu":552},{"youtube.com":552},{"www.telefonica.de":552},{"jupiterbroadcasting.com":552},{"linuxserver.io":552},{"facebook.com":552},{"e.reddit.com":547},{"slack.com":439},{"jm-msg-global.aliexpress.com":308},{"log.tailscale.io":291},{"sportscult.org":290},{"update.qnap.com":282},{"clients4.google.com":281},{"ipv6.google.com":277},{"ghcr.io":268},{"bifrost.vivaldi.com":265},{"gql-fed.reddit.com":250},{"www.gamingonlinux.com":246},{"play.googleapis.com":192},{"lscr.io":181},{"watchtower.1password.com":173},{"sonar.localdomain":171},{"graph.facebook.com":166},{"api.gcs.garmin.com":150},{"oauth.reddit.com":149},{"www.inoreader.com":139},{"slb11.cfsystems.io":138},{"android.life360.com":134},{"radar.localdomain":129},{"autobr.localdomain":129},{"lidar.localdomain":127},{"0.pool.ntp.org":124},{"portainer01.localdomain":123},{"2.pool.ntp.org":120},{"connectivitycheck.gstatic.com":119},{"seed.esmein.com":117},{"i.redd.it":114},{"github.com":113},{"3.pool.ntp.org":113},{"1.pool.ntp.org":113},{"android.googleapis.com":112},{"ae01.alicdn.com":110},{"cdn.steamstatic.com":106},{"conncheck.opensuse.org":103},{"emby.localdomain":102},{"b5n.1password.com":100},{"ocsp.digicert.com":96},{"assets.adobedtm.com":87},{"unmanic02.localdomain":86},{"production.cloudflare.docker.com":86},{"unmanic.localdomain":86},{"qnap01.localdomain":85},{"mirrors.rockylinux.org":82},{"slb7.cfsystems.io":82},{"ocsp.pki.goog":81},{"web.whatsapp.com":80},{"0.datadog.pool.ntp.org":78},{"www.americanexpress.com":77},{"2.datadog.pool.ntp.org":75},{"3.datadog.pool.ntp.org":75},{"1.datadog.pool.ntp.org":75},{"preview.redd.it":74},{"chat.signal.org":71},{"styles.redditmedia.com":70},{"www.aexp-static.com":69},{"imap-mail.outlook.com":66},{"index.docker.io":64},{"repo.netdata.cloud":64},{"www.linkedin.com":62},{"initplayback.home":60},{"pkg-containers.githubusercontent.com":60},{"edgeapi.slack.com":60},{"alive.github.com":58},{"external-preview.redd.it":57},{"api.github.com":56},{"pullsg.aliexpress.com":53},{"icm.aexp-static.com":52},{"store.steampowered.com":52},{"www.googleapis.com":51},{"adguard253.localdomain":50},{"functions.aexp.com":49},{"jackett.localdomain":49}],"top_clients":[{"192.168.1.5":40683},{"192.168.1.203":8412},{"192.168.1.81":5188},{"192.168.1.196":5028},{"192.168.1.4":3730},{"192.168.1.135":1882},{"192.168.1.164":1516},{"192.168.1.10":440},{"192.168.1.134":433},{"192.168.1.242":284},{"192.168.1.84":113},{"192.168.1.182":34}],"top_blocked_domains":[{"www.google.com":978},{"app-measurement.com":576},{"videocloud.cn-hangzhou.log.aliyuncs.com":462},{"alb.reddit.com":376},{"logs.netflix.com":359},{"h-adashx4ae.ut.taobao.com":282},{"ae.mmstat.com":234},{"ssl.google-analytics.com":225},{"firebase-settings.crashlytics.com":171},{"vortex.data.microsoft.com":167},{"w3-reporting.reddit.com":141},{"www.google-analytics.com":115},{"adashx4ae.ut.taobao.com":108},{"googleads.g.doubleclick.net":94},{"youtubei.googleapis.com":91},{"androidtvchannels-pa.googleapis.com":86},{"api2.branch.io":63},{"crashlyticsreports-pa.googleapis.com":58},{"www.youtube.com":47},{"remote-data.asnapieu.com":45},{"mobile.pipe.aria.microsoft.com":43},{"androidtvwatsonfe-pa.googleapis.com":43},{"s.youtube.com":43},{"abtest.alibaba.com":40},{"config2.mparticle.com":39},{"fpxhcc-inapps.appsflyersdk.com":38},{"dpm.demdex.net":36},{"device-metrics-us.amazon.com":35},{"sdk.iad-06.braze.com":32},{"nexus.ensighten.com":31},{"mads.amazon-adsystem.com":29},{"cdn.optimizely.com":29},{"config.claspws.tv":29},{"fpxhcc-launches.appsflyersdk.com":28},{"lptag.liveperson.net":28},{"aax-eu.amazon-adsystem.com":27},{"sdk-02.moengage.com":27},{"identity.mparticle.com":24},{"assets.kampyle.com":23},{"browser-intake-us5-datadoghq.com":23},{"airlytics.airlock.twcmobile.weather.com":19},{"cdn.quantummetric.com":17},{"www.googletagmanager.com":17},{"firebaselogging.googleapis.com":17},{"auth.split.io":16},{"siteintercept.qualtrics.com":16},{"fpxhcc-cdn-settings.appsflyersdk.com":16},{"nativesdks.mparticle.com":15},{"api.eu-west-1.aiv-delivery.net":15},{"ip6.seeip.org":15},{"beacons.gvt2.com":14},{"ad-delivery.net":13},{"applog.uc.cn":13},{"beacons.gcp.gvt2.com":13},{"beacons5.gvt3.com":12},{"device-metrics-us-2.amazon.com":12},{"c.amazon-adsystem.com":11},{"widget.fitanalytics.com":11},{"tags.tiqcdn.com":9},{"audid-api.taobao.com":9},{"fourier.taobao.com":9},{"api.mixpanel.com":9},{"launches.appsflyer.com":8},{"telemetry.malwarebytes.com":8},{"dit.whatsapp.net":8},{"woodpecker.uc.cn":8},{"szgi2u-launches.appsflyersdk.com":8},{"w3-reporting-nel.reddit.com":8},{"int.dewrain.life":7},{"gm.mmstat.com":7},{"yderht-inapps.appsflyersdk.com":7},{"wgo.mmstat.com":7},{"fmrqkz-cdn-settings.appsflyersdk.com":7},{"scdn.cxense.com":6},{"stats.wp.com":6},{"sdk.fra-01.braze.eu":6},{"mobiletelemetry.ebay.com":6},{"54b16de4c302.cdn4.forter.com":6},{"stun.cdn-net.com":6},{"uk.at.atwola.com":6},{"gong-eb.qubit.com":5},{"kvinit-prod.api.kochava.com":5},{"szgi2u-cdn-settings.appsflyersdk.com":5},{"fmrqkz-launches.appsflyersdk.com":5},{"api.segment.io":5},{"sessions.bugsnag.com":5},{"sb.scorecardresearch.com":5},{"lookup.qubit.com":5},{"int.vaicore.site":5},{"aax-eu.amazon.co.uk":5},{"yderht-cdn-settings.appsflyersdk.com":5},{"sse.qubit.com":5},{"geolocation.onetrust.com":5},{"incoming.telemetry.mozilla.org":5},{"x8nlxl-inapps.appsflyersdk.com":5},{"adservice.google.com":5},{"aexp.demdex.net":4},{"combine.urbanairship.com":4},{"privacy.easyjet.com":4},{"www.googletagservices.com":4}],"top_upstreams_responses":[{"https://doh.opendns.com:443/dns-query":22629},{"208.67.220.220:53":6}],"top_upstreams_avg_time":[{"208.67.220.220:53":0.05921266666666666},{"https://doh.opendns.com:443/dns-query":0.05410977285783729}],"dns_queries":[3120,3153,3120,2994,2650,2490,3289,3090,2717,2607,3162,4009,3522,2732,2061,2043,2227,2590,3063,2346,3038,2118,5236,366],"blocked_filtering":[330,476,84,49,133,34,272,256,162,192,178,303,238,158,64,30,165,256,567,194,500,151,111,3],"replaced_safebrowsing":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"replaced_parental":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"num_dns_queries":67743,"num_blocked_filtering":4906,"num_replaced_safebrowsing":0,"num_replaced_safesearch":1122,"num_replaced_parental":0,"avg_processing_time":0.017494}
/app # 

Other

No response

Before submitting, I have made sure to

groenator commented 8 months ago

Never mind. it was an issue on my side, I forgot to rename the environment variables inside the docker-compose file. I only renamed them inside portainer.

github-actions[bot] commented 7 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.