StorminStanley / st2workroom

Vagrant environment used to play with StackStorm, develop StackStorm for your environment, or develop on StackStorm itself!
Apache License 2.0
23 stars 21 forks source link

Mongo docker image doesn't come up in CentOS #336

Closed lakshmi-kannan closed 7 years ago

lakshmi-kannan commented 8 years ago
[root@localhost ~]# sudo service docker-mongo status
Redirecting to /bin/systemctl status  docker-mongo.service
● docker-mongo.service - Daemon for mongo
  Loaded: loaded (/etc/systemd/system/docker-mongo.service; enabled; vendor preset: disabled)
  Active: failed (Result: start-limit) since Wed 2016-01-27 16:02:51 CST; 5min ago
 Process: 5254 ExecStop=/usr/bin/docker stop mongo (code=exited, status=0/SUCCESS)
 Process: 5203 ExecStart=/usr/bin/docker run --net bridge -m 0b --volumes-from mongodata -p 127.0.0.1:27017:27017 --name mongo mongo (code=exited, status=1/FAILURE)
 Process: 5179 ExecStartPre=/usr/bin/docker rm mongo (code=exited, status=0/SUCCESS)
 Process: 5175 ExecStartPre=/usr/bin/docker kill mongo (code=exited, status=1/FAILURE)
Main PID: 5203 (code=exited, status=1/FAILURE)

Jan 27 16:02:51 localhost.tidalsoft.local systemd[1]: Unit docker-mongo.service entered failed state.
Jan 27 16:02:51 localhost.tidalsoft.local systemd[1]: docker-mongo.service failed.
Jan 27 16:02:51 localhost.tidalsoft.local systemd[1]: docker-mongo.service holdoff time over, scheduling restart.
Jan 27 16:02:51 localhost.tidalsoft.local systemd[1]: start request repeated too quickly for docker-mongo.service
Jan 27 16:02:51 localhost.tidalsoft.local systemd[1]: Failed to start Daemon for mongo.
Jan 27 16:02:51 localhost.tidalsoft.local systemd[1]: Unit docker-mongo.service entered failed state.
Jan 27 16:02:51 localhost.tidalsoft.local systemd[1]: docker-mongo.service failed.

Reported by: satyababu on slack.

lakshmi-kannan commented 8 years ago

OS version: CentOS 7. Installed using: curl install.stackstorm.com | sudo sh

jiang-wei commented 8 years ago

I got the same problem with st2 1.3.0.12 In modules/profile/manifests/mongodb.pp, docker::image { 'mongo' doesn't trigger exec { 'create mongodb data container' when the mongo image exists. am not a puppet expert. don't know the reason.

jiang-wei commented 8 years ago

I hope this PR may help

jiang-wei commented 8 years ago

@lakshmi-kannan could you check my PR of fixing the mongo issue?