Slefhosted management UI not working after upgrade net::ERR_CONNECTION_REFUSED #1044

Closed
opened 2025-11-20 05:22:59 -05:00 by saavagebueno · 10 comments
Owner

Originally created by @myevit on GitHub (Jul 5, 2024).

I can't update for the last month to new version. All new breaking sso login to the console.
image

Originally created by @myevit on GitHub (Jul 5, 2024). I can't update for the last month to new version. All new breaking sso login to the console. ![image](https://github.com/netbirdio/netbird/assets/13375246/b647fd5c-6f0c-4612-8b1c-b90261b3c800)
saavagebueno added the waiting-feedbacktriage-needed labels 2025-11-20 05:22:59 -05:00
Author
Owner

@graphixillusion commented on GitHub (Jul 18, 2024):

I have the same problem using docker. Following the official documentation the update procedure is:

  1. docker compose down
  2. docker compose pull management dashboard signal
  3. docker compose up -d --force-recreate management dashboard signal

But once everything is recreated the management container keep restarting. Any clue?

@graphixillusion commented on GitHub (Jul 18, 2024): I have the same problem using docker. Following the official documentation the update procedure is: 1. docker compose down 2. docker compose pull management dashboard signal 3. docker compose up -d --force-recreate management dashboard signal But once everything is recreated the management container keep restarting. Any clue?
Author
Owner

@graphixillusion commented on GitHub (Aug 20, 2024):

No one else has the same problem?

@graphixillusion commented on GitHub (Aug 20, 2024): No one else has the same problem?
Author
Owner

@tyler201 commented on GitHub (Aug 23, 2024):

Same issue - been trying to figure this out all day. I've narrowed it down to the management service not being able to resolve "https://your.netbird.domain.com/.well-known/openid-configuration".

Following advice on issue #1699, I have tried to edit the docker-compose file and add this extra_hosts item to management: "your.netbird.domain.com:host-gateway" - didn't work.

In this scenario:

  • You can ping your hostname from inside the management docker container and it will resolve to the correct hostname, regardless of the inclusion of the extra-hosts line or not.
  • You cannot curl the openid-configuration from inside the container, regardless of the inclusion of the extra-hosts line or not.

I'll keep pushing today to try and find a solution.

@tyler201 commented on GitHub (Aug 23, 2024): Same issue - been trying to figure this out all day. I've narrowed it down to the management service not being able to resolve ```"https://your.netbird.domain.com/.well-known/openid-configuration"```. Following advice on issue #1699, I have tried to edit the docker-compose file and add this extra_hosts item to management: ```"your.netbird.domain.com:host-gateway"``` - didn't work. In this scenario: - You can ping your hostname from inside the management docker container and it will resolve to the correct hostname, regardless of the inclusion of the extra-hosts line or not. - You cannot curl the openid-configuration from inside the container, regardless of the inclusion of the extra-hosts line or not. I'll keep pushing today to try and find a solution.
Author
Owner

@tyler201 commented on GitHub (Aug 26, 2024):

Update: found a solution to this:

edit the docker-compose file, and edit the caddy section:

caddy:
    ...
    networks:
      netbird:
        aliases:
          - "domain.example.com"
    ...

Adding this allows the internal containers to resolve your hostname to the caddy instance, which allows them to have proper SSL certificates.

@tyler201 commented on GitHub (Aug 26, 2024): Update: found a solution to this: edit the docker-compose file, and edit the caddy section: ``` caddy: ... networks: netbird: aliases: - "domain.example.com" ... ``` Adding this allows the internal containers to resolve your hostname to the caddy instance, which allows them to have proper SSL certificates.
Author
Owner

@graphixillusion commented on GitHub (Aug 26, 2024):

@tyler201 In my scenario i have the management container which keeps restarting after the update so your solution covers this too?

@graphixillusion commented on GitHub (Aug 26, 2024): @tyler201 In my scenario i have the management container which keeps restarting after the update so your solution covers this too?
Author
Owner

@tyler201 commented on GitHub (Aug 26, 2024):

@graphixillusion if you drop your management container logs I can tell you for sure, but it's worth trying. You can always change it afterwards. Don't forget to restart the docker compose afterwards.

@tyler201 commented on GitHub (Aug 26, 2024): @graphixillusion if you drop your management container logs I can tell you for sure, but it's worth trying. You can always change it afterwards. Don't forget to restart the docker compose afterwards.
Author
Owner

@graphixillusion commented on GitHub (Aug 26, 2024):

Actually i just tried to update the current container with the same method as before and it worked good so no error at all. I don't know previously what's happened...

@graphixillusion commented on GitHub (Aug 26, 2024): Actually i just tried to update the current container with the same method as before and it worked good so no error at all. I don't know previously what's happened...
Author
Owner

@myevit commented on GitHub (Aug 27, 2024):

I got my issue solved. it was JSON storage.
I have tried to do migration as per doc but got error that db is existed.
https://docs.netbird.io/selfhosted/sqlite-store#migrating-from-json-store-to-sq-lite-store

so I have added NETBIRD_STORE_CONFIG_ENGINE=sqlite to the setup.env, run ./configure.sh, then docker compose up -d --force-recreate, checked logs docker compose logs management, saw that is has started to use sql, and my management site has remain the same. Then docker compose pull and docker compose up -d --force-recreate.

So far all working.

@myevit commented on GitHub (Aug 27, 2024): I got my issue solved. it was JSON storage. I have tried to do migration as per doc but got error that db is existed. https://docs.netbird.io/selfhosted/sqlite-store#migrating-from-json-store-to-sq-lite-store so I have added NETBIRD_STORE_CONFIG_ENGINE=sqlite to the setup.env, run ./configure.sh, then docker compose up -d --force-recreate, checked logs docker compose logs management, saw that is has started to use sql, and my management site has remain the same. Then docker compose pull and docker compose up -d --force-recreate. So far all working.
Author
Owner

@nazarewk commented on GitHub (Apr 28, 2025):

Hello @myevit,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

@nazarewk commented on GitHub (Apr 28, 2025): Hello @myevit, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@myevit commented on GitHub (Apr 28, 2025):

Hello @myevit,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

Hi,
with the steps I have described - I have no issue as of right now.

@myevit commented on GitHub (Apr 28, 2025): > Hello [@myevit](https://github.com/myevit), > > We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). > > Could you please confirm if the issue is still there? > > We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. > > Thanks for your contribution to improving the project! Hi, with the steps I have described - I have no issue as of right now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1044