New Docker Image for CGWire

I seem to have issues now getting the container running correctly:

C:\Users\admin>docker run -p 80:80 --name cgwire cgwire/cgwire
Running Zou...
2017-11-20 18:15:43,356 CRIT Supervisor running as root (no user in config file)
2017-11-20 18:15:43,368 INFO RPC interface 'supervisor' initialized
2017-11-20 18:15:43,368 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2017-11-20 18:15:43,369 INFO supervisord started with pid 9
2017-11-20 18:15:44,371 INFO spawned: 'gunicorn' with pid 12
2017-11-20 18:15:44,372 INFO spawned: 'gunicorn-events' with pid 13
2017-11-20 18:15:44,376 INFO spawned: 'redis' with pid 14
2017-11-20 18:15:44,381 INFO spawned: 'postgresql' with pid 15
2017-11-20 18:15:44,383 INFO spawned: 'nginx' with pid 16
2017-11-20 18:15:45,493 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-11-20 18:15:45,493 INFO success: gunicorn-events entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-11-20 18:15:45,494 INFO success: redis entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-11-20 18:15:45,494 INFO success: postgresql entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-11-20 18:15:45,494 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

Capture

Thank you for reporting. I will look at it soon. Can you retry to build the image from scratch? Yesterday, I broke the Zou repository.

Just pulled from scratch, and getting the same error:

C:\Users\admin>docker run -d -p 80:80 --name cgwire cgwire/cgwire
Unable to find image 'cgwire/cgwire:latest' locally
latest: Pulling from cgwire/cgwire
660c48dd555d: Pull complete
4c7380416e78: Pull complete
421e436b5f80: Pull complete
e4ce6c3651b3: Pull complete
be588e74bd34: Pull complete
ba91036e1da2: Pull complete
135aff89e850: Pull complete
8ab17640e766: Pull complete
3afae30efbfe: Pull complete
b7d47e14d23e: Pull complete
9162abfea237: Pull complete
2b5e82509169: Pull complete
489dedefcfad: Pull complete
d6166ec48c48: Pull complete
daf8110233f5: Pull complete
c6ee957716a6: Pull complete
dc63f0a4aba0: Pull complete
0919bcb9a76f: Pull complete
9547b46f3b4d: Pull complete
2490b475dc9e: Pull complete
a758c95b0200: Pull complete
9c73a2abaf73: Pull complete
abbe4c53d7ab: Pull complete
6f7459924ea4: Pull complete
0eb03404bf46: Pull complete
1ed8a630f6b5: Pull complete
e74e9705bd88: Pull complete
Digest: sha256:ded0b97a2af8525dd6545f90f1281d99afb7d658cd083792521c96a51fb19abc
Status: Downloaded newer image for cgwire/cgwire:latest
04c51d839a57dc504f73a3f8c1fe9658c7046b0baf75071f384a84422054a7ab

I made a new build last night. It seems to work. Can you try again? Thank you again for testing the image.

If you setup a virtual machine (e.g. VirtualBox or VMWare) with Windows @frank then its possible could try these on your local machine. I think thereā€™s a free development version of Windows you could use, if you donā€™t already have access.

Yes but my concern is not really to make it work on my own machine. I want to be sure it works on other people computer.

That said, it would be great to have a continuous integration for this image on Linux and Windows.

Have a look at AppVeyor for Windows-based CI, I think it supports Docker too.

Still no luck :frowning:

Could you tell me what says:

docker exec -it cgwire cat /var/log/zou/gunicorn_error.log

and:

docker exec -it cgwire curl http://localhost:5000

NB: Did you delete the image docker rmi cgwire/cgwire before pulling it again?

[2017-11-25 15:35:56 +0000] [12] [INFO] Starting gunicorn 19.7.1
[2017-11-25 15:35:56 +0000] [12] [INFO] Listening at: http://127.0.0.1:5000 (12)
[2017-11-25 15:35:56 +0000] [12] [INFO] Using worker: gevent
[2017-11-25 15:35:56 +0000] [29] [INFO] Booting worker with pid: 29
[2017-11-25 15:35:56 +0000] [34] [INFO] Booting worker with pid: 34
[2017-11-25 15:35:56 +0000] [37] [INFO] Booting worker with pid: 37
[2017-11-25 15:42:12 +0000] [29] [ERROR] Error handling request /auth/authenticated
Traceback (most recent call last):
  File "/opt/zou/env/lib/python3.5/site-packages/gunicorn/workers/async.py", line 56, in handle
    self.handle_request(listener_name, req, client, addr)
  File "/opt/zou/env/lib/python3.5/site-packages/gunicorn/workers/ggevent.py", line 152, in handle_request
    super(GeventWorker, self).handle_request(*args)
  File "/opt/zou/env/lib/python3.5/site-packages/gunicorn/workers/async.py", line 107, in handle_request    respiter = self.wsgi(environ, resp.start_response)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1997, in __call__
    return self.wsgi_app(environ, start_response)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1540, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/_compat.py", line 32, in reraise
    raise value.with_traceback(tb)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/_compat.py", line 32, in reraise
    raise value.with_traceback(tb)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1610, in full_dispatch_request
    rv = self.preprocess_request()
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1831, in preprocess_request
    rv = func()
  File "/opt/zou/env/lib/python3.5/site-packages/flask_principal.py", line 479, in _on_before_request
    self.set_identity(identity)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_principal.py", line 418, in set_identity
    self._set_thread_identity(identity)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_principal.py", line 463, in _set_thread_identity
    identity=identity)
  File "/opt/zou/env/lib/python3.5/site-packages/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/opt/zou/env/lib/python3.5/site-packages/blinker/base.py", line 267, in <listcomp>
    for receiver in self.receivers_for(sender)]
  File "/opt/zou/zou/zou/app/blueprints/auth/resources.py", line 60, in on_identity_loaded
    identity.user = persons_service.get_person(identity.id)
  File "/opt/zou/zou/zou/app/services/persons_service.py", line 50, in get_person
    raise PersonNotFoundException()
