hassio-addons / addon-portainer

Portainer - Home Assistant Community Add-ons
https://addons.community
MIT License
95 stars 101 forks source link

Failed loading Endpoint, Unable to connect to the docker endpoint #132

Closed f3bandit closed 2 years ago

f3bandit commented 3 years ago

Problem/Motivation

Failed loading Endpoint, Unable to connect to the docker endpoint

Expected behavior

to work properly and show containbers, images, etc

Actual behavior

error messege and no joy

Steps to reproduce

I did this on a clean install of latest HA from USB SSD as well as from latest HA from MicroSD, nothing else installed. HA first bott setup and installed portainer from the supervisor add-on store

Proposed changes

Honestly no idea!?! short of pulling out the youngling slayer 9000 and hoping for the best.

(If you have a proposed change, workaround or fix, describe the rationale behind it)

frenck commented 3 years ago

Please provide the output of ha info and is there anything in the logs?

thanks 👍

f3bandit commented 3 years ago

Please provide the output of ha info and is there anything in the logs?

thanks 👍 arch: aarch64 channel: stable docker: 20.10.6 features:

  • reboot
  • shutdown
  • services
  • network
  • hostname
  • timedate
  • hassos hassos: "6.2" homeassistant: 2021.8.8 hostname: homeassistant logging: info machine: raspberrypi4-64 operating_system: Home Assistant OS 6.2 state: running supervisor: 2021.06.8 supported: true supported_arch:
  • aarch64
  • armv7
  • armhf timezone: America/New_York
f3bandit commented 3 years ago

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 00-banner.sh: executing...

Add-on: Portainer Manage your Docker environment with ease

Add-on version: 2.0.0 You are running the latest version of this add-on. System: Home Assistant OS 6.2 (aarch64 / raspberrypi4-64) Home Assistant Core: 2021.8.8 Home Assistant Supervisor: 2021.06.8

Please, share the above information when looking for help or support in, e.g., GitHub, forums or the Discord chat.

[cont-init.d] 00-banner.sh: exited 0. [cont-init.d] 01-log-level.sh: executing... [cont-init.d] 01-log-level.sh: exited 0. [cont-init.d] portainer.sh: executing... [cont-init.d] portainer.sh: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. [05:54:32] INFO: Starting Portainer... 2021/08/27 05:54:32 server: Reverse tunnelling enabled 2021/08/27 05:54:32 server: Fingerprint 15:e7:56:a4:9b:62:23:95:6b:83:61:b5:03:b7:95:9b 2021/08/27 05:54:32 server: Listening on 0.0.0.0:8000... 2021/08/27 05:54:32 Starting Portainer 2.6.2 on 0.0.0.0:8099 2021/08/27 05:54:32 [DEBUG] [chisel, monitoring] [check_interval_seconds: 10.000000] [message: starting tunnel management process] 2021/08/27 05:54:32 [DEBUG] [internal,init] [message: start initialization monitor ] 2021/08/27 05:54:33 http error: Invalid JWT token (err=Invalid JWT token) (code=401) 2021/08/27 05:54:33 http error: Invalid JWT token (err=Invalid JWT token) (code=401) 2021/08/27 05:54:33 http error: No administrator account found inside the database (err=Object not found inside the database) (code=404) 2021/08/27 05:54:33 http error: No administrator account found inside the database (err=Object not found inside the database)

f3bandit commented 3 years ago

21-08-27 05:52:49 INFO (MainThread) [supervisor.addons] Creating Home Assistant add-on data folder /data/addons/data/a0d7b954_portainer 21-08-27 05:52:49 INFO (SyncWorker_4) [supervisor.docker.interface] Downloading docker image ghcr.io/hassio-addons/portainer/aarch64 with tag 2.0.0. 21-08-27 05:53:08 INFO (MainThread) [supervisor.addons] Add-on 'a0d7b954_portainer' successfully installed 21-08-27 05:53:23 INFO (MainThread) [supervisor.ingress] Update Ingress as panel for a0d7b954_portainer 21-08-27 05:53:30 INFO (SyncWorker_4) [supervisor.docker.addon] Starting Docker add-on ghcr.io/hassio-addons/portainer/aarch64 with version 2.0.0 21-08-27 05:53:35 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.33.4:8099 ssl:default [Connect call failed ('172.30.33.4', 8099)] 21-08-27 05:53:40 WARNING (MainThread) [supervisor.misc.tasks] Watchdog found a problem with a0d7b954_portainer! 21-08-27 05:53:40 INFO (SyncWorker_0) [supervisor.docker.interface] Cleaning addon_a0d7b954_portainer application 21-08-27 05:53:42 INFO (SyncWorker_0) [supervisor.docker.addon] Starting Docker add-on ghcr.io/hassio-addons/portainer/aarch64 with version 2.0.0 21-08-27 05:53:44 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.33.4:8099 ssl:default [Connect call failed ('172.30.33.4', 8099)] 21-08-27 05:53:46 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.33.4:8099 ssl:default [Connect call failed ('172.30.33.4', 8099)] 21-08-27 05:53:47 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.33.4:8099 ssl:default [Connect call failed ('172.30.33.4', 8099)] 21-08-27 05:54:12 WARNING (MainThread) [supervisor.misc.tasks] Watchdog found a problem with a0d7b954_portainer! 21-08-27 05:54:12 INFO (SyncWorker_5) [supervisor.docker.interface] Cleaning addon_a0d7b954_portainer application 21-08-27 05:54:13 INFO (SyncWorker_5) [supervisor.docker.addon] Starting Docker add-on ghcr.io/hassio-addons/portainer/aarch64 with version 2.0.0 21-08-27 05:54:18 WARNING (MainThread) [supervisor.api.addons] Changing protected flag for a0d7b954_portainer! 21-08-27 05:54:27 INFO (SyncWorker_2) [supervisor.docker.interface] Cleaning addon_a0d7b954_portainer application 21-08-27 05:54:27 WARNING (SyncWorker_2) [supervisor.docker.addon] Portainer running with disabled protected mode! 21-08-27 05:54:28 INFO (SyncWorker_2) [supervisor.docker.addon] Starting Docker add-on ghcr.io/hassio-addons/portainer/aarch64 with version 2.0.0

f3bandit commented 3 years ago

it worked for like 2 seconds and then boogered up again, very weird!?!

nomis52 commented 3 years ago

I've seen the same issue. If I use the version prior to #126 it works correctly.

# ha info
arch: aarch64
channel: stable
docker: 20.10.7
features:
- reboot
- shutdown
- services
- network
- hostname
- timedate
- agent
- haos
hassos: "6.3"
homeassistant: 2021.9.6
hostname: homeassistant
logging: info
machine: raspberrypi4-64
operating_system: Home Assistant OS 6.3
state: running
supervisor: 2021.09.0
supported: true
supported_arch:
- aarch64
- armv7
- armhf

Oddly enough once I removed the old version and tried 2.6.2 again it worked !

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!