no login in frontend #47

Closed
opened 2025-12-29 09:22:02 +01:00 by adam · 10 comments
Owner

Originally created by @nsk on GitHub (Mar 15, 2025).

03-15 02:58 INF GoDoxy version v0.9.9-1

03-15 02:58 DBG entrypoint access logger created

03-15 02:58 DBG docker client connected host=unix:///var/run/docker.sock

03-15 02:58 INF loaded route providers

                  • docker@local 2 routes

03-15 02:58 DBG obtaining cert due to error loading cert

03-15 02:58 INF homepage overrides config loaded, 0 items

03-15 02:58 INF icon cache loaded (0 icons)

03-15 02:58 INF server started addr=:80 module=server name=proxy

03-15 02:58 INF prometheus metrics enabled

03-15 02:58 INF server started addr=192.168.1.2:8888 module=server name=api

03-15 02:58 DBG event destroy, actor: name=godoxy-old, id=623c773223246741afe0a734305d87dc8e0dddacd2439636d36441bce60890d2 name=local type=docker

03-15 02:58 DBG old routes

                  • godoxy

                  • portainer name=local type=docker

03-15 02:58 DBG new routes

                  • portainer

                  • godoxy name=local type=docker

03-15 02:59 WRN service went down name=godoxy

03-15 02:59 DBG event die, actor: name=godoxy-frontend, id=7dabd01d0f4b760f59b1a1eeaeab4717a0e55955b41e668a17f509bf7652008e name=local type=docker

03-15 02:59 DBG old routes

                  • godoxy

                  • portainer name=local type=docker

03-15 02:59 DBG new routes

                  • godoxy

                  • portainer name=local type=docker

03-15 02:59 INF event occurred

                  • updated

                    • godoxy name=local type=docker

03-15 02:59 WRN service went down name=godoxy

03-15 02:59 DBG events

                  • event start, actor: name=godoxy-frontend, id=4521e37e8cc679096218d9cf14e55f197f691a56a5dd9ffcdeff6dfbca3b5cfa

                  • event destroy, actor: name=godoxy-frontend-old, id=7dabd01d0f4b760f59b1a1eeaeab4717a0e55955b41e668a17f509bf7652008e name=local type=docker

03-15 02:59 DBG old routes

                  • godoxy

                  • portainer name=local type=docker

03-15 02:59 DBG new routes

                  • godoxy

                  • portainer name=local type=docker

03-15 02:59 INF event occurred

                  • updated

                    • godoxy name=local type=docker

03-15 02:59 WRN service went down name=godoxy

2025/03/15 02:59:58 net/http: invalid Cookie.Domain ".168.1.2"; dropping domain attribute

03-15 02:59 WRN no match domains configured, accepting websocket API request from all origins

Frontend :

 ▲ Next.js 15.1.7

   - Local:        http://192.168.1.2:3000

   - Network:      http://192.168.1.2:3000

 ✓ Starting...

 ✓ Ready in 1274ms

(node:1) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.

