Unable to start the owncloud docker container- Read-only file system error


#1

When I try to start the owncloud docker container, I’m getting the following error:

/etc/owncloud.d/20-config.sh: line 39: /mnt/data/config/database.config.php: Read-only file system

It normally starts the web application, but at the moment it is keep on restarting.

root:/opt/owncloud-docker-server# docker ps
CONTAINER ID        IMAGE                    COMMAND                  CREATED             STATUS                              PORTS                           NAMES
c1d8bc444dcf        owncloud/server:10.0     "/usr/bin/entrypoint "   8 minutes ago       Restarting (1) About a minute ago   443/tcp, 0.0.0.0:8008->80/tcp   ownclouddockerserver_owncloud_1

Current permission of /mnt/data is www-data:www-data

root# ls -la /mnt/
total 12
drwxr-xr-x  3 root     root     4096 Aug 22 08:09 .
drwxr-xr-x 22 root     root     4096 Sep 29  2016 ..
drwxr-xr-x  8 www-data www-data 4096 Sep 13 08:53 data

I’m using the default owncloud installation (.yml) file from the official website


#2

Please execute

docker-compose down -v

and

docker-compose up -d

Let me know what happens :slight_smile:


#3

Hello @dmitry ,

Thanks for the update. But it didn’t help me out.

I have to unmount the partition manually and then do an fsck.
After that I mounted it back and started the docker containers.


#4

Is there any reason for the owncloud file system to get write-protected(read-only) intermittently, thereby which the owncloud docker doesn’t start.

It has occurred to me multiple times now.

Any thoughts?