docker4drupal icon indicating copy to clipboard operation
docker4drupal copied to clipboard

Unable to start Maria DB

Open benbunk opened this issue 9 years ago • 3 comments

I don't fully understand why but MariaDB suddenly stopped booting for me (error messages at the bottom of this post) but apparently I ran out of space for the volume or the volume wasn't mounting properly. Stack Overflow had the answer so I wanted to share it here and save anyone else some trouble with this. If anyone thinks this information is worth adding to the Documentation I am happy to submit a PR.

The resource that gave me the solution was on stack overflow here, Docker Error No Space Left on Device

Cleaning up "Dangling" volumes resolved the issue for me with the command from the post: docker volume rm $(docker volume ls -qf dangling=true)

The error messages I was getting are as follows:

mariadb_1  | 2017-03-10 15:42:09 140455990131528 [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 0 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
mariadb_1  | 2017-03-10 15:42:09 140455990131528 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
mariadb_1  | 2017-03-10 15:42:09 140455990131528 [ERROR] Plugin 'InnoDB' init function returned error.
mariadb_1  | 2017-03-10 15:42:09 140455990131528 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
mariadb_1  | 2017-03-10 15:42:09 140455990131528 [Note] Plugin 'FEEDBACK' is disabled.
mariadb_1  | 2017-03-10 15:42:09 140455990131528 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
mariadb_1  | 2017-03-10 15:42:09 140455990131528 [ERROR] Unknown/unsupported storage engine: InnoDB
mariadb_1  | 2017-03-10 15:42:09 140455990131528 [ERROR] Aborting

benbunk avatar Mar 10 '17 15:03 benbunk

Looks like you were just out of free space in your /var. With docker 1.13 there's a new command docker system prune which we clean up volumes, images and containers for you.

csandanov avatar Mar 13 '17 03:03 csandanov

@csandanov I thought I was out of space on /var but I was confused when I noticed that my volume had more than 60 GB available. Does docker do something special with reserving space on /var that would ignore the available space on the volume it is mounted from?

Thanks for the prune command! I'll try that next time.

benbunk avatar Mar 13 '17 17:03 benbunk

I'm closing this issue because no space left on device isn't d4d error.

csandanov avatar May 31 '17 15:05 csandanov