Skip to content

Cannot launch image with a mapped data directory. #67

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

Closed
jimklo opened this issue Apr 29, 2015 · 1 comment
Closed

Cannot launch image with a mapped data directory. #67

jimklo opened this issue Apr 29, 2015 · 1 comment

Comments

@jimklo
Copy link

jimklo commented Apr 29, 2015

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
@yosifkit
Copy link
Member

Issue is a permissions problem with shared directories from host to VM in boot2docker/kitematic: boot2docker/boot2docker#581.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants