Steps to reproduce
- Brand new installation of Ubuntu 18.04
- Followed the official instructions on to set up docker and docker-compose
- Followed instructions here to set up the yaml and .env file
- Run docker-compose up -d
Expected behaviour
ownCloud starts normally
Actual behaviour
ownCloud remains inaccessible after a while. docker ps
shows the following:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fa2fe7d547eb owncloud/server:10.3 “/usr/bin/entrypoint…” 14 minutes ago Up 2 minutes (health: starting) 0.0.0.0:8080->8080/tcp owncloud-docker-server_owncloud_1
27875de54373 webhippie/mariadb:latest “/usr/bin/entrypoint…” 14 minutes ago Up 14 minutes (unhealthy) 3306/tcp owncloud-docker-server_db_1
e0f7ae9bdcde webhippie/redis:latest “/usr/bin/entrypoint…” 14 minutes ago Up 14 minutes (healthy) 6379/tcp owncloud-docker-server_redis_1`
In addition, the following log entries seems to be suspicious
db_1 | > finished mysql_install_db
db_1 | > starting mariadb service
db_1 | 191208 22:02:33 mysqld_safe Logging to ‘/var/lib/mysql/27875de54373.err’.
db_1 | 191208 22:02:33 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
db_1 | > writing mariadb config
db_1 | gomplate version 3.1.0, build 2f357bd5 (2018-11-30T02:51:11Z)
db_1 | config is:
db_1 | input: /etc/templates/my.cnf.tmpl
db_1 | output: /etc/mysql/my.cnf
db_1 |
db_1 | rendered 1 template(s) with 0 error(s) in 1.106613ms
db_1 | > chown data directory
db_1 | > running mysql_install_db…
db_1 | Installing MariaDB/MySQL system tables in ‘/var/lib/mysql’ …
db_1 | 2019-12-08 22:02:35 0 [ERROR] InnoDB: The Auto-extending innodb_system data file ‘/var/lib/mysql/ibdata1’ is of a different size 0 pages than specified in the .cnf file: initial 640 pages, max 0 (relevant if non-zero) pages!
db_1 | 2019-12-08 22:02:35 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
db_1 | 2019-12-08 22:02:36 0 [ERROR] Plugin ‘InnoDB’ init function returned error.
db_1 | 2019-12-08 22:02:36 0 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
db_1 | 2019-12-08 22:02:36 0 [ERROR] Unknown/unsupported storage engine: InnoDB
db_1 | 2019-12-08 22:02:36 0 [ERROR] Aborting
db_1 | cat: write error: Broken pipe
db_1 | cat: write error: Broken pipe
db_1 | cat: write error: Broken pipe
db_1 | cat: write error: Broken pipe
db_1 |
db_1 | Installation of system tables failed! Examine the logs in
db_1 | /var/lib/mysql for more information.
db_1 |
db_1 | The problem could be conflicting information in an external
db_1 | my.cnf files. You can ignore these by doing:
db_1 |
db_1 | shell> /usr/bin/mysql_install_db --defaults-file=~/.my.cnf
db_1 |
db_1 | You can also try to start the mysqld daemon with:
db_1 |
db_1 | shell> /usr/bin/mysqld --skip-grant-tables --general-log &
db_1 |
db_1 | and use the command line tool /usr/bin/mysql
db_1 | to connect to the mysql database and look at the grant tables:
db_1 |
db_1 | shell> /usr/bin/mysql -u root mysql
db_1 | mysql> show tables;
db_1 |
db_1 | Try ‘mysqld --help’ if you have problems with paths. Using
db_1 | --general-log gives you a log in /var/lib/mysql that may be helpful.`
The docker-compose.yml file and .env file is untouched.
Any help would be appreciated!