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

Error: 504 Gateway-Timeout when all containers are up and healthy. #234

Closed
Al3xTh3Gr3at opened this issue Jun 6, 2024 · 5 comments
Closed
Assignees
Labels
assess We still haven't decided if this will be worked on or not bug Something isn't working

Comments

@Al3xTh3Gr3at
Copy link

Al3xTh3Gr3at commented Jun 6, 2024

Describe the bug
When starting ALv4 dev setup, the gui doesn't bring up the login page and has an error of "Error: 504 Gateway-timeout

To Reproduce
Steps to reproduce the behavior:

  1. Go To /git/alv4/assemblyline-base/dev/depends
  2. $docker-compose -f docker-compose-minimal.yml up -d --wait
  3. Go to /git/alv4/assemblyline-base/dev/core
  4. $docker-compose -f docker-compose.yml up -d --wait
  5. Wait until all containers are started and healthy.
  6. Open your browser and navigate to https://localhost
  7. No local login option with Error: API Server unreachable, we will auto-reconnect once the server is back online...

Expected behavior
https://localhost brings up the AssemblyLine GUI.

Screenshots
If applicable, add screenshots to help explain your problem.

Workaround

  1. run $docker inspect depends-nginx-1 and find the Gateway and IPAddress
  2. dockerinspectnginx

3.Go To /git/alv4/assemblyline-base/dev/depends
4. nano docker-compose-minimal.yml (scroll to the bottom)
5. Make sure the IPs are in the same subnet.
nginx-info

Environment (please complete the following information if pertinent):

  • Assemblyline Version: 4.5.0.29
  • Browser: FireFox
@Al3xTh3Gr3at Al3xTh3Gr3at added assess We still haven't decided if this will be worked on or not bug Something isn't working labels Jun 6, 2024
@cccs-rs
Copy link
Contributor

cccs-rs commented Jun 6, 2024

Is this with using the latest commit from assemblyline-base? Mostly because you reference 4.3.1.x as the version and we're currently on 4.5.0.x so I wonder if it's a bug that's since been patched.

@kam193
Copy link

kam193 commented Jun 6, 2024

Have you tried to restart Nginx container? I have an issue that Nginx is sometimes failing to find containers that weren't available when it was starting. I just restart Nginx container to fix it.

@Al3xTh3Gr3at
Copy link
Author

Apologies, it is from the latest version..

@cccs-rs cccs-rs self-assigned this Jun 7, 2024
@cccs-rs
Copy link
Contributor

cccs-rs commented Jun 7, 2024

Running this myself, I haven't encountered any issues and in my case the gateway gets set to 172.24.0.1 which doesn't match the IP that's set for NGINX by default (172.17.0.1) but the default matches the IP shown for ip addr show docker0.

Perhaps in your system, the IP address for Docker is different and you may need to set that instead in the docker-compose.yml?

@Al3xTh3Gr3at
Copy link
Author

Al3xTh3Gr3at commented Jun 7, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assess We still haven't decided if this will be worked on or not bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants