Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost connection to the socket server. Reconnecting... #485

Open
2 tasks done
truthsword opened this issue Apr 10, 2024 · 9 comments
Open
2 tasks done

Lost connection to the socket server. Reconnecting... #485

truthsword opened this issue Apr 10, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@truthsword
Copy link

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

After logging out from the Dockge UI in my browser, I typically move on to another site in that same tab. When I do, I get thus nuisance pop-up:

Since I've logged out this is of no concern.

Notable, if I close the Dockge browser tab after logging out, there is no notification.

👟 Reproduction steps

  • Open Dockge login UI in browser tab.
  • Log out from Dockge
  • Enter new destination URL in the same browser tab (now showing the Dockge login screen)
  • Pop-up notification appears

👀 Expected behavior

  • Open Dockge login UI in browser tab.
  • Log out from Dockge
  • Enter new destination URL in the same browser tab (now showing the Dockge login screen)
  • No pop-up notification appears. Browser quietly loads new site.

😓 Actual Behavior

  • Open Dockge login UI in browser tab.
  • Log out from Dockge
  • Enter new destination URL in the same browser tab (now showing the Dockge login screen)
  • Pop-up notification appears

Dockge Version

1.4.2

💻 Operating System and Arch

Win10 x64

🌐 Browser

LibreWolf 124.0.1-1

🐋 Docker Version

Docker 26.0.0

🟩 NodeJS Version

No response

📝 Relevant log output

No response

@truthsword truthsword added the bug Something isn't working label Apr 10, 2024
@kdpuvvadi
Copy link

kdpuvvadi commented Apr 11, 2024

Same here,

Here's log from console

2024-04-11T11:27:03Z [SERVER] INFO: Socket connected (direct)
2024-04-11T11:27:03Z [AUTH] INFO: Login by token. IP=172.18.0.5
2024-04-11T11:27:03Z [AUTH] INFO: Username from JWT: kdpuvvadi
2024-04-11T11:27:03Z [AUTH] INFO: Successfully logged in user kdpuvvadi. IP=172.18.0.5
2024-04-11T11:27:03Z [AGENT-MANAGER] INFO: Connecting to all instance socket server(s)...
2024-04-11T11:27:03Z [AGENT-MANAGER] INFO: Connecting to the socket server: 10.20.20.138:5001
2024-04-11T11:27:03Z [AGENT-MANAGER] INFO: Connected to the socket server: 10.20.20.138:5001
2024-04-11T11:27:03Z [AGENT-MANAGER] INFO: Logged in to the socket server: 10.20.20.138:5001
2024-04-11T11:27:05Z [SERVER] INFO: Socket disconnected!
2024-04-11T11:27:05Z [AGENT-MANAGER] INFO: Disconnected from the socket server: 10.20.20.138:5001
2024-04-11T11:27:06Z [SERVER] INFO: Socket disconnected!
2024-04-11T11:27:06Z [AGENT-MANAGER] INFO: Disconnected from the socket server: 10.20.20.138:5001
2024-04-11T11:27:07Z [AUTH] INFO: Origin is not set, IP: ::ffff:172.18.0.5

Here's message from dom

Connected to the socket server
Logging in by token
{
    "ok": true,
    "agentList": {
        "": {
            "url": "",
            "username": "",
            "endpoint": ""
        },
        "10.20.20.138:5001": {
            "url": "http://10.20.20.138:5001/",
            "username": "kdpuvvadi",
            "endpoint": "10.20.20.138:5001"
        }
    }
}

@kdpuvvadi
Copy link

Deleted everything in the data directory including data/db-config.json and sqlite db file.

It worked for 2 minutes and then same error.

my compose looks like this

---

services:
  dockge:
    container_name: dockge
    image: louislam/dockge:1
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /home/kd/compose/dockge/data:/app/data
      - /home/kd/compose:/home/kd/compose
    environment:
      - DOCKGE_STACKS_DIR=/home/kd/compose
    networks:
      - proxy
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=proxy"
      - "traefik.http.routers.dockge.entrypoints=https"
      - "traefik.http.routers.dockge.rule=Host(`dockge.local.puvvadi.net`)"
      - "traefik.http.routers.dockge.middlewares=default-headers@file, https-redirectscheme@file"
      - "traefik.http.routers.dockge.tls=true"
      - "traefik.http.routers.dockge.service=dockge"
      - "traefik.http.services.dockge.loadbalancer.server.scheme=http"
      - "traefik.http.services.dockge.loadbalancer.server.port=5001"

networks:
  proxy:
    external: true

@Conkuist
Copy link

I also use traefik and I ran into a similar problem. When I access the dockge page via the reverse proxy, the page constantly reloads and shows the same error. When I don't go through the revers proxy everything works fine. The funny thing is that I had all of this running without issues before. But after I reinstalled my system it somehow broke. I copy pasted everything from the old install, so there is no reason why it suddenly shouldn't work anymore.

@beastmankojak
Copy link

I ran into this as well. It looks like this is related to traefik 2.11.1, and has possibly been fixed in 2.11.2. For now I've reverted to traefik 2.11.0 and it seems to solve the issue (the official docker image for 2.11.2 is not available yet)
traefik/traefik#10598

@Conkuist
Copy link

thank you. downgrading to version 2.11.0 fixed my issue.

@Marceau-h
Copy link

Thanks for the tip, upgrading traefik solved the problem as well !

@truthsword
Copy link
Author

Unfortunately all above posts relating to Traefik are off topic to the OP. I am not using Traefik, and no solution has yet been proposed.

@janreinhardt
Copy link

Same here. I am not using a reverse proxy and Dockge keeps displaying that error message to a point it has become unusable. I cannot edit a single line in a docker-compose.yml and save it, because of the recurring connection error.

@janreinhardt
Copy link

Same here. I am not using a reverse proxy and Dockge keeps displaying that error message to a point it has become unusable. I cannot edit a single line in a docker-compose.yml and save it, because of the recurring connection error.

ok I have rebooted everything. Works perfectly right now, so sorry for bothering you... 🤷🏼‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants