LINUX.ORG.RU
Ответ на: комментарий от unclestephen
Apr 05 06:35:15 Feynman mariadbd[2404473]: 2026-04-05  6:35:15 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
Apr 05 06:35:15 Feynman mariadbd[2404473]: 2026-04-05  6:35:15 0 [ERROR] InnoDB: Unable to lock ./ibdata1 error: 11
Apr 05 06:35:15 Feynman mariadbd[2404473]: 2026-04-05  6:35:15 0 [Note] InnoDB: Check that you do not already have another mariadbd process using the same InnoDB data or log files.
Apr 05 06:35:15 Feynman mariadbd[2404473]: 2026-04-05  6:35:15 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
Apr 05 06:35:15 Feynman mariadbd[2404473]: 2026-04-05  6:35:15 0 [Note] InnoDB: Starting shutdown...
Apr 05 06:35:15 Feynman mariadbd[2404473]: 2026-04-05  6:35:15 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
Apr 05 06:35:15 Feynman mariadbd[2404473]: 2026-04-05  6:35:15 0 [Note] Plugin 'FEEDBACK' is disabled.
Apr 05 06:35:15 Feynman mariadbd[2404473]: 2026-04-05  6:35:15 0 [ERROR] Could not open mysql.plugin table: "Unknown storage engine 'Aria'". Some plugins may be not loaded
Apr 05 06:35:15 Feynman mariadbd[2404473]: 2026-04-05  6:35:15 0 [ERROR] Failed to initialize plugins.
Apr 05 06:35:15 Feynman mariadbd[2404473]: 2026-04-05  6:35:15 0 [ERROR] Aborting
Apr 05 06:35:15 Feynman systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
Apr 05 06:35:15 Feynman systemd[1]: mariadb.service: Failed with result 'exit-code'.
Apr 05 06:35:15 Feynman systemd[1]: Failed to start mariadb.service - MariaDB 10.11.13 database server.



НО это старые логи

06:35:15

В момент запуска на севрере 07:15:54

gobot ★★★★
() автор топика
Ответ на: комментарий от unclestephen

Да нету нихера я же написал. Ясен пень что все посмотрел заранее

gobot ★★★★
() автор топика

Просто тупо висит и все. Висит Висит Висит бесконечно и не ошибок и ничего. Гребаный дебиан или этот системд

lsof -n | grep mysql
lsof -n | grep maria


ничего такого открытого нет, кроме загруженных либ типа /usr/lib/php/20230831/mysqli.so

gobot ★★★★
() автор топика
Последнее исправление: gobot (всего исправлений: 1)
Ответ на: комментарий от gobot

ERROR] Could not open mysql.plugin table: «Unknown storage engine ‘Aria’». Some plugins may be not loaded

Вот это гугли.
И читай уже логи, ну, они как раз чтобы их читать.

Zhbert ★★★★★
()

и…бесконечно чего то ожидает

он ожидает, пока ты почитаешь логи 😊

aol ★★★★★
()
Ответ на: комментарий от router

Читать выше не пробовал? Это старые логи я же написал. В момент когда запускаешь не идут никакие логи

journalctl -u mariadb.service -f

Не идут логи никакие

И потом, почему он висит? Если даже и была ошибка в mysql, то systemctl должен что-то промычать, а не тупо висеть, ну как обычно в таких случаях

gobot ★★★★
() автор топика
Ответ на: комментарий от router

Вручную у него всё работает же.

Подозреваю это таки фокусы системг. Если бы и вручную та же ошибка была - я бы подумал что у него слетела файловая система на разделе с данными mysql или даже конфигом.

firkax ★★★★★
()
Ответ на: комментарий от firkax
  1. Он поставил в систему пакеты из sid (unstable). Наткнулся на баг (известный баг)

  2. Запустил mariadb вручную и теперь не понимает, куда идут логи (95% что они идут … в обычные файловые логи %)

router ★★★★★
()
Ответ на: комментарий от kaldeon

Обычный юнит

[Unit]
Description=MariaDB 10.11.13 database server
Documentation=man:mariadbd(8)
Documentation=https://mariadb.com/kb/en/library/systemd/
After=network.target

