cachethq / Docker

A Dockerized version of Cachet.
https://cachethq.io
BSD 3-Clause "New" or "Revised" License
415 stars 280 forks source link

Fresh docker image pulled from cachethq/docker doesn't appear at all #312

Closed dudeisbrendan03 closed 6 years ago

dudeisbrendan03 commented 6 years ago

Docker logs:

{"log":"Initializing Cachet container ...\n","stream":"stdout","time":"2018-08-16T14:22:29.081291327Z"}
{"log":"Attempting to connect to database ...\n","stream":"stdout","time":"2018-08-16T14:22:29.169888365Z"}
{"log":"\n","stream":"stdout","time":"2018-08-16T14:22:29.184879978Z"}
{"log":"Table sessions exists! ...\n","stream":"stdout","time":"2018-08-16T14:22:29.234590531Z"}
{"log":"Nothing to migrate.\n","stream":"stdout","time":"2018-08-16T14:22:30.094743412Z"}
{"log":"Starting Cachet! ...\n","stream":"stdout","time":"2018-08-16T14:22:30.114898101Z"}
{"log":"Configuration cache cleared!\n","stream":"stdout","time":"2018-08-16T14:22:30.332299995Z"}
{"log":"Configuration cached successfully!\n","stream":"stdout","time":"2018-08-16T14:22:30.353003503Z"}
{"log":"2018-08-16 14:22:30,918 WARN For [program:queue-worker], AUTO logging used for stderr_logfile without rollover, set maxbytes \u003e 0 to avoid filling up filesystem unintentionally\n","stream":"stdout","time":"2018-08-16T14:22:30.918841014Z"}
{"log":"2018-08-16 14:22:30,923 INFO supervisord started with pid 61\n","stream":"stdout","time":"2018-08-16T14:22:30.924025558Z"}
{"log":"2018-08-16 14:22:31,927 INFO spawned: 'nginx' with pid 64\n","stream":"stdout","time":"2018-08-16T14:22:31.929005603Z"}
{"log":"2018-08-16 14:22:31,932 INFO spawned: 'php-fpm' with pid 65\n","stream":"stdout","time":"2018-08-16T14:22:31.93238516Z"}
{"log":"2018-08-16 14:22:31,943 INFO spawned: 'queue-worker' with pid 66\n","stream":"stdout","time":"2018-08-16T14:22:31.943595492Z"}
{"log":"[16-Aug-2018 14:22:32] NOTICE: fpm is running, pid 65\n","stream":"stderr","time":"2018-08-16T14:22:32.109649344Z"}
{"log":"[16-Aug-2018 14:22:32] NOTICE: ready to handle connections\n","stream":"stderr","time":"2018-08-16T14:22:32.110101328Z"}
{"log":"2018-08-16 14:22:33,111 INFO success: nginx entered RUNNING state, process has stayed up for \u003e than 1 seconds (startsecs)\n","stream":"stdout","time":"2018-08-16T14:22:33.112336146Z"}
{"log":"2018-08-16 14:22:33,111 INFO success: php-fpm entered RUNNING state, process has stayed up for \u003e than 1 seconds (startsecs)\n","stream":"stdout","time":"2018-08-16T14:22:33.112385231Z"}
{"log":"2018-08-16 14:22:33,111 INFO success: queue-worker entered RUNNING state, process has stayed up for \u003e than 1 seconds (startsecs)\n","stream":"stdout","time":"2018-08-16T14:22:33.112389533Z"}

Can't connect on 8000 or 80:

nc: connect to localhost port 8000 (tcp) failed: Connection refused
nc: connect to localhost port 8000 (tcp) failed: Connection refused
nc: connect to localhost port 80 (tcp) failed: Connection refused
nc: connect to localhost port 80 (tcp) failed: Connection refused

Deployed with docker run: docker run -d --name cachet --link postgres -e DB_DRIVER=pgsql -e DB_HOST=postgres -e DB_DATABASE=REMOVED -e DB_USERNAME=postgres -e DB_PASSWORD=postgres -e APP_KEY=REMOVED -h sub.hotname.tld -d cachethq/docker:latest

Greeted by unable to reach page, and I cant connect using localhost or the hostname.

Ideas? Thanks in advance

thomasleveil commented 6 years ago

what does docker logs cachet show?

dudeisbrendan03 commented 6 years ago

Same thing:

Initializing Cachet container ...                                                                                                                                              
Attempting to connect to database ...                                                                                                                                          

Table sessions exists! ...                                                                                                                                                     
Nothing to migrate.                                                                                                                                                            
Starting Cachet! ...                                                                                                                                                           
Configuration cache cleared!                                                                                                                                                   
Configuration cached successfully!                                                                                                                                             
2018-08-16 14:22:30,918 WARN For [program:queue-worker], AUTO logging used for s                                                                                               
tderr_logfile without rollover, set maxbytes > 0 to avoid filling up filesystem                                                                                                
unintentionally                                                                                                                                                                
2018-08-16 14:22:30,923 INFO supervisord started with pid 61                                                                                                                   
2018-08-16 14:22:31,927 INFO spawned: 'nginx' with pid 64                                                                                                                      
2018-08-16 14:22:31,932 INFO spawned: 'php-fpm' with pid 65                                                                                                                    
2018-08-16 14:22:31,943 INFO spawned: 'queue-worker' with pid 66                                                                                                               
[16-Aug-2018 14:22:32] NOTICE: fpm is running, pid 65                                                                                                                          
[16-Aug-2018 14:22:32] NOTICE: ready to handle connections                                                                                                                     
2018-08-16 14:22:33,111 INFO success: nginx entered RUNNING state, process has s                                                                                               
tayed up for > than 1 seconds (startsecs)                                                                                                                                      
2018-08-16 14:22:33,111 INFO success: php-fpm entered RUNNING state, process has                                                                                               
 stayed up for > than 1 seconds (startsecs)                                                                                                                                    
2018-08-16 14:22:33,111 INFO success: queue-worker entered RUNNING state, proces                                                                                               
s has stayed up for > than 1 seconds (startsecs)                                                                                                                               
djdefi commented 6 years ago

Hmm it looks like the manual container run doc is missing the port expose switch. Try adding the following to your docker run:

-p 80:8000

dudeisbrendan03 commented 6 years ago

Give it a go, I'll message back in a second

dudeisbrendan03 commented 6 years ago

Still isn't working. Before I just exposed it after deployment

dudeisbrendan03 commented 6 years ago

Forget that, it's up now - just restarted it again. Thanks for pointing that out, have a great day!