netbird icon indicating copy to clipboard operation
netbird copied to clipboard

Blank screen instead of web ui/ login page

Open hpoznanski opened this issue 3 years ago • 10 comments

Describe the problem (self-hosted)I got a blank screen instead of web ui / login page. All components are up as in the below screenshot. Below logs from docker compose logs management - no errors. Auth0 configured, I don't see any problems in Auth0 logs either.

Expected behavior Web UI / login page after enter the domain

infrastructure_files-management-1  | time="2023-06-30T13:25:20Z" level=info msg="loaded OIDC configuration from the provided IDP configuration endpoint: https://dev-domain.eu.auth0.com/.well-known/openid-configuration"
infrastructure_files-management-1  | time="2023-06-30T13:25:20Z" level=info msg="overriding HttpConfig.AuthIssuer with a new value https://dev-domain.eu.auth0.com/, previously configured value: https://dev-domain.eu.auth0.com/"
infrastructure_files-management-1  | time="2023-06-30T13:25:20Z" level=info msg="overriding HttpConfig.AuthKeysLocation (JWT certs) with a new value https://dev-domain.eu.auth0.com/.well-known/jwks.json, previously configured value: https://dev-domain.eu.auth0.com/.well-known/jwks.json"
infrastructure_files-management-1  | 2023-06-30T13:25:20Z INFO management/server/telemetry/app_metrics.go:161: enabled application metrics and exposing on http://0.0.0.0:8081
infrastructure_files-management-1  | 2023-06-30T13:25:20Z INFO management/server/account.go:671: single account mode enabled, accounts number 0
infrastructure_files-management-1  | 2023-06-30T13:25:20Z INFO management/cmd/management.go:233: running gRPC backward compatibility server: [::]:33073
infrastructure_files-management-1  | 2023-06-30T13:25:20Z INFO management/cmd/management.go:265: running HTTP server and gRPC server on the same port: [::]:443
infrastructure_files-management-1  | 2023-06-30T13:25:30Z INFO management/server/account.go:858: warmed up IDP cache with 0 entries

docker ps
CONTAINER ID   IMAGE                          COMMAND                  CREATED          STATUS          PORTS                                                                      NAMES
7e7929628135   netbirdio/management:latest    "/go/bin/netbird-mgm…"   16 minutes ago   Up 16 minutes   0.0.0.0:33073->443/tcp, :::33073->443/tcp                                  infrastructure_files-management-1
37cbb2b87cc0   coturn/coturn                  "docker-entrypoint.s…"   16 minutes ago   Up 16 minutes                                                                              infrastructure_files-coturn-1
3e811b79f92c   netbirdio/signal:latest        "/go/bin/netbird-sig…"   16 minutes ago   Up 16 minutes   0.0.0.0:10000->80/tcp, :::10000->80/tcp                                    infrastructure_files-signal-1
d30dc26427ea   wiretrustee/dashboard:latest   "/usr/bin/supervisor…"   16 minutes ago   Up 16 minutes   0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp   infrastructure_files-dashboard-1```

hpoznanski avatar Jun 30 '23 13:06 hpoznanski

can you drop the dashboard docker logs please ?

UncleJ4ck avatar Jun 30 '23 15:06 UncleJ4ck

can you drop the dashboard docker logs please ?

Below this log actually shows my attempts to enter + refresh the page

infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:28 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:28 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:29 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:29 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:29 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:29 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:29 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:30 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:30 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:30 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:30 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:30 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:30 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:30 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:31 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-" infrastructure_files-dashboard-1 | my_ip - - [30/Jun/2023:15:25:31 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "-"

hpoznanski avatar Jun 30 '23 15:06 hpoznanski

yes i got the same error as you it's 304, the only solution for now is to revert to the old version 0.27.1

UncleJ4ck avatar Jun 30 '23 15:06 UncleJ4ck

on 0.27.1 theres still same problem :/

I changed log level to debug but no errors:

infrastructure_files-management-1 | 2023-06-30T17:10:31Z INFO management/server/telemetry/app_metrics.go:161: enabled application metrics and exposing on http://0.0.0.0:8081 infrastructure_files-management-1 | 2023-06-30T17:10:31Z DEBG management/server/file_store.go:248: took 0 ms to persist the FileStore infrastructure_files-management-1 | 2023-06-30T17:10:31Z INFO management/server/account.go:671: single account mode enabled, accounts number 0 infrastructure_files-management-1 | 2023-06-30T17:10:31Z DEBG management/server/idp/auth0.go:182: requesting new jwt token for idp manager infrastructure_files-management-1 | 2023-06-30T17:10:31Z INFO management/cmd/management.go:233: running gRPC backward compatibility server: [::]:33073 infrastructure_files-management-1 | 2023-06-30T17:10:31Z INFO management/cmd/management.go:265: running HTTP server and gRPC server on the same port: [::]:443 infrastructure_files-management-1 | 2023-06-30T17:10:31Z DEBG management/server/idp/auth0.go:587: batch id status 200, 200 OK, response body: {users_export pending json 0 2023-06-30 17:10:31.924 +0000 UTC job_ZhniSom8LWz6z3lK}

hpoznanski avatar Jun 30 '23 16:06 hpoznanski

Ok its weird but after 12h looks like it works but now I have "Login Error: User state: Unauthenticated"

hpoznanski avatar Jul 01 '23 09:07 hpoznanski

Ok, fixed there Token Endpoint Authentication Method wasnt "None".

hpoznanski avatar Jul 01 '23 11:07 hpoznanski

Ok, fixed there Token Endpoint Authentication Method wasnt "None".

What's the ENV variable that you fixed ?

UncleJ4ck avatar Jul 01 '23 14:07 UncleJ4ck

+1,so how did you solved it?

Tiny-Wei avatar Oct 12 '23 00:10 Tiny-Wei

@hpoznanski can you post how you solved this problem?

antoine-sh avatar Oct 19 '23 21:10 antoine-sh

how did you solve this problem?

demanuPL avatar May 06 '24 14:05 demanuPL