[Install]
WantedBy=multi-user.target


[Service]

##############################################################################
## Core requirements
##

Type=notify

# Setting this to true can break replication and the Type=notify settings
# See also bind-address mariadbd option.
PrivateNetwork=false

##############################################################################
## Package maintainers
##

User=mysql
Group=mysql

# CAP_IPC_LOCK To allow memlock to be used as non-root user
# These are enabled by default
AmbientCapabilities=CAP_IPC_LOCK

# PrivateDevices=true implies NoNewPrivileges=true and
# SUID auth_pam_tool suddenly doesn't do setuid anymore
PrivateDevices=false

# Prevent writes to /usr, /boot, and /etc
ProtectSystem=full



# Doesn't yet work properly with SELinux enabled
# NoNewPrivileges=true

# Prevent accessing /home, /root and /run/user
ProtectHome=true

# Execute pre and post scripts as root, otherwise it does it as User=
PermissionsStartOnly=true

ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld

# Perform automatic wsrep recovery. When server is started without wsrep,
# galera_recovery simply returns an empty string. In any case, however,
# the script is not expected to return with a non-zero status.
# It is always safe to unset _WSREP_START_POSITION environment variable.
# Do not panic if galera_recovery script is not available. (MDEV-10538)
ExecStartPre=/bin/sh -c "systemctl unset-environment _WSREP_START_POSITION"
ExecStartPre=/bin/sh -c "[ ! -e /usr/bin/galera_recovery ] && VAR= || \
 VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] \
 && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1"

# Needed to create system tables etc.
# ExecStartPre=/usr/bin/mysql_install_db -u mysql

# Start main service
# MYSQLD_OPTS here is for users to set in /etc/systemd/system/mariadb.service.d/MY_SPECIAL.conf
# Use the [Service] section and Environment="MYSQLD_OPTS=...".
# This isn't a replacement for my.cnf.
# _WSREP_NEW_CLUSTER is for the exclusive use of the script galera_new_cluster
ExecStart=/usr/sbin/mariadbd $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION

# Unset _WSREP_START_POSITION environment variable.
ExecStartPost=/bin/sh -c "systemctl unset-environment _WSREP_START_POSITION"

ExecStartPost=/etc/mysql/debian-start

KillSignal=SIGTERM

# Don't want to see an automated SIGKILL ever
SendSIGKILL=no

# Restart crashed server only, on-failure would also restart, for example, when
# my.cnf contains unknown option
Restart=on-abnormal
RestartSec=5s

UMask=007

##############################################################################
## USERs can override
##
##
## by creating a file in /etc/systemd/system/mariadb.service.d/MY_SPECIAL.conf
## and adding/setting the following under [Service] will override this file's
## settings.

# Useful options not previously available in [mysqld_safe]

# Kernels like killing mariadbd when out of memory because its big.
# Lets temper that preference a little.
# OOMScoreAdjust=-600

# Explicitly start with high IO priority
# BlockIOWeight=1000

# If you don't use the /tmp directory for SELECT ... OUTFILE and
# LOAD DATA INFILE you can enable PrivateTmp=true for a little more security.
PrivateTmp=false

# Set an explicit Start and Stop timeout of 900 seconds (15 minutes!)
# this is the same value as used in SysV init scripts in the past
# Galera might need a longer timeout, check the KB if you want to change this:
# https://mariadb.com/kb/en/library/systemd/#configuring-the-systemd-service-timeout
TimeoutStartSec=900
TimeoutStopSec=900

# Set the maximium number of tasks (threads) to 99% of what the system can
# handle as set by the kernel, reserve the 1% for a remote ssh connection,
# some monitoring, or that backup cron job. Without the directive this would
# be 15% (see DefaultTasksMax in systemd man pages).
TasksMax=99%

##
## Options previously available to be set via [mysqld_safe]
## that now needs to be set by systemd config files as mysqld_safe
## isn't executed.
##

# Number of files limit. previously [mysqld_safe] open-files-limit
LimitNOFILE=32768
# For liburing and io_uring_setup()
LimitMEMLOCK=524288
# Maximium core size. previously [mysqld_safe] core-file-size
# LimitCore=

