A user reported that running ./launcher rebuild fails with a PostgreSQL startup error, preventing the schema from changing. The issue stems from the database not being ready when the command executes. The user clarified they are using the standalone template on CentOS 7 within an OpenVZ container, with the database named “discourse”.
Support staff identified that the Docker storage driver is the root cause. The user’s docker info output showed the storage driver is vfs, which is known to be unsupported and problematic for Docker, particularly in OpenVZ environments. The recommended drivers are AUFS or overlayfs.
In response to this recurring issue, a developer confirmed that vfs (and devicemapper) are broken and that the project is implementing stricter checks in the bootstrap process to prevent users from proceeding with incompatible storage drivers. A commit was shared to enforce these warnings, ensuring the system does not start if the filesystem is not compatible sam.
If you are using different containers for db and web, maybe ensure that the db container is started first and the startup of the web container is delayed to account for that?
Yes I call it “discourse” because it is running together with many other containers. Having it named just “app” feels like calling my girl friend something like - “girl friend” Install went well and it runs well too. Just the rebuild does fail. Should this be because I do not call it “app”?
I’m using CentOS 7 on the host because the host itself is an OpenVZ container. My tests with Ubuntu did not worked well so I went the CentOS road because that’s what OpenVZ supports best. So far no problems using this setup.
Digging into this a little more, the only viable practical options are
AUFS
overlayfs
Unfortunately, AUFS is not part of the kernel and will never be, overlayfs looks like it will make it into the kernel, but could be bleeding edge at the moment.
@sam is adding better protection for this in the bootstrap step – we really can’t proceed if the filesystem is not one that is known to be compatible with Docker. Too many support issues..