大网数据广告活动
服务器运维问答

MariaDB regularly freezes every 1-2 days

· 52CE 我爱测

I'm using MariaDB on Ubuntu 22.04 running on a Proxmox container (LXC). I have two instances for two different services, but since upgrading from 21.10 to 22.04 both instances completely freeze once every 1-2 days. Trying to rest…

问题原文

原帖链接 · Marco Fincato · CC BY-SA 4.0

I'm using MariaDB on Ubuntu 22.04 running on a Proxmox container (LXC). I have two instances for two different services, but since upgrading from 21.10 to 22.04 both instances completely freeze once every 1-2 days.

Trying to restart MariaDB doesn't work, because it's frozen and won't close. For the same reason even trying to reboot the container doesn't work, and the only way to unfreeze it is to manually kill the process (with -9) and restart it.

This has been happening only since I've switched to 22.04, and also happen on a clean install. I've tried to increase ulimits and seting a connection timeout with no result.

Moreover, no error or indication of a problem seem to be logged in either syslog or any of MariaDB's logs.

I've tried searching for solutions but this somehow seems to affect only my setup, so it might be the combination of MariaDB + Ubuntu 22.04 + LXC.

Any suggestion would be extremely welcome since I'm starting to run out of options, other than trying to upgrade to 22.10 hoping for a fix or just moving the database on a VM instead of a CT.

Thanks!

已采纳解答

原帖链接 · Gordan Bobić · CC BY-SA 4.0

Does your containerised MariaDB log to syslog? Some versions of syslog can break in a peculiar way and this can cause a seemingly inexplicable MariaDB freeze after a while.

Disclosure: I wrote the referenced article.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2022-10-29)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。