# Nice priority. previously [mysqld_safe] nice
# Nice=-5

# Timezone. previously [mysqld_safe] timezone
# Environment="TZ=UTC"

# Library substitutions. previously [mysqld_safe] malloc-lib with explicit paths
# (in LD_LIBRARY_PATH) and library name (in LD_PRELOAD).
# Environment="LD_LIBRARY_PATH=/path1 /path2" "LD_PRELOAD=

# Flush caches. previously [mysqld_safe] flush-caches=1
# ExecStartPre=sync
# ExecStartPre=sysctl -q -w vm.drop_caches=3

# numa-interleave=1 equalivant
# Change ExecStart=numactl --interleave=all /usr/sbin/mariadbd......

# crash-script equalivent
# FailureAction=

gobot ★★★★
() автор топика
Ответ на: комментарий от firkax

Да, убунту

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION=«Ubuntu 24.04.2 LTS»

gobot ★★★★
() автор топика
Ответ на: комментарий от gobot

Type=notify. Возможно, сборка mariadb не умеет общаться с systemd. Глянь, есть ли libsystemd в ldd `which mariadb`.

Можно ещё глянуть, всё ли норм с правами на /var/lib/mysql.

kaldeon ★★
()
Последнее исправление: kaldeon (всего исправлений: 2)
Ответ на: комментарий от router

Ну, а mysql что разве не в systemd логи пишет? Туда и пишет. А если вручную запускаю, то логи на консоль вываливаются - и нормально запускается

cat /var/log/mysql/error.log
cat: /var/log/mysql/error.log: No such file or directory

ls /var/log/ | grep mysql
null

ls /var/log/ | grep maria
null

gobot ★★★★
() автор топика
Ответ на: комментарий от kaldeon

Глянь, есть ли libsystemd в ldd `which mariadb`.

Нету

Понятно, значит корявая сборка какая-то. Но как то же она работала. Как-то я ее запускал, просто уже не помню как. Но после первого обвала - потом не за пустишь


ls -la /var/lib/mysql/

drwxr-xr-x  6 mysql mysql      4096 Apr  5 11:41 .
drwxr-xr-x 57 root  root       4096 Apr  5 11:36 ..
-rw-rw----  1 mysql mysql    417792 Apr  5 11:41 aria_log.00000001
-rw-rw----  1 mysql mysql        52 Apr  5 11:41 aria_log_control
-rw-r--r--  1 root  root          0 Sep 11  2025 debian-10.11.flag
-rw-rw----  1 mysql mysql     14756 Apr  5 11:41 ib_buffer_pool
-rw-rw----  1 mysql mysql  79691776 Apr  5 11:41 ibdata1
-rw-rw----  1 mysql mysql 100663296 Apr  5 11:41 ib_logfile0
-rw-rw----  1 mysql mysql         0 Sep 11  2025 multi-master.info
drwx------  2 mysql mysql      4096 Sep 11  2025 mysql
-rw-r--r--  1 root  root         16 Sep 11  2025 mysql_upgrade_info
drwx------  2 mysql mysql      4096 Sep 11  2025 performance_schema
drwx------  2 mysql mysql     12288 Sep 11  2025 sys
drwx------  2 mysql mysql     20480 Sep 11  2025 zabbix

gobot ★★★★
() автор топика
Ответ на: комментарий от gobot

А если вручную запускаю, то логи на консоль вываливаются - и нормально запускается

Вот на консоли теперь и смотри. Пока не перезапустишь по-человечески

router ★★★★★
()
Ответ на: комментарий от gobot

И что там смотреть?

Ну не знаю, ты ждал чего-то:

Просто тупо висит и все. Висит Висит Висит бесконечно и не ошибок и ничего.

router ★★★★★
()
  • Markdown
Пустая строка (два раза Enter) начинает новый абзац. Знак '>' в начале абзаца выделяет абзац курсивом цитирования.
Внимание: прочитайте описание разметки Markdown.
Используйте Ctrl-Enter для размещения комментария