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

docker deployment debug #37

Open
harshsuri opened this issue Sep 7, 2018 · 6 comments
Open

docker deployment debug #37

harshsuri opened this issue Sep 7, 2018 · 6 comments

Comments

@harshsuri
Copy link

Hi, I followed the steps in the docker deployment section on a fresh Ubuntu 16.04 LTS. Upon checking the services I get the following output
image

But none of the services are accessible at localhost:65080 or localhost.

Upon digging further, in the docker volume in the folder " contraxsuite_contraxsuite_internal_nginx_logs" I see two entries in error.logs:

8#8: *2 "/etc/nginx/html/index.html" is not found (2: No such file or directory), client: MY_INTERNAL_IP_ADDRESS, server: contrax-nginx, request: "GET / HTTP/1.1", host: "MY_IP_ADDRESS"

I am not able to find proper logs to debug what went wrong in docker deployment. It appears everything installed correctly but nginx logs say otherwise.

Any help or direction on docker deployment will be helpful. Am I missing any steps or pre-configuration in deploying a docker image on a clean ubuntu 16.04?

@ghost
Copy link

ghost commented Sep 8, 2018

Hi All, I am experiencing the same issue. Some guidance would be much appreciated as I am sure we are simply missing one step to make it work.

Thanks.

@harshsuri
Copy link
Author

After inspecting the logs from uwsgi container. Everything seems fine as the final message is spawned uWSGI worker 1 (and the only)

Please see attached log files.

uwsgi_logs.log

But starting line 5703, we see warnings for sklearn version incompatibility

{"log":"/contraxsuite_services/venv/lib/python3.5/site-packages/sklearn/base.py:311: UserWarning: Trying to unpickle estimator SelectKBest from version 0.19.0 when usin g version 0.19.1. This might lead to breaking code or invalid results. Use at your own risk.\n","stream":"stderr","time":"2018-09-09T00:11:31.532591057Z"} {"log":" UserWarning)\n","stream":"stderr","time":"2018-09-09T00:11:31.532629457Z"}

Further in line 5811 and 5812 seems to suggest lacking PCRE support and likely an option --master missing in config.

{"log":"!!! no internal routing support, rebuild with pcre support !!!\n","stream":"stderr","time":"2018-09-09T00:12:20.574118418Z"}
{"log":"*** WARNING: you are running uWSGI without its master process manager ***\n","stream":"stderr","time":"2018-09-09T00:12:20.574121218Z"}

@harshsuri
Copy link
Author

Adding from nginx logs:

2018/09/09 04:17:43 [emerg] 1#1: host not found in upstream "contrax-uwsgi" in /etc/nginx/conf.d/default.conf:23
2018/09/09 04:35:22 [error] 9#9: *1 "/etc/nginx/html/index.html" is not found (2: No such file or directory), client: 10.255.0.2, server: contrax-nginx, request: "HEAD / HTTP/1.1", host: "52.167.2.22"

@harshsuri
Copy link
Author

Further investingatingt he nginx container, the folder contraxsuite_frontend is empty which leads to 404 not found. In the compose file a volume is created in contrax-nginx container but I am not sure if any data is copied into this folder from other containers or volume. Any help is appreciated.

@harshsuri
Copy link
Author

I think the issue is same as #35

No frontend is provided in the release.

Is it part of open source or only for paid customers? Any other way we can test it out ?

@dwmcqueen
Copy link
Contributor

Hi - I am getting a similar error. Has this been resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants