{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/2244","labels_url":"https://api.github.com/repos/rancher/rancher/issues/2244/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/2244/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/2244/events","html_url":"https://github.com/rancher/rancher/issues/2244","id":110124993,"number":2244,"title":"Installing MariaDB container / Raplicating Mysql/mariadb possible?","user":{"login":"RVN-BR","id":1218902,"avatar_url":"https://avatars.githubusercontent.com/u/1218902?v=3","gravatar_id":"","url":"https://api.github.com/users/RVN-BR","html_url":"https://github.com/RVN-BR","followers_url":"https://api.github.com/users/RVN-BR/followers","following_url":"https://api.github.com/users/RVN-BR/following{/other_user}","gists_url":"https://api.github.com/users/RVN-BR/gists{/gist_id}","starred_url":"https://api.github.com/users/RVN-BR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RVN-BR/subscriptions","organizations_url":"https://api.github.com/users/RVN-BR/orgs","repos_url":"https://api.github.com/users/RVN-BR/repos","events_url":"https://api.github.com/users/RVN-BR/events{/privacy}","received_events_url":"https://api.github.com/users/RVN-BR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-06T23:47:12Z","updated_at":"2015-10-07T00:24:52Z","closed_at":null,"body":"I'm getting the following error over and over when trying to start a mariadb image from rancher... (I'm setting the env variable with the password)...\r\n\r\n```\r\n0/6/2015 8:41:48 PM151006 23:41:48 [Note] mysqld (mysqld 10.0.21-MariaDB-1~jessie) starting as process 1 ...\r\nInvalid Date Invalid Date151006 23:41:48 [Note] InnoDB: Using mutexes to ref count buffer pool pages\r\nInvalid Date Invalid Date151006 23:41:48 [Note] InnoDB: The InnoDB memory heap is disabled\r\nInvalid Date Invalid Date151006 23:41:48 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins\r\nInvalid Date Invalid Date151006 23:41:48 [Note] InnoDB: Memory barrier is not used\r\nInvalid Date Invalid Date151006 23:41:48 [Note] InnoDB: Compressed tables use zlib 1.2.8\r\nInvalid Date Invalid Date151006 23:41:48 [Note] InnoDB: Using Linux native AIO\r\nInvalid Date Invalid Date151006 23:41:48 [Note] InnoDB: Not using CPU crc32 instructions\r\nInvalid Date Invalid Date151006 23:41:48 [Note] InnoDB: Initializing buffer pool, size = 256.0M\r\nInvalid Date Invalid DateInnoDB: mmap(274726912 bytes) failed; errno 12\r\nInvalid Date Invalid Date151006 23:41:48 [ERROR] InnoDB: Cannot allocate memory for the buffer pool\r\nInvalid Date Invalid Date151006 23:41:48 [ERROR] Plugin 'InnoDB' init function returned error.\r\nInvalid Date Invalid Date151006 23:41:48 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.\r\nInvalid Date Invalid Date151006 23:41:48 [Note] Plugin 'FEEDBACK' is disabled.\r\nInvalid Date Invalid Date151006 23:41:48 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.\r\nInvalid Date Invalid Date151006 23:41:48 [ERROR] Unknown/unsupported storage engine: InnoDB\r\nInvalid Date Invalid Date151006 23:41:48 [ERROR] Aborting\r\nInvalid Date Invalid Date\r\nInvalid Date Invalid Date151006 23:41:48 [Note] mysqld: Shutdown complete\r\nInvalid Date Invalid Date\r\nInvalid Date Invalid Date151006 23:42:01 [Note] mysqld (mysqld 10.0.21-MariaDB-1~jessie) starting as process 1 ...\r\nInvalid Date Invalid Date151006 23:42:01 [Note] InnoDB: Using mutexes to ref count buffer pool pages\r\nInvalid Date Invalid Date151006 23:42:01 [Note] InnoDB: The InnoDB memory heap is disabled\r\nInvalid Date Invalid Date151006 23:42:01 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins\r\nInvalid Date Invalid Date151006 23:42:01 [Note] InnoDB: Memory barrier is not used\r\nInvalid Date Invalid Date151006 23:42:01 [Note] InnoDB: Compressed tables use zlib 1.2.8\r\nInvalid Date Invalid Date151006 23:42:01 [Note] InnoDB: Using Linux native AIO\r\nInvalid Date Invalid Date151006 23:42:01 [Note] InnoDB: Not using CPU crc32 instructions\r\nInvalid Date Invalid Date151006 23:42:01 [Note] InnoDB: Initializing buffer pool, size = 256.0M\r\nInvalid Date Invalid DateInnoDB: mmap(274726912 bytes) failed; errno 12\r\nInvalid Date Invalid Date151006 23:42:01 [ERROR] InnoDB: Cannot allocate memory for the buffer pool\r\nInvalid Date Invalid Date151006 23:42:01 [ERROR] Plugin 'InnoDB' init function returned error.\r\nInvalid Date Invalid Date151006 23:42:01 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.\r\nInvalid Date Invalid Date151006 23:42:01 [Note] Plugin 'FEEDBACK' is disabled.\r\nInvalid Date Invalid Date151006 23:42:01 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.\r\nInvalid Date Invalid Date151006 23:42:01 [ERROR] Unknown/unsupported storage engine: InnoDB\r\nInvalid Date Invalid Date151006 23:42:01 [ERROR] Aborting\r\nInvalid Date Invalid Date\r\nInvalid Date Invalid Date151006 23:42:01 [Note] mysqld: Shutdown complete\r\nInvalid Date Invalid Date\r\nInvalid Date Invalid Date151006 23:42:27 [Note] mysqld (mysqld 10.0.21-MariaDB-1~jessie) starting as process 1 ...\r\nInvalid Date Invalid Date151006 23:42:27 [Note] InnoDB: Using mutexes to ref count buffer pool pages\r\nInvalid Date Invalid Date151006 23:42:27 [Note] InnoDB: The InnoDB memory heap is disabled\r\nInvalid Date Invalid Date151006 23:42:27 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins\r\nInvalid Date Invalid Date151006 23:42:27 [Note] InnoDB: Memory barrier is not used\r\nInvalid Date Invalid Date151006 23:42:27 [Note] InnoDB: Compressed tables use zlib 1.2.8\r\nInvalid Date Invalid Date151006 23:42:27 [Note] InnoDB: Using Linux native AIO\r\nInvalid Date Invalid Date151006 23:42:27 [Note] InnoDB: Not using CPU crc32 instructions\r\nInvalid Date Invalid Date151006 23:42:27 [Note] InnoDB: Initializing buffer pool, size = 256.0M\r\nInvalid Date Invalid DateInnoDB: mmap(274726912 bytes) failed; errno 12\r\nInvalid Date Invalid Date151006 23:42:27 [ERROR] InnoDB: Cannot allocate memory for the buffer pool\r\nInvalid Date Invalid Date151006 23:42:27 [ERROR] Plugin 'InnoDB' init function returned error.\r\nInvalid Date Invalid Date151006 23:42:27 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.\r\nInvalid Date Invalid Date151006 23:42:27 [Note] Plugin 'FEEDBACK' is disabled.\r\nInvalid Date Invalid Date151006 23:42:27 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.\r\nInvalid Date Invalid Date151006 23:42:27 [ERROR] Unknown/unsupported storage engine: InnoDB\r\nInvalid Date Invalid Date151006 23:42:27 [ERROR] Aborting\r\nInvalid Date Invalid Date\r\nInvalid Date Invalid Date151006 23:42:27 [Note] mysqld: Shutdown complete\r\nInvalid Date Invalid Date\r\nInvalid Date Invalid Date151006 23:43:19 [Note] mysqld (mysqld 10.0.21-MariaDB-1~jessie) starting as process 1 ...\r\nInvalid Date Invalid Date151006 23:43:19 [Note] InnoDB: Using mutexes to ref count buffer pool pages\r\nInvalid Date Invalid Date151006 23:43:19 [Note] InnoDB: The InnoDB memory heap is disabled\r\nInvalid Date Invalid Date151006 23:43:19 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins\r\nInvalid Date Invalid Date151006 23:43:19 [Note] InnoDB: Memory barrier is not used\r\nInvalid Date Invalid Date151006 23:43:19 [Note] InnoDB: Compressed tables use zlib 1.2.8\r\nInvalid Date Invalid Date151006 23:43:19 [Note] InnoDB: Using Linux native AIO\r\nInvalid Date Invalid Date151006 23:43:19 [Note] InnoDB: Not using CPU crc32 instructions\r\nInvalid Date Invalid Date151006 23:43:19 [Note] InnoDB: Initializing buffer pool, size = 256.0M\r\nInvalid Date Invalid DateInnoDB: mmap(274726912 bytes) failed; errno 12\r\nInvalid Date Invalid Date151006 23:43:19 [ERROR] InnoDB: Cannot allocate memory for the buffer pool\r\nInvalid Date Invalid Date151006 23:43:19 [ERROR] Plugin 'InnoDB' init function returned error.\r\nInvalid Date Invalid Date151006 23:43:19 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.\r\nInvalid Date Invalid Date151006 23:43:19 [Note] Plugin 'FEEDBACK' is disabled.\r\nInvalid Date Invalid Date151006 23:43:19 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.\r\nInvalid Date Invalid Date151006 23:43:19 [ERROR] Unknown/unsupported storage engine: InnoDB\r\nInvalid Date Invalid Date151006 23:43:19 [ERROR] Aborting\r\nInvalid Date Invalid Date\r\nInvalid Date Invalid Date151006 23:43:19 [Note] mysqld: Shutdown complete\r\nInvalid Date Invalid Date\r\nInvalid Date Invalid Date151006 23:45:02 [Note] mysqld (mysqld 10.0.21-MariaDB-1~jessie) starting as process 1 ...\r\nInvalid Date Invalid Date151006 23:45:02 [Note] InnoDB: Using mutexes to ref count buffer pool pages\r\nInvalid Date Invalid Date151006 23:45:02 [Note] InnoDB: The InnoDB memory heap is disabled\r\nInvalid Date Invalid Date151006 23:45:02 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins\r\nInvalid Date Invalid Date151006 23:45:02 [Note] InnoDB: Memory barrier is not used\r\nInvalid Date Invalid Date151006 23:45:02 [Note] InnoDB: Compressed tables use zlib 1.2.8\r\nInvalid Date Invalid Date151006 23:45:02 [Note] InnoDB: Using Linux native AIO\r\nInvalid Date Invalid Date151006 23:45:02 [Note] InnoDB: Not using CPU crc32 instructions\r\nInvalid Date Invalid Date151006 23:45:02 [Note] InnoDB: Initializing buffer pool, size = 256.0M\r\nInvalid Date Invalid DateInnoDB: mmap(274726912 bytes) failed; errno 12\r\nInvalid Date Invalid Date151006 23:45:02 [ERROR] InnoDB: Cannot allocate memory for the buffer pool\r\nInvalid Date Invalid Date151006 23:45:02 [ERROR] Plugin 'InnoDB' init function returned error.\r\nInvalid Date Invalid Date151006 23:45:02 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.\r\nInvalid Date Invalid Date151006 23:45:02 [Note] Plugin 'FEEDBACK' is disabled.\r\nInvalid Date Invalid Date151006 23:45:02 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.\r\nInvalid Date Invalid Date151006 23:45:02 [ERROR] Unknown/unsupported storage engine: InnoDB\r\nInvalid Date Invalid Date151006 23:45:02 [ERROR] Aborting\r\nInvalid Date Invalid Date\r\nInvalid Date Invalid Date151006 23:45:02 [Note] mysqld: Shutdown complete\r\nInvalid Date Invalid Date\r\n```\r\n\r\nAny ideas?\r\n\r\nAlso, is it possible/supported to have multiple mariadb or mysql instances running master/slave replication for example? how does one achieve this? I havent found anything online...\r\n\r\nthanks!\r\n\r\nPS: on the latest 0.40 I read in the release notes there would be a dockerfile interface to add docker-compose and rancher-compose straight through the web gui, but didnt find that? is that on there?\r\n\r\nthanks"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/146042948","html_url":"https://github.com/rancher/rancher/issues/2244#issuecomment-146042948","issue_url":"https://api.github.com/repos/rancher/rancher/issues/2244","id":146042948,"user":{"login":"vincent99","id":753917,"avatar_url":"https://avatars.githubusercontent.com/u/753917?v=3","gravatar_id":"","url":"https://api.github.com/users/vincent99","html_url":"https://github.com/vincent99","followers_url":"https://api.github.com/users/vincent99/followers","following_url":"https://api.github.com/users/vincent99/following{/other_user}","gists_url":"https://api.github.com/users/vincent99/gists{/gist_id}","starred_url":"https://api.github.com/users/vincent99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincent99/subscriptions","organizations_url":"https://api.github.com/users/vincent99/orgs","repos_url":"https://api.github.com/users/vincent99/repos","events_url":"https://api.github.com/users/vincent99/events{/privacy}","received_events_url":"https://api.github.com/users/vincent99/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T00:24:52Z","updated_at":"2015-10-07T00:24:52Z","body":"Do you have a memory limit set on the container or running on a very small VM?  The critical lines are:\r\n\r\n```\r\n[Note] InnoDB: Initializing buffer pool, size = 256.0M\r\nInnoDB: mmap(274726912 bytes) failed; errno 12\r\n[ERROR] InnoDB: Cannot allocate memory for the buffer pool\r\n```\r\n\r\ni.e. the database is running out of memory and failing to startup.\r\n\r\nThe rancher/server image starts up a database to make it as simple as possible to install.  It is possible to do master/slave, multi-master clusters, etc, but if you want to do anything beyond standard you're better off running your own separate database container.  You can tell Rancher/Cattle where to find it by adding a \"mysql\" link, or using the environment variables described in database parts of the [HA setup docs](http://docs.rancher.com/rancher/installing-rancher/installing-server/multi-nodes/).  If either are specified it will not startup the internal default database server.\r\n\r\nCompose import is on the screen for adding a new Stack.  You can only use it when adding a new stack at this time."}}