Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sebastian-haendel opened this issue May 18, 2021 · 1 comment
Open

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

sebastian-haendel opened this issue May 18, 2021 · 1 comment

Comments

@sebastian-haendel
Copy link

sebastian-haendel commented May 18, 2021

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.
@sebastian-haendel
Copy link
Author

When i use NFS Volumes everything works:

version: '3.3'
services:
piler:
image: woa7/piler
ports:
- 80:80
- 25:25
environment:
- TZ=Europe/Berlin
- PILER_HOST=mailarchiv.test.de
- PUID=1000
- PGID=1000
volumes:
- /usr/share/zoneinfo/Europe/Berlin:/etc/localtime
- piler-etc:/etc/piler
- piler-var:/var/piler
- piler-mysql:/var/lib/mysql
- nginx-log:/var/log/nginx
volumes:
piler-etc:
driver: local
driver_opts:
type: nfs
device: ":/piler/piler-etc"
o: "addr=192.168.0.35,nolock,soft,rw"
piler-var:
driver: local
driver_opts:
type: nfs
device: ":/piler/piler-var"
o: "addr=192.168.0.35,nolock,soft,rw"
piler-mysql:
driver: local
driver_opts:
type: nfs
device: ":/piler/piler-mysql"
o: "addr=192.168.0.35,nolock,soft,rw"
nginx-log:
driver: local
driver_opts:
type: nfs
device: ":/piler/nginx-log"
o: "addr=192.168.0.35,nolock,soft,rw"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant