Discourse containner often down unexpectedly


(Yedward) #1

Install discourse in docker by this guide :GitHub - discourse/discourse_docker: A Docker image for Discourse

After a short time running, the containner often down unexpectedly。

By run docker logs,that shows:

run-parts: executing /etc/runit/1.d/00-ensure-links
run-parts: executing /etc/runit/1.d/00-fix-var-logs
run-parts: executing /etc/runit/1.d/anacron
run-parts: executing /etc/runit/1.d/cleanup-pids
Cleaning stale PID files
run-parts: executing /etc/runit/1.d/copy-env
run-parts: executing /etc/runit/1.d/enable-brotli
Started runsvdir, PID is 36
rsyslogd: command 'KLogPermitNonKernelFacility' is currently not permitted - did you already set it via a RainerScript command (v6+ config)? [v8.16.0 try http://www.rsyslog.com/e/2222 ]
rsyslogd: imklog: cannot open kernel log (/proc/kmsg): Operation not permitted.
rsyslogd: activation of module imklog failed [v8.16.0 try http://www.rsyslog.com/e/2145 ]
rsyslogd: Could not open output pipe '/dev/xconsole':: No such file or directory [v8.16.0 try http://www.rsyslog.com/e/2039 ]
supervisor pid: 43 unicorn pid: 57
Shutting Down
run-parts: executing /etc/runit/3.d/01-nginx
ok: down: nginx: 0s, normally up
run-parts: executing /etc/runit/3.d/02-unicorn
exiting
ok: down: unicorn: 1s, normally up
When using programs that use GNU Parallel to process data for publication please cite:

  O. Tange (2011): GNU Parallel - The Command-Line Power Tool,
  ;login: The USENIX Magazine, February 2011:42-47.

This helps funding further development; and it won't cost you a cent.
Or you can get GNU Parallel without this requirement by paying 10000 EUR.

To silence this citation notice run 'parallel --bibtex' once or use '--no-notice'.

ok: down: nginx: 1s, normally up
ok: down: unicorn: 1s, normally up
ok: down: cron: 0s, normally up
ok: down: rsyslog: 0s, normally up
run-parts: executing /etc/runit/1.d/00-ensure-links
run-parts: executing /etc/runit/1.d/00-fix-var-logs
run-parts: executing /etc/runit/1.d/anacron
run-parts: executing /etc/runit/1.d/cleanup-pids
Cleaning stale PID files
run-parts: executing /etc/runit/1.d/copy-env
run-parts: executing /etc/runit/1.d/enable-brotli
Started runsvdir, PID is 31
rsyslogd: command 'KLogPermitNonKernelFacility' is currently not permitted - did you already set it via a RainerScript command (v6+ config)? [v8.16.0 try http://www.rsyslog.com/e/2222 ]
rsyslogd: imklog: cannot open kernel log (/proc/kmsg): Operation not permitted.
rsyslogd: activation of module imklog failed [v8.16.0 try http://www.rsyslog.com/e/2145 ]
rsyslogd: Could not open output pipe '/dev/xconsole':: No such file or directory [v8.16.0 try http://www.rsyslog.com/e/2039 ]
supervisor pid: 37 unicorn pid: 52
config/unicorn_launcher: line 44: kill: (52) - No such process
config/unicorn_launcher: line 10: kill: (52) - No such process
exiting
supervisor pid: 75 unicorn pid: 78
config/unicorn_launcher: line 44: kill: (78) - No such process
config/unicorn_launcher: line 10: kill: (78) - No such process
exiting
supervisor pid: 101 unicorn pid: 104
config/unicorn_launcher: line 44: kill: (104) - No such process
config/unicorn_launcher: line 10: kill: (104) - No such process
exiting
supervisor pid: 127 unicorn pid: 130
config/unicorn_launcher: line 44: kill: (130) - No such process
config/unicorn_launcher: line 10: kill: (130) - No such process
exiting
supervisor pid: 153 unicorn pid: 156
config/unicorn_launcher: line 44: kill: (156) - No such process
config/unicorn_launcher: line 10: kill: (156) - No such process
exiting
supervisor pid: 179 unicorn pid: 182
config/unicorn_launcher: line 44: kill: (182) - No such process
config/unicorn_launcher: line 10: kill: (182) - No such process
exiting
supervisor pid: 205 unicorn pid: 208
config/unicorn_launcher: line 44: kill: (208) - No such process
config/unicorn_launcher: line 10: kill: (208) - No such process
exiting
supervisor pid: 231 unicorn pid: 234
config/unicorn_launcher: line 44: kill: (234) - No such process
config/unicorn_launcher: line 10: kill: (234) - No such process
exiting
supervisor pid: 257 unicorn pid: 260
config/unicorn_launcher: line 44: kill: (260) - No such process
config/unicorn_launcher: line 10: kill: (260) - No such process
exiting
supervisor pid: 283 unicorn pid: 286
config/unicorn_launcher: line 44: kill: (286) - No such process
config/unicorn_launcher: line 10: kill: (286) - No such process
exiting
supervisor pid: 309 unicorn pid: 312
Shutting Down
run-parts: executing /etc/runit/3.d/01-nginx
ok: down: nginx: 0s, normally up
run-parts: executing /etc/runit/3.d/02-unicorn
config/unicorn_launcher: line 10: kill: (312) - No such process
exiting
ok: down: unicorn: 0s, normally up
When using programs that use GNU Parallel to process data for publication please cite:

  O. Tange (2011): GNU Parallel - The Command-Line Power Tool,
  ;login: The USENIX Magazine, February 2011:42-47.

This helps funding further development; and it won't cost you a cent.
Or you can get GNU Parallel without this requirement by paying 10000 EUR.

To silence this citation notice run 'parallel --bibtex' once or use '--no-notice'.

ok: down: nginx: 1s, normally up
ok: down: unicorn: 1s, normally up
ok: down: cron: 0s, normally up
ok: down: rsyslog: 0s, normally up
run-parts: executing /etc/runit/1.d/00-ensure-links
run-parts: executing /etc/runit/1.d/00-fix-var-logs
run-parts: executing /etc/runit/1.d/anacron
run-parts: executing /etc/runit/1.d/cleanup-pids
Cleaning stale PID files
run-parts: executing /etc/runit/1.d/copy-env
run-parts: executing /etc/runit/1.d/enable-brotli
Started runsvdir, PID is 31
rsyslogd: command 'KLogPermitNonKernelFacility' is currently not permitted - did you already set it via a RainerScript command (v6+ config)? [v8.16.0 try http://www.rsyslog.com/e/2222 ]
rsyslogd: imklog: cannot open kernel log (/proc/kmsg): Operation not permitted.
rsyslogd: activation of module imklog failed [v8.16.0 try http://www.rsyslog.com/e/2145 ]
rsyslogd: Could not open output pipe '/dev/xconsole':: No such file or directory [v8.16.0 try http://www.rsyslog.com/e/2039 ]
supervisor pid: 36 unicorn pid: 52
Reopening logs

My host machine is Centos 7,4U 16G,docker version is 17.06.2-ce。


(Rafael dos Santos Silva) #2

What does docker info output.


(Yedward) #3
Containers: 12
 Running: 11
 Paused: 0
 Stopped: 1
Images: 14
Server Version: 17.06.2-ce
Storage Driver: overlay
 Backing Filesystem: extfs
 Supports d_type: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins: 
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 6e23458c129b551d5c9871e5174f6b1b7f6d1170
runc version: 810190ceaa507aa2727d7ae6f4790c76ec150bd2
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 3.10.0-514.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15GiB
Name: ecs-2e1f
ID: DA4L:RN4H:GYMJ:IINV:KYTB:47KU:CSAH:E7TS:QZ4Z:7RNU:GJDF:QP42
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

(Rafael dos Santos Silva) #4

I’m not sure what is the issue (since logs gave us nothing), but overlay isn’t a supported StorageDriver on CentOS.

Since VFS sucks, you are pretty much between setting up a correctly backed devicemapper or switching distros. Switching distros sounds easier.