zou.app.services.exception.PersonNotFoundException
[2017-11-25 15:42:12 +0000] [37] [ERROR] Error handling request /auth/authenticated
Traceback (most recent call last):
  File "/opt/zou/env/lib/python3.5/site-packages/gunicorn/workers/async.py", line 56, in handle
    self.handle_request(listener_name, req, client, addr)
  File "/opt/zou/env/lib/python3.5/site-packages/gunicorn/workers/ggevent.py", line 152, in handle_request
    super(GeventWorker, self).handle_request(*args)
  File "/opt/zou/env/lib/python3.5/site-packages/gunicorn/workers/async.py", line 107, in handle_request    respiter = self.wsgi(environ, resp.start_response)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1997, in __call__
    return self.wsgi_app(environ, start_response)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1540, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/_compat.py", line 32, in reraise
    raise value.with_traceback(tb)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_restful/__init__.py", line 271, in error_router
    return original_handler(e)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/_compat.py", line 32, in reraise
    raise value.with_traceback(tb)
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1610, in full_dispatch_request
    rv = self.preprocess_request()
  File "/opt/zou/env/lib/python3.5/site-packages/flask/app.py", line 1831, in preprocess_request
    rv = func()
  File "/opt/zou/env/lib/python3.5/site-packages/flask_principal.py", line 479, in _on_before_request
    self.set_identity(identity)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_principal.py", line 418, in set_identity
    self._set_thread_identity(identity)
  File "/opt/zou/env/lib/python3.5/site-packages/flask_principal.py", line 463, in _set_thread_identity
    identity=identity)
  File "/opt/zou/env/lib/python3.5/site-packages/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/opt/zou/env/lib/python3.5/site-packages/blinker/base.py", line 267, in <listcomp>
    for receiver in self.receivers_for(sender)]
  File "/opt/zou/zou/zou/app/blueprints/auth/resources.py", line 60, in on_identity_loaded
    identity.user = persons_service.get_person(identity.id)
  File "/opt/zou/zou/zou/app/services/persons_service.py", line 50, in get_person
    raise PersonNotFoundException()
zou.app.services.exception.PersonNotFoundException
oci runtime error: exec failed: container_linux.go:265: starting container process caused "exec: \"curl\": executable file not found in $PATH"

Ok, I get it. Itā€™s a bug that will be fixed very soon related to the fact that the user you used to log in is not anymore present in the database. To avoid it until itā€™s fixed, you can clear your navigator cache for the domain you use to connect on this container. If you use another browser, it should work too

Thanks :slight_smile: Will await the fix.

Removing the default user, Iā€™m now seeing the same error. I removed it, because I didnā€™t want the default user and password exposed.

I published a new image. Could you try again?

Actions to peform before running the docker command again:

sudo docker pull cgwire/cgwire
sudo docker rm cgwire

Thank you for the tests!

Super! Working for me again :slight_smile:

1 Like

Great! Thank you again for testing!

Trying to test the latest docker container, and having trouble again.

Iā€™ve downloaded the image from scratch, but nothing shows up on http://localhost.

On my side everything works fine. Are you sure you donā€™t start it on an existing database? Can you provide logs?

How do I ensure I start from scratch?

Are these the logs you are looking for?

$ docker exec -it cgwire cat /var/log/zou/gunicorn_error.log
[2018-04-05 23:42:18 +0000] [12] [INFO] Starting gunicorn 19.7.1
[2018-04-05 23:42:18 +0000] [12] [INFO] Listening at: http://127.0.0.1:5000 (12)
[2018-04-05 23:42:18 +0000] [12] [INFO] Using worker: gevent
[2018-04-05 23:42:18 +0000] [29] [INFO] Booting worker with pid: 29
[2018-04-05 23:42:18 +0000] [33] [INFO] Booting worker with pid: 33
[2018-04-05 23:42:18 +0000] [35] [INFO] Booting worker with pid: 35

$ docker exec -it cgwire curl http://localhost:5000
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"curl\": executable file not found in $PATH": unknown

To make sure you use the latest version, run the following command:

sudo docker rmi cgwire/cgwire
sudo docker rm cgwire

And to be totally sure there is no remaining container, type:

sudo docker ps -a | grep cgwire

Then install the latest image and run it:

sudo docker pull cgwire/cgwire
sudo docker run -d -p 80:80 --name cgwire cgwire/cgwire

To see logs, I think you can do:

docker exec -it cgwire cat /var/log/zou/gunicorn_error.log