For some reason it appears my discourse/docker instance crashed and trying to start the app with launcher start app results in:
starting up existing container
+ /usr/bin/docker start app
app
but then visiting the site I have a completely blank screen
Then trying a launcher rebuild app results in the following error message:
Ensuring discourse docker is up to date
Fetching origin
Discourse Docker is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 10 app
app
(<unknown>): found character that cannot start any token while scanning for the next token at line 86 column 1 -e LANG=en_US.UTF-8
YAML syntax error. Please check your /var/discourse/containers/*.yml config files.
I’ve looked at my app.yaml and I’m not sure what is wrong?
The lines at that part of the config are:
env:
LANG: en_US.UTF-8
## TODO: How many concurrent web requests are supported?
## With 2GB we recommend 3-4 workers, with 1GB only 2
UNICORN_WORKERS: 2
##
Any troubleshooting ideas greatly appreciated as our site is completely offline now
edit
I’ve also run full apt-get updates/dist-upgrade etc and updated all packages to latest. Actually the service did finally manage to start, but I’m still unable to rebuild the app due to the above error.
ok As it turns out, our log files were completely filling up the server disk space, our docker instance’s access.log ended up taking up a whopping 17gb! I found this thread: Docker install allows nginx log files to keep growing?
Which recommends a git pull and rebuild, which is what I’ve been trying to accomplish anyhow, so any tips would still be greatly appreciated!
Another unfortunate disk space hog I noticed was /var/lib/docker/aufs with a huge 13.4gb, so combined these two directories are using over 30gb of disk space =\
Ah right you are, it’s so strange because the console was reporting the
offending LANG: en_US.UTF-8 (which was on line 36), yet accurately the
incorrect tabspacing on line 86.
Worked perfectly and this freed 22gb of space on our server!