[SOLVED] Problem LXC mariadb debian 10

popallo

New Member
Jul 2, 2019
11
0
1
36
People hi! :)

I just noticed an anomaly on a lxc container freshly installed with a debian 10 template.
Indeed, after installing the container I launched an "apt update && apt-upgrade" then "apt install mariadb-server".
Here is the error message I just had:

Code:
systemctl status mariadb.service
● mariadb.service - MariaDB 10.3.15 database server
   Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2019-07-14 13:00:21 CEST; 13s ago
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
 Main PID: 1296 (code=exited, status=226/NAMESPACE)

Jul 14 13:00:20 mariadb systemd[1]: Starting MariaDB 10.3.15 database server...
Jul 14 13:00:21 mariadb systemd[1296]: mariadb.service: Failed to set up mount namespacing: Permission denied
Jul 14 13:00:21 mariadb systemd[1296]: mariadb.service: Failed at step NAMESPACE spawning /usr/sbin/mysqld: Permission denied
Jul 14 13:00:21 mariadb systemd[1]: mariadb.service: Main process exited, code=exited, status=226/NAMESPACE
Jul 14 13:00:21 mariadb systemd[1]: mariadb.service: Failed with result 'exit-code'.
Jul 14 13:00:21 mariadb systemd[1]: Failed to start MariaDB 10.3.15 database server.
By doing the same manipulation but with a debian template 9, I do not have this problem.

An idea ?

My server runs on debian 9 and proxmox 5.4-11 and lxc container on debian 10.
 

oguz

Proxmox Staff Member
Staff member
Nov 19, 2018
701
74
28
@tom Maybe if Debian Buster is detected, LXC should automatically enable nesting?
we leave this decision to the user, as there are some implications to using nesting (such as exposing /proc and /sys from the host)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!