Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
10.3.22, 10.5.4
-
Ubuntu 20.04 Focal on Proxmox 5.4
Description
Hello,
Just after installing MariaDB server & client, I am getting the following errors:
Setting up libdbd-mariadb-perl (1.11-3ubuntu2) ...
Setting up mariadb-client-core-10.5 (1:10.5.4+maria~focal) ...
Setting up mariadb-client-10.5 (1:10.5.4+maria~focal) ...
Setting up mariadb-client (1:10.5.4+maria~focal) ...
Setting up mariadb-server-10.5 (1:10.5.4+maria~focal) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service.
Job for mariadb.service failed because of unavailable resources or another system error.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
Setting up mariadb-server (1:10.5.4+maria~focal) ...
Processing triggers for systemd (245.4-4ubuntu3.1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
systemctl status mariadb.service
Failed to dump process list for 'mariadb.service', ignoring: Input/output error
● mariadb.service - MariaDB 10.5.4 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: failed (Result: resources)
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
CGroup: /system.slice/mariadb.serviceJun 30 06:43:57 web3 systemd[1]: mariadb.service: Will not start SendSIGKILL=no service of type KillMode=control-group or mixed while processes exist
Jun 30 06:43:57 web3 systemd[1]: mariadb.service: Failed to run 'start-pre' task: Device or resource busy
Jun 30 06:43:57 web3 systemd[1]: mariadb.service: Failed with result 'resources'.
Jun 30 06:43:57 web3 systemd[1]: Failed to start MariaDB 10.5.4 database server.
Service does not want to start. The issue seems related to Systemd.
I am able to run mariadb server manually using
cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
|
I tried with a brand new container on my proxmox server:
pct create 131 local:vztmpl/ubuntu-20.04-standard_20.04-1_amd64.tar.gz -hostname "web3.domain.com" -arch amd64 -cores 2 -memory 512 -swap 512 -net0 bridge=vmbr1,name=eth0,ip=10.0.1.1/24,gw=10.0.1.254 -onboot 1 -ostype ubuntu -rootfs local:30
|
|
pct start 131
|
pct enter 131
|
|
apt-get update
|
apt-get full-upgrade
|
|
apt-get -y install traceroute aptitude byobu software-properties-common nano curl
|
|
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | bash
|
apt-get -y install mariadb-server mariadb-client
|
AskUbuntu: https://askubuntu.com/questions/1254782/unable-to-install-working-mariadb
Attachments
Issue Links
- relates to
-
MDEV-23321 debian upgrade shouldn't start previously stopped services
-
- Open
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Hello,
Just after installing MariaDB server & client, I am getting the following errors: {quote}Setting up libdbd-mariadb-perl (1.11-3ubuntu2) ... Setting up mariadb-client-core-10.5 (1:10.5.4+maria~focal) ... Setting up mariadb-client-10.5 (1:10.5.4+maria~focal) ... Setting up mariadb-client (1:10.5.4+maria~focal) ... Setting up mariadb-server-10.5 (1:10.5.4+maria~focal) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service. Job for mariadb.service failed because of unavailable resources or another system error. See "systemctl status mariadb.service" and "journalctl -xe" for details. Setting up mariadb-server (1:10.5.4+maria~focal) ... Processing triggers for systemd (245.4-4ubuntu3.1) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for libc-bin (2.31-0ubuntu9) ... {quote} {quote}systemctl status mariadb.service Failed to dump process list for 'mariadb.service', ignoring: Input/output error ● mariadb.service - MariaDB 10.5.4 database server Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/mariadb.service.d └─migrated-from-my.cnf-settings.conf Active: failed (Result: resources) Docs: man:mariadbd(8) https://mariadb.com/kb/en/library/systemd/ CGroup: /system.slice/mariadb.service Jun 30 06:43:57 web3 systemd[1]: mariadb.service: Will not start SendSIGKILL=no service of type KillMode=control-group or mixed while processes exist Jun 30 06:43:57 web3 systemd[1]: mariadb.service: Failed to run 'start-pre' task: Device or resource busy Jun 30 06:43:57 web3 systemd[1]: mariadb.service: Failed with result 'resources'. Jun 30 06:43:57 web3 systemd[1]: Failed to start MariaDB 10.5.4 database server.{quote} Service does not want to start. The issue seems related to Systemd. I am able to run mariadb server manually using {code:shell} cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql' {code} I tried with a brand new container on my proxmox server: {code:shell} pct create 131 local:vztmpl/ubuntu-20.04-standard_20.04-1_amd64.tar.gz -hostname "web3.domain.com" -arch amd64 -cores 2 -memory 512 -swap 512 -net0 bridge=vmbr1,name=eth0,ip=10.0.1.1/24,gw=10.0.1.254 -onboot 1 -ostype ubuntu -rootfs local:30 pct start 131 pct enter 131 apt-get update apt-get full-upgrade apt-get -y install traceroute aptitude byobu software-properties-common nano curl curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | bash apt-get -y install mariadb-server mariadb-client {code} |
Hello,
Just after installing MariaDB server & client, I am getting the following errors: {quote}Setting up libdbd-mariadb-perl (1.11-3ubuntu2) ... Setting up mariadb-client-core-10.5 (1:10.5.4+maria~focal) ... Setting up mariadb-client-10.5 (1:10.5.4+maria~focal) ... Setting up mariadb-client (1:10.5.4+maria~focal) ... Setting up mariadb-server-10.5 (1:10.5.4+maria~focal) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service. Job for mariadb.service failed because of unavailable resources or another system error. See "systemctl status mariadb.service" and "journalctl -xe" for details. Setting up mariadb-server (1:10.5.4+maria~focal) ... Processing triggers for systemd (245.4-4ubuntu3.1) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for libc-bin (2.31-0ubuntu9) ... {quote} {quote}systemctl status mariadb.service Failed to dump process list for 'mariadb.service', ignoring: Input/output error ● mariadb.service - MariaDB 10.5.4 database server Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/mariadb.service.d └─migrated-from-my.cnf-settings.conf Active: failed (Result: resources) Docs: man:mariadbd(8) https://mariadb.com/kb/en/library/systemd/ CGroup: /system.slice/mariadb.service Jun 30 06:43:57 web3 systemd[1]: mariadb.service: Will not start SendSIGKILL=no service of type KillMode=control-group or mixed while processes exist Jun 30 06:43:57 web3 systemd[1]: mariadb.service: Failed to run 'start-pre' task: Device or resource busy Jun 30 06:43:57 web3 systemd[1]: mariadb.service: Failed with result 'resources'. Jun 30 06:43:57 web3 systemd[1]: Failed to start MariaDB 10.5.4 database server.{quote} Service does not want to start. The issue seems related to Systemd. I am able to run mariadb server manually using {code:shell} cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql' {code} I tried with a brand new container on my proxmox server: {code:shell} pct create 131 local:vztmpl/ubuntu-20.04-standard_20.04-1_amd64.tar.gz -hostname "web3.domain.com" -arch amd64 -cores 2 -memory 512 -swap 512 -net0 bridge=vmbr1,name=eth0,ip=10.0.1.1/24,gw=10.0.1.254 -onboot 1 -ostype ubuntu -rootfs local:30 pct start 131 pct enter 131 apt-get update apt-get full-upgrade apt-get -y install traceroute aptitude byobu software-properties-common nano curl curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | bash apt-get -y install mariadb-server mariadb-client {code} AskUbuntu: https://askubuntu.com/questions/1254782/unable-to-install-working-mariadb |
Attachment | MariaDB-Error.txt [ 52459 ] |
Assignee | Otto Kekäläinen [ otto ] |
Attachment | MariaDB-Error-syslog.txt [ 52509 ] |
Summary | MariaDB Server failure with Ubuntu 20.04 & Systemd | MariaDB Server failure on Proxmox (with Ubuntu 20.04 and Systemd) |
Priority | Critical [ 2 ] | Major [ 3 ] |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] |
Link | This issue relates to MDEV-23321 [ MDEV-23321 ] |
Attachment | proxmox-mdev-23050-install.txt [ 53871 ] |
Attachment | proxmox-5.4.txt [ 53906 ] |
Assignee | Otto Kekäläinen [ otto ] | Daniel Black [ danblack ] |
Component/s | N/A [ 14411 ] | |
Fix Version/s | N/A [ 14700 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Not a Bug [ 6 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Comment | [ Thanks for telling me. I tested it and indeed now it works as expected. ] |
Comment | [ Sorry, I didn't test it properly. The problem still exists. ] |
Workflow | MariaDB v3 [ 110658 ] | MariaDB v4 [ 158035 ] |
The error is because an existing process exists in the mariadb.service cgroup at the point at which the attempted start happens.
When that occurs if systemd did start the service, assuming it was a mariadb process there already, it would be running on the same data/port. This is why the service is configured this way.
The `journalctl -n 50 -u mariadb.service` will probably contain a warning indicating which process it was. Can you include this.
Can you try:
export DEBIAN_SCRIPT_DEBUG=1
apt-get install ....
As seeing what happens in the packaging scripts https://github.com/MariaDB/server/blob/10.5/debian/mariadb-server-10.5.preinst#L36 would be useful.
note: yes, I'm to blame for this error https://github.com/systemd/systemd/pull/11457