(Use `node --trace-deprecation ...` to show where the warning was created)
Originally created by @nsk on GitHub (Mar 15, 2025). ```plain 03-15 02:58 INF GoDoxy version v0.9.9-1 03-15 02:58 DBG entrypoint access logger created 03-15 02:58 DBG docker client connected host=unix:///var/run/docker.sock 03-15 02:58 INF loaded route providers • docker@local 2 routes 03-15 02:58 DBG obtaining cert due to error loading cert 03-15 02:58 INF homepage overrides config loaded, 0 items 03-15 02:58 INF icon cache loaded (0 icons) 03-15 02:58 INF server started addr=:80 module=server name=proxy 03-15 02:58 INF prometheus metrics enabled 03-15 02:58 INF server started addr=192.168.1.2:8888 module=server name=api 03-15 02:58 DBG event destroy, actor: name=godoxy-old, id=623c773223246741afe0a734305d87dc8e0dddacd2439636d36441bce60890d2 name=local type=docker 03-15 02:58 DBG old routes • godoxy • portainer name=local type=docker 03-15 02:58 DBG new routes • portainer • godoxy name=local type=docker 03-15 02:59 WRN service went down name=godoxy 03-15 02:59 DBG event die, actor: name=godoxy-frontend, id=7dabd01d0f4b760f59b1a1eeaeab4717a0e55955b41e668a17f509bf7652008e name=local type=docker 03-15 02:59 DBG old routes • godoxy • portainer name=local type=docker 03-15 02:59 DBG new routes • godoxy • portainer name=local type=docker 03-15 02:59 INF event occurred • updated • godoxy name=local type=docker 03-15 02:59 WRN service went down name=godoxy 03-15 02:59 DBG events • event start, actor: name=godoxy-frontend, id=4521e37e8cc679096218d9cf14e55f197f691a56a5dd9ffcdeff6dfbca3b5cfa • event destroy, actor: name=godoxy-frontend-old, id=7dabd01d0f4b760f59b1a1eeaeab4717a0e55955b41e668a17f509bf7652008e name=local type=docker 03-15 02:59 DBG old routes • godoxy • portainer name=local type=docker 03-15 02:59 DBG new routes • godoxy • portainer name=local type=docker 03-15 02:59 INF event occurred • updated • godoxy name=local type=docker 03-15 02:59 WRN service went down name=godoxy 2025/03/15 02:59:58 net/http: invalid Cookie.Domain ".168.1.2"; dropping domain attribute 03-15 02:59 WRN no match domains configured, accepting websocket API request from all origins ``` **Frontend :** ```plain ▲ Next.js 15.1.7 - Local: http://192.168.1.2:3000 - Network: http://192.168.1.2:3000 ✓ Starting... ✓ Ready in 1274ms (node:1) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead. (Use `node --trace-deprecation ...` to show where the warning was created) ```
adam closed this issue 2025-12-29 09:22:03 +01:00
Author
Owner

@yusing commented on GitHub (Mar 15, 2025):

What do you mean by "no login in frontend"? Could you elaborate?

@yusing commented on GitHub (Mar 15, 2025): What do you mean by "no login in frontend"? Could you elaborate?
Author
Owner

@nsk commented on GitHub (Mar 15, 2025):

hi
I enter my login and password and it does not load, return to the login page

@nsk commented on GitHub (Mar 15, 2025): hi I enter my login and password and it does not load, return to the login page
Author
Owner

@yusing commented on GitHub (Mar 15, 2025):

I saw you have changed the API listening address to "192.168.1.2:8888", pls use the default "127.0.0.1:8888" and try again.

@yusing commented on GitHub (Mar 15, 2025): I saw you have changed the API listening address to "192.168.1.2:8888", pls use the default "127.0.0.1:8888" and try again.
Author
Owner

@yusing commented on GitHub (Mar 15, 2025):

could you also share your .env and compose.yml?

@yusing commented on GitHub (Mar 15, 2025): could you also share your `.env` and `compose.yml`?
Author
Owner

@nsk commented on GitHub (Mar 15, 2025):

Hi, I use the basic compose provided and .envie de base too, I saw that we could modify it later directly in the frontend, that's what interests me

Now when I run: pi@Chester:~/doxy $ docker compose up -d
unknown shorthand flag: 'd' in -d
See 'docker --help'.

Nothing wants to install anymore. Maybe you should create a step-by-step wiki. We're not all Docker experts, and I don't understand why .env isn't visible in the directory either.

@nsk commented on GitHub (Mar 15, 2025): Hi, I use the basic compose provided and .envie de base too, I saw that we could modify it later directly in the frontend, that's what interests me Now when I run: pi@Chester:~/doxy $ docker compose up -d unknown shorthand flag: 'd' in -d See 'docker --help'. Nothing wants to install anymore. Maybe you should create a step-by-step wiki. We're not all Docker experts, and I don't understand why .env isn't visible in the directory either.
Author
Owner

@yusing commented on GitHub (Mar 16, 2025):

