spring-attic/scripts

docker-compose failure

Closed this issue · 1 comments

Docker compose sometimes spits back this message:

rabbitmq_1 | /usr/lib/rabbitmq/bin/rabbitmq-server: 42: /usr/lib/rabbitmq/bin/rabbitmq-server: cannot create /data/mnesia/rabbit@78dcae9ff94c.pid: Permission denied
redis_1    | [1] 03 Apr 17:04:22.583 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1    |                 _._
redis_1    |            _.-``__ ''-._
redis_1    |       _.-``    `.  `_.  ''-._           Redis 2.8.19 (00000000/0) 64 bit
redis_1    |   .-`` .-```
.  
```\/    _.,_ ''-._
redis_1    |  (    '      ,       .-`  | `,    )     Running in stand alone mode
redis_1    |  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
redis_1    |  |    `-._   `._    /     _.-'    |     PID: 1
redis_1    |   `-._    `-._  `-./  _.-'    _.-'
redis_1    |  |`-._`-._    `-.__.-'    _.-'_.-'|
redis_1    |  |    `-._`-._        _.-'_.-'    |           http://redis.io
redis_1    |   `-._    `-._`-.__.-'_.-'    _.-'
redis_1    |  |`-._`-._    `-.__.-'    _.-'_.-'|
redis_1    |  |    `-._`-._        _.-'_.-'    |
redis_1    |   `-._    `-._`-.__.-'_.-'    _.-'
redis_1    |       `-._    `-.__.-'    _.-'
redis_1    |           `-._        _.-'
redis_1    |               `-.__.-'
redis_1    |
redis_1    | [1] 03 Apr 17:04:22.584 # Server started, Redis version 2.8.19
redis_1    | [1] 03 Apr 17:04:22.584 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1    | [1] 03 Apr 17:04:22.584 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1    | [1] 03 Apr 17:04:22.584 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1    | [1] 03 Apr 17:04:22.590 * DB loaded from disk: 0.006 seconds
redis_1    | [1] 03 Apr 17:04:22.590 * The server is now ready to accept connections on port 6379
scripts_rabbitmq_1 exited with code 2
Gracefully stopping... (press Ctrl+C again to force)
Stopping scripts_redis_1...
Stopping scripts_mongodb_1...

When that happens, you must remove data_rabbit and data_mongo directories.

We should update the readme..

I fixed the docker-compose.yml not to use a local directory for data volumes (not sure what I was thinking the first time). Should be much smoother now.