Mounted rancher on another server and copied the data following the steps in this page.
started rancher with docker run -d -v /var/lib/docker/volumes/rancher-data/_data/:/var/lib/mysql -p 8080:8080 --restart=unless-stopped rancher/server:latest
Now it keeps on restarting. Rancher logs shows;
“171102 12:32:03 [Note] /usr/sbin/mysqld (mysqld 5.5.53-0ubuntu0.14.04.1) starting as process 26 …
s6-svscanctl: fatal: unable to control /service: supervisor not listening”
Container logs show;
171101 19:48:57 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
171101 19:48:57 [Note] Plugin ‘FEDERATED’ is disabled.
^G/usr/sbin/mysqld: Can’t find file: ‘./mysql/plugin.frm’ (errno: 13)
171101 19:48:57 [ERROR] Can’t open the mysql.plugin table. Please run mysql_upgrade to create it.
171101 19:48:57 InnoDB: The InnoDB memory heap is disabled
171101 19:48:57 InnoDB: Mutexes and rw_locks use GCC atomic builtins
171101 19:48:57 InnoDB: Compressed tables use zlib 1.2.8
171101 19:48:57 InnoDB: Using Linux native AIO
171101 19:48:57 InnoDB: Initializing buffer pool, size = 128.0M
171101 19:48:57 InnoDB: Completed initialization of buffer pool
171101 19:48:57 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.
InnoDB: File name ./ibdata1
InnoDB: File operation call: ‘create’.
InnoDB: Cannot continue operation.
I compared the rights to another fresh install with new data and everything is the same.
Thanks for your help