Skip to content

Cannot launch image with a mapped data directory. #67

Closed
@jimklo

Description

@jimklo

My complete script to reproduce is here: https://gist.github.com/c10bc18fbebc77cb00e1

When using the -v /data/path/to/mysql:/var/lib/mysql, I'm getting the following error shown below using Kitematic's docker shell. Omitting the -v argument permits the image to run. Not sure how to use this image with an externally mapped data directory.

Log

2015-04-29 16:46:11 0 [Note] mysqld (mysqld 5.6.24) starting as process 1 ...
2015-04-29 16:46:11 1 [Warning] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive
2015-04-29 16:46:11 1 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Table 'mysql.plugin' doesn't exist
2015-04-29 16:46:11 1 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2015-04-29 16:46:11 1 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-04-29 16:46:11 1 [Note] InnoDB: The InnoDB memory heap is disabled
2015-04-29 16:46:11 1 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-04-29 16:46:11 1 [Note] InnoDB: Memory barrier is not used
2015-04-29 16:46:11 1 [Note] InnoDB: Compressed tables use zlib 1.2.7
2015-04-29 16:46:11 1 [Note] InnoDB: Using Linux native AIO
2015-04-29 16:46:11 1 [Note] InnoDB: Not using CPU crc32 instructions
2015-04-29 16:46:11 1 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-04-29 16:46:11 1 [Note] InnoDB: Completed initialization of buffer pool
2015-04-29 16:46:11 7f0e64972720  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
2015-04-29 16:46:11 7f0e64972720  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
2015-04-29 16:46:11 1 [ERROR] InnoDB: Creating or opening ./ibdata1 failed!
2015-04-29 16:46:11 1 [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!
2015-04-29 16:46:11 1 [ERROR] Plugin 'InnoDB' init function returned error.
2015-04-29 16:46:11 1 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-04-29 16:46:11 1 [ERROR] Unknown/unsupported storage engine: InnoDB
2015-04-29 16:46:11 1 [ERROR] Aborting

2015-04-29 16:46:11 1 [Note] Binlog end
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'partition'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'BLACKHOLE'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'ARCHIVE'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_METRICS'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_CMPMEM'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_CMP'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_LOCKS'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'INNODB_TRX'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'MEMORY'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'CSV'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'MRG_MYISAM'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'MyISAM'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'sha256_password'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'mysql_old_password'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'mysql_native_password'
2015-04-29 16:46:11 1 [Note] Shutting down plugin 'binlog'
2015-04-29 16:46:11 1 [Note] mysqld: Shutdown complete

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions