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

Scoreboard empty #471

Closed
smoetsie opened this issue Dec 15, 2021 · 7 comments
Closed

Scoreboard empty #471

smoetsie opened this issue Dec 15, 2021 · 7 comments

Comments

@smoetsie
Copy link

smoetsie commented Dec 15, 2021

Hi,

When I open the scoreboard page, the charts are empty and the history keeps loading. I cloned the latest version of Root the Box but I still got the problem... I have tested it with users completing flags but it stays empty.

image

@eljeffeg
Copy link
Collaborator

I don't have this issue in my dev environment. Couple things you could do to help figure this out... Open up the dev tools in the browser and see if there are any errors in the console. Also, look at the running terminal for RootTheBox and see if we have any error messages. Would be helpful to put it in debug mode that could give more info.

@smoetsie
Copy link
Author

I found out it was because of nginx, the websockets couldn't be found. Now I followed the wiki for the nginx deployment and got the nginx.conf and nginx_vhost_rtb.conf just as the example but now i get these errors:

image

and this is my config for /static/ just like the example:
image

@smoetsie
Copy link
Author

okay so I added a proxy_pass to the /static/ locations and now it works, but got a different error when loading the scoreboard:

image

@eljeffeg
Copy link
Collaborator

eljeffeg commented Dec 16, 2021

One thing to verify when using a proxy is the origin value in config. It should reflect the public url as ws://www.whatever.com. Proxy issues are almost always a configuration issue from my experience.

Take a look at this StackOverflow question It seems to match your error and describe your proxy situation.

@christiaanvaken
Copy link

That's what we did, with the origin value, but it looks like the rootthebox.cfg file is overridden everytime.

eljeffeg added a commit that referenced this issue Dec 21, 2021
@eljeffeg
Copy link
Collaborator

I fixed the issue with overwriting the rootthebox.cfg

@smoetsie
Copy link
Author

Thanks!

Also, adding proxy_buffering off; for all the locations in the nginx config, fixed the issue and now the scoreboard is working!

@eljeffeg eljeffeg closed this as completed Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants