Skip to content

mariadb won't start with mapped volume /var/lib/mysql #20

Description

@sebastian-haendel

To keep the database on updates and for backup reasons, i tried to start the piler with the following compose file:

version: '3.3'
services:
piler:
image: woa7/piler
ports:
- 80:80
- 25:25
user: 0:0
environment:
- TZ=Europe/Berlin
- PILER_HOST=mailarchiv.test.de
- PUID=1000
- PGID=1000
volumes:
- /usr/share/zoneinfo/Europe/Berlin:/etc/localtime
- /opt/piler/etc/piler:/etc/piler
- /opt/piler/var/piler:/var/piler
- /opt/piler/var/lib/mysql:/var/lib/mysql

Here the log:

...
User uid: 1000
User gid: 1000

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

  • Starting enhanced syslogd rsyslogd
    rsyslogd: imklog: cannot open kernel log (/proc/kmsg): Operation not permitted.
    rsyslogd: activation of module imklog failed [v8.32.0 try http://www.rsyslog.com/e/2145 ]
    ...done.
  • Starting MariaDB database server mysqld
    ...fail!
    [cmd] /bin/bash exited 1
    [cont-finish.d] executing container finish scripts...
    [cont-finish.d] done.
    [s6-finish] waiting for services.
    [s6-finish] sending all processes the TERM signal.
    [s6-finish] sending all processes the KILL signal and exiting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions