d3vzer0 / reternal-quickstart

Repo containing docker-compose files and setup scripts without having to clone the individual reternal components
107 stars 24 forks source link

Docker backend doesn't #4

Closed 2xyo closed 5 years ago

2xyo commented 5 years ago

Hello,

I can't login on the web interface as the backend isn't listening on port 5000

% docker-compose up -d --build
...
Step 21/21 : CMD celery -A tasks worker -Q agent --concurrency=1
 ---> Running in 42f971f59fc3
 ---> 990e899f9ed9
Removing intermediate container 42f971f59fc3
Successfully built 990e899f9ed9
Successfully tagged reternalquickstart_compiler:latest
Creating reternalquickstart_mongodb_1
Creating reternalquickstart_redis-service_1
Creating reternalquickstart_api-socket_1
Creating reternalquickstart_api_1
Creating reternalquickstart_c2_1
Creating reternalquickstart_compiler_1
Creating reternalquickstart_ui_1
% python3 manage.py -a install -t all

Web interface is up and running on http://localhost/ but the login request to http://127.0.0.1:5000/api/v1/login fails as no docker image is listening on port 5000:

% docker ps
CONTAINER ID        IMAGE                         COMMAND                  CREATED              STATUS              PORTS                        NAMES
fa004edb47de        reternalquickstart_ui         "nginx -g 'daemon ..."   About a minute ago   Up About a minute   127.0.0.1:80->80/tcp         reternalquickstart_ui_1
79eef14b2f9c        reternalquickstart_compiler   "/bin/sh -c 'celer..."   21 minutes ago       Up About a minute                                reternalquickstart_compiler_1
c5d767a6fefb        reternalquickstart_c2         "/bin/sh -c 'pytho..."   21 minutes ago       Up About a minute   127.0.0.1:9000->9000/tcp     reternalquickstart_c2_1
c1da8100cb9f        redis                         "docker-entrypoint..."   21 minutes ago       Up About a minute   127.0.0.1:6379->6379/tcp     reternalquickstart_redis-service_1
d777cef4f69a        mongo                         "/entrypoint.sh mo..."   21 minutes ago       Up About a minute   127.0.0.1:27017->27017/tcp   reternalquickstart_mongodb_1

% sudo ss -tlnp '( sport = 5000 or sport = 80 )'
State                      Recv-Q                      Send-Q                                            Local Address:Port                                           Peer Address:Port                     
LISTEN                     0                           128                                                   127.0.0.1:80                                                  0.0.0.0:*                         users:(("docker-proxy",pid=26106,fd=4))
d3vzer0 commented 5 years ago

Hiya,

Thanks for reporting ^^ The quickstart repo is 1 commit behind of the API module that solves this issue. There was a dependency (eventlet) missing that prevents the container from starting. I will sync the latest version when I get back to my laptop ;)

d3vzer0 commented 5 years ago

PS and a good one to adjust the build script to verify if the container is really running after X seconds :)

d3vzer0 commented 5 years ago

Pulled the latest commit for all the submodules. Everything should be working now :)