For the current version, authenication requires HTTPs. You have to setup autocert first.

Before using GoDoxy, it is expected that you have basic knowledge about linux and docker.

unknown shorthand flag: 'd' in -d

I guess you have installed a legacy version of docker, for this case you should use 'docker-compose up -d' instead. My suggestion is to fully uninstall docker, and then install the latest version with

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh

why .env isn't visible in the directory either

Files with dot at the beginning (dotfiles) are hidden on linux

@yusing commented on GitHub (Mar 16, 2025): For the current version, authenication requires HTTPs. You have to setup `autocert` first. Before using GoDoxy, it is expected that you have basic knowledge about linux and docker. > unknown shorthand flag: 'd' in -d I guess you have installed a legacy version of docker, for this case you should use 'docker-compose up -d' instead. My suggestion is to fully uninstall docker, and then install the latest version with ```bash curl -fsSL https://get.docker.com -o get-docker.sh sh get-docker.sh ``` > why .env isn't visible in the directory either Files with dot at the beginning (dotfiles) are hidden on linux
Author
Owner

@Lifailon commented on GitHub (Mar 27, 2025):

I probably have the same problem!?

I tried to run the script with different authorization data before starting the container (.env file has been checked and the data is correct), it does not enter the interface.

Image

If I enter the wrong password, the error is "incorrect credentials", but if the correct one, it throws me out immediately after the redirect without errors in the interface.

Image

@Lifailon commented on GitHub (Mar 27, 2025): I probably have the same problem!? I tried to run the script with different authorization data before starting the container (`.env` file has been checked and the data is correct), it does not enter the interface. ![Image](https://github.com/user-attachments/assets/a245400c-b662-4105-b6c8-0be8a03ada12) If I enter the wrong password, the error is "incorrect credentials", but if the correct one, it throws me out immediately after the redirect without errors in the interface. ![Image](https://github.com/user-attachments/assets/8d860799-f21c-4ba5-ad5b-49c2df465193)
Author
Owner

@yusing commented on GitHub (Mar 27, 2025):

I probably have the same problem!?

I tried to run the script with different authorization data before starting the container (.env file has been checked and the data is correct), it does not enter the interface.

Image

If I enter the wrong password, the error is "incorrect credentials", but if the correct one, it throws me out immediately after the redirect without errors in the interface.

Image

As stated in the Wiki, authentication requires HTTPs (for the current version). Make sure you have autocert set up already, please visit the WebUI via https://godoxy.yourdomain.com.

@yusing commented on GitHub (Mar 27, 2025): > I probably have the same problem!? > > I tried to run the script with different authorization data before starting the container (`.env` file has been checked and the data is correct), it does not enter the interface. > > ![Image](https://github.com/user-attachments/assets/a245400c-b662-4105-b6c8-0be8a03ada12) > > If I enter the wrong password, the error is "incorrect credentials", but if the correct one, it throws me out immediately after the redirect without errors in the interface. > > ![Image](https://github.com/user-attachments/assets/8d860799-f21c-4ba5-ad5b-49c2df465193) As stated in the Wiki, authentication requires HTTPs (for the current version). Make sure you have autocert set up already, please visit the WebUI via `https://godoxy.yourdomain.com`.
Author
Owner

@yusing commented on GitHub (Mar 29, 2025):

Guys, just released v0.10.0, you should be able to log in without HTTPS if you set GODOXY_JWT_SECURE to false. Closing this issue now.

@yusing commented on GitHub (Mar 29, 2025): Guys, just released v0.10.0, you should be able to log in without HTTPS if you set `GODOXY_JWT_SECURE` to `false`. Closing this issue now.
Author
Owner

@Lifailon commented on GitHub (Mar 29, 2025):

@yusing now authorization does not work, the interface immediately lets you in with an error, I will open a new issue

@Lifailon commented on GitHub (Mar 29, 2025): @yusing now authorization does not work, the interface immediately lets you in with an error, I will open a new issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/godoxy#47