dokku / dokku-mariadb

a mariadb plugin for dokku
MIT License
75 stars 26 forks source link

Error while trying to setup backup - Container is restarting #60

Closed Richard87 closed 7 years ago

Richard87 commented 7 years ago

Hi,

I am just getting started with Dokku and MariaDb, and I tried to take a backup, but got the error:

Error response from daemon: Container ac223eb28ab6936df0b073772efbf34a281da0c2eXXXXXXXXXXXXXXXXX is restarting, wait until the container is running

Also, the error messages is messing up the console:

root@dokku:~# dokku mariadb:backup appmakers appmakers2
Error response from daemon: Container ac223eb28ab6936df0b073772efbf34a281da0c2eXXXXXXXXXXXXXXXXX is restarting, wait until the container is running
                                                                                                                                                        root@dokku:~# dokku mariadb:backup appmakers appmakers2
                                                                                                                                                                                                                Error response from daemon: Container ac223eb28ab6936df0b073772efbf34a281da0c2eXXXXXXXXXXXXXXXXX is restarting, wait until the container is running
                                                                                                                                                    root@dokku:~# dokku mariadb:backup appmakers appmakers2
                                                                                                                                                                                                            Error response from daemon: Container ac223eb28ab6936df0b073772efbf34a281da0c2eXXXXXXXXXXXXXXXXX is restarting, wait until the container is running
                                                                                                                                                root@dokku:~#

Any help would be gratly appreciated :)

josegonzalez commented 7 years ago

Since this is on your local box, no need to "sanitize" the container id.

What is the output of

docker logs ac223eb28ab6936df0b073772efbf34a281da0c2eXXXXXXXXXXXXXXXXX
Richard87 commented 7 years ago

Ahh, thanks, also thanks for an incredibly fast response!

2016-12-23 19:12:42 139982667986880 [Note] mysqld (mysqld 10.1.16-MariaDB-1~jessie) starting as process 1 ...
2016-12-23 19:12:42 139982667986880 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-12-23 19:12:42 139982667986880 [Note] InnoDB: The InnoDB memory heap is disabled
2016-12-23 19:12:42 139982667986880 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-12-23 19:12:42 139982667986880 [Note] InnoDB: Memory barrier is not used
2016-12-23 19:12:42 139982667986880 [Note] InnoDB: Compressed tables use zlib 1.2.8
2016-12-23 19:12:42 139982667986880 [Note] InnoDB: Using Linux native AIO
2016-12-23 19:12:42 139982667986880 [Note] InnoDB: Using SSE crc32 instructions
2016-12-23 19:12:42 139982667986880 [Note] InnoDB: Initializing buffer pool, size = 256.0M
InnoDB: mmap(281542656 bytes) failed; errno 12
2016-12-23 19:12:42 139982667986880 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2016-12-23 19:12:42 139982667986880 [ERROR] Plugin 'InnoDB' init function returned error.
2016-12-23 19:12:42 139982667986880 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-12-23 19:12:42 139982667986880 [Note] Plugin 'FEEDBACK' is disabled.
2016-12-23 19:12:42 139982667986880 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2016-12-23 19:12:42 139982667986880 [ERROR] Unknown/unsupported storage engine: InnoDB
2016-12-23 19:12:42 139982667986880 [ERROR] Aborting

Hmm, that log is doesn't look so good :/

Richard87 commented 7 years ago

I upped the memory limit on the vps from 512mb to 2gb, and had to recreate the mariadb database, then it worked like a charm! :+1: