Amsterdam icon indicating copy to clipboard operation
Amsterdam copied to clipboard

Scirius - Internal Server Error

Open michaelseto opened this issue 9 years ago • 14 comments

I am running the Scirius container and added ports 8000:8000 to the compose file. The container is running, and I have configured nginx to forward requests on port 8001 to 8000. I go to the web browser and do http://my_url:8001 - it returns 'Internal Server Error'

michaelseto avatar Mar 02 '17 21:03 michaelseto

The reason why I added the ports section to docker-compose for Scirius is because I noticed after the container started, it doesn't say it's listening on any ports.

michaelseto avatar Mar 02 '17 22:03 michaelseto

Anything to try?

michaelseto avatar Mar 07 '17 04:03 michaelseto

I don't understand what you are trying to achieve. Scirius/gunicorn is local only and should be contacted via nginx. Also due to authentication, you may really want to https.

regit avatar Mar 08 '17 07:03 regit

Also receiving this error with a fresh ubuntu installation following the instructions in the readme.

austin-taylor avatar Mar 28 '17 16:03 austin-taylor

I'm using Ubuntu 16.04.2 LTS and I notice the docker container is using python3 could that be causing the issue?

austin-taylor avatar Mar 28 '17 19:03 austin-taylor

Might be. Can you confirm with python 2.(7)x ?

pevma avatar Mar 28 '17 20:03 pevma

How can I start the container using Python2?

austin-taylor avatar Mar 28 '17 20:03 austin-taylor

Also, each service appears to have it's own host inside the docker container? Is this expected behavior? For example: evebox_1 | 2017-03-28 20:37:30 (server.go:189) <Error> -- Failed to ping Elastic Search: : Get http://elasticsearch:9200/: dial tcp <docker ip>:9200: getsockopt: connection refused Should we replace elasticsearch with localhost?

austin-taylor avatar Mar 28 '17 20:03 austin-taylor

Hi @austin-taylor , evebox is starting too fast compared to Elasticsearch so it detect Elasticsearch as dead when starting. But it will try to reconnect and when ES will be up it will succeed to get data from it.

regit avatar Mar 28 '17 22:03 regit

@austin-taylor On the error 500 you may face this problem: https://github.com/StamusNetworks/Amsterdam/issues/42

regit avatar Mar 28 '17 22:03 regit

Spot on @regit Thank you for the quick reply!

Might be worth adding that to the README or put it in the config with a comment. Happy to submit a PR 👍

austin-taylor avatar Mar 29 '17 00:03 austin-taylor

@austin-taylor you are welcome to submit a PR :). Thanks for the help

pevma avatar Apr 03 '17 13:04 pevma

@regit It isn't clear what I am trying to achieve? I am trying to achieve accessing Scirius from a web browser - which I am having problems doing. Is the Scirius GUI not supposed to be accessed in this solution?

michaelseto avatar Apr 03 '17 16:04 michaelseto

Will submit a PR to resolve. Thanks again!

austin-taylor avatar Apr 03 '17 16:04 austin-taylor