-
Notifications
You must be signed in to change notification settings - Fork 444
datadir volume causes container to stop from starting #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Issue seems to be related to your environment, I can't reproduce using mariadb:10.3 This is your exact issue with solution: docker-library/mysql#371 (comment) version: '2.4'
services:
mysql_db:
image: mariadb:10.3
environment:
MYSQL_ROOT_PASSWORD: toor
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: test
volumes:
- ./store/maria-db:/var/lib/mysql
command: 'mysqld --innodb-flush-method=fsync'
ports:
- 3306:3306 $ docker-compose up -d
Pulling mysql_db (mariadb:10.3)...
10.3: Pulling from library/mariadb
Digest: sha256:b7894bd08e5752acdd41fea654cb89467c99e67b8293975bb5d787b27e66ce1a
Status: Downloaded newer image for mariadb:10.3
Recreating mariadb-200_mysql_db_1 ... done
$ docker-compose down
Stopping mariadb-200_mysql_db_1 ...
^CERROR: Aborting.
$ docker-compose down
Removing mariadb-200_mysql_db_1 ... done
Removing network mariadb-200_default
$ docker-compose up -d
Creating network "mariadb-200_default" with the default driver
Creating mariadb-200_mysql_db_1 ... done
$ docker-compose logs | tail -n 3
mysql_db_1 | 2018-09-13 0:53:04 0 [Note] Added new Master_info '' to hash table
mysql_db_1 | 2018-09-13 0:53:04 0 [Note] mysqld: ready for connections.
mysql_db_1 | Version: '10.3.9-MariaDB-1:10.3.9+maria~bionic' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
$ ls ./store/maria-db/
aria_log.00000001 ibdata1 ibtmp1 performance_schema/
aria_log_control ib_logfile0 multi-master.info tc.log
ib_buffer_pool ib_logfile1 mysql/ test/ |
@wglambert I followed the solution given in the other issue you mentioned. Here is the output running 1. Ran the solution with mysql docker image (as per docker-library/mysql#371 (comment)) Log attached: mysql-latest.log - worked fine accepts connections. 2. Ran the Contents of
Log attached: mariadb-latest.log - tried init process and failed. Note: I removed all files in If there is any switch I can pass to mariadb container for better logging that would be perfect, currently it just shows My
|
@wglambert I get this could be related to my docker-machine setup (running parallels), etc. I still would like to understand the why >mariadb:10.0.28 images are specifically breaking. Were you running that docker-compose test on virtual box (boot2docker) or on linux box with docker-engine? |
Related issues: docker-library/percona#42, #95. And maybe this workaround: #38 (comment) |
I imagine there was probably a change made in 10.0.28 that doesn't support the quirks of the shared filesystem Docker has implemented. Seeing as how there's not really anything we can do here (any changes or fixes would need to happen in MariaDB itself), I'm going to close. |
Issue:
MariaDB docker image consistently fails to start for all versions after "v10.0.28" when trying to mount a host volume as the datadir.
I did test almost all the docker images currently available in https://hub.docker.com/r/library/mariadb/tags/ the only ones I can start successfully are v10.0.27 and .28
Platform:
part of the
docker-compose.yml
which has the mariadb service mapping.docker-compose.yml
Logs:
Samples of failing versions
10.0.30.log
10.2.17.log
10.3.9.log
Working version:
10.0.28.working.log
The text was updated successfully, but these errors were encountered: