Hi,
I have created a docker container of mariadb and the DB path /var/lib/mysql is mounted on the local host so that the DB data becomes persistant.
Now when I try to upgrade the container below is the error in the new container.
> > > # kubectl logs tr069adapter-7b776c7c9-ptr4m -c tr069adapter-mariadb
> > > 2019-10-14 11:04:28 0 [Note] mysqld (mysqld 10.4.7-MariaDB-1:10.4.7+maria~bionic) starting as process 1 ...
> > > 2019-10-14 11:04:28 0 [ERROR] mysqld: Can't lock aria control file '/var/lib/mysql/aria_log_control' for exclusive use, error: 11. Will retry for 30 seconds
> > > 2019-10-14 11:04:59 0 [ERROR] mysqld: Got error 'Could not get an exclusive lock; file is probably in use by another process' when trying to use aria control file '/var/lib/mysql/aria_log_control'
> > > 2019-10-14 11:04:59 0 [ERROR] Plugin 'Aria' init function returned error.
> > > 2019-10-14 11:04:59 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
> > > 2019-10-14 11:04:59 0 [Note] InnoDB: Using Linux native AIO
> > > 2019-10-14 11:04:59 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
> > > 2019-10-14 11:04:59 0 [Note] InnoDB: Uses event mutexes
> > > 2019-10-14 11:04:59 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
> > > 2019-10-14 11:04:59 0 [Note] InnoDB: Number of pools: 1
> > > 2019-10-14 11:04:59 0 [Note] InnoDB: Using SSE2 crc32 instructions
> > > 2019-10-14 11:04:59 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
> > > 2019-10-14 11:04:59 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
> > > 2019-10-14 11:04:59 0 [Note] InnoDB: Completed initialization of buffer pool
> > > 2019-10-14 11:04:59 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
> > > 2019-10-14 11:04:59 0 [ERROR] InnoDB: Unable to lock ./ibdata1 error: 11
> > > 2019-10-14 11:04:59 0 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
> > > 2019-10-14 11:04:59 0 [Note] InnoDB: Retrying to lock the first data file
> > > 2019-10-14 11:05:00 0 [ERROR] InnoDB: Unable to lock ./ibdata1 error: 11
> > > 2019-10-14 11:05:00 0 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
> > > 2019-10-14 11:05:01 0 [ERROR] InnoDB: Unable to lock ./ibdata1 error: 11
Kindly let us know how to do the upgrade of mariadb container where the persistence vole is there.
Gaurav