-
Notifications
You must be signed in to change notification settings - Fork 54
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
Environment variables are not injected properly at runtime in next.js #843
Comments
Update : I saw that the GIT was updated few days ago, so I re-did this procedure, and now it works I can login fine. Thanks ! |
Hm. After restarting the OS, same error again. I really don't understand whats going-on.... Last log info for each dockers: Backend: [2024-08-18 11:00:10 +0000] [8] [INFO] Application startup complete. Frontend: Ready in 4.1s No errors that I can see after I tried to login. |
same here. cloned master from git and not able to log in with provided credentials. |
So you are both on linux? It might be solved by #814, you can try if this docker-compose.yml works: https://github.com/djpiper28/bracket/blob/patch-2/docker-compose.yml The default Docker network is sometimes protected, for example on windows apparently. |
Now I merged the PR, so could you try again on master after doing |
Still doesn't work, and I can see multiple error.
The website shows up but can't login, same error. |
|
No, it is not full. EDIT : if you want to replicate ths issue I have, just install Ubuntu Server LTS last version on a VM or a NUC, and try follow your install guide of bracket. This should output the same results. I also have tried on Debian server with the same results. EDIT2 : Oh man, you might have been right, turns out Ubuntu takes up a lot of space, I need to investigate more. [+] Running 6/6 |
Maybe a new lead: Blocage d’une requête multiorigine (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://localhost:8400/token. Raison : échec de la requête CORS. Code d’état : (null). (french sorry, but it kinda speak for itself) So it seems like there is a "localhost" to replace with the IP of the server. But where do to that ? |
Hmm could you try opening http://localhost:8400/ping in the browser? And could you copy paste the output of It should be correct that it's localhost right, or are you not opening the frontend in the browser as http://localhost:3000 but some other url? |
I'm opening the frontend with the server's IP : http://192.168.20.112:3000 EDIT: The docker is running on a headless server |
Ah yes that's the issue indeed
Ah this is a bug, I fixed it now in #878. Somehow this didn't work anymore, now it should work again, could you try again with the latest version on master? |
Can you also pull the latest version of the docker container? |
The docker compose file downloads the image from GitHub so you need to manually download it again to update |
Looks alright, so in the browser network tab, it still shows localhost instead of the IP address of the environment variable? |
And if you do this:
|
Ohh I forgot to mention but you also have to set the CORS_ORIGINS environment variable for the backend correctly, with the ip address of the frontend, so whatever you write in the browser as url to access the frontend |
Yes, browser network tab, still shows localhost instead of the IP address of the environment variable.
Well I would love to, but have to replace "localhost" with 192.168.20.112 right ? About CORS_ORIGINS, in ci.env file ? Or also in the docker compose ? |
I'm in the same boat, debian12 fresh server/docker install. I've tried both dev and production guides, changed both mentions of localhost to the IP of the docker vm in the docker compose file, still can't login using default credentials with the same 'server error' |
backend isn't starting up fully, monitoring i'm seeing this loop:
|
Hi, I have the same issue when I configure an IP address instead of localhost, here is my docker-compose.yml file:
Noticed that I offload the PostgreSQL from the compose file as I have an instance already running. The error that I've seen on the browser inspector is:
Firewall is open and can do the "ping" request:
Still can't login. |
I can indeed reproduce the issue now, should have tried it earlier. I am still looking at how other projects fix this problem, but I tried this morning and couldn't solve it yet. btw @SirThunder88 your problem is unrelated, you can open a separate discussion if you want help with that. |
Thank you for the response. the example I provided was just one of the attempts using the production script, I could not get any of them (quick start/dev/prod) to work with the default un/pass. I'll just be cool with any of them working so I can trial the software for an upcoming event that it may work for. If the fix for this issue doesn't also address what I'm experiencing I'll open another issue |
I have made a fix for the problem with the environment variables here: #886 |
Looks good on my side ! |
Good to hear! Then I'll close this, feel free to open new issues |
Hi,
First I want to thanks you all for providing this solution for free and I hope to see the project continue to grow.
Now, the issue I have is that I just created a VM running Ubuntu server LTS (on a proxmox machine, then tried again on my Unraid server). The VM is clean, nothing installed yet except Docker ofc.
I did a git clone https://github.com/evroon/bracket (because the provided command "git clone git@github.com:evroon/bracket.git" doesn't work) and started the docker compose with the provided command.
When I got to localhost:3000 I see the landing page asking me to login.
I put the provided default credentials :
Username: test@example.org Password: aeGhoe1ahng2Aezai0Dei6Aih6dieHoo.
But nothing happens and a notification in the bottom right appears saying "Internal server error".
As i'm no expert in Linux, I was wandering if I missed any step or this is just because I used the wrong distro or something ?
Thanks for reading.
The text was updated successfully, but these errors were encountered: