• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue mariadb.service deactivates itself after Plesk update

Gary W.

Basic Pleskian
I haven't touched the server in months. After the Plesk Onyx update on February 15, 2024, some of the WordPress sites started to crash.
I open the Plesk recovery kit and notice that the mariadb.service service has been disabled from the system (I didn't touch it).
service.png
Relaunching the service solved the problem, what could have caused the problem?

How to prevent it from happening again?
 
Please examine /var/log/messages (or your syslog that might be named a bit different according to your operating system) for "mariadb" messages. Normally Maria can crash when it encounters a corrupt table. Such information will be logged to the syslog.
 
Today it happened again after Plesk Obsidian 18.0.59 Update 1. It seems that after every plesk update maria.db is deactivated and manual intervention is required to restore it. The server has been standing for 5 years without any problem.

Now in the space of a month the collapse.
 
Have you checked /var/log/messages (/var/log/syslog) for mariadb related entries at the time of the error?
 
Seems like dnf-makecache.service fails:

Code:
 Execution status has failed with exit code 3, stdout: × dnf-makecache.service - dnf makecache
     Loaded: loaded (/usr/lib/systemd/system/dnf-makecache.service; static)
     Active: failed (Result: signal) since Tue 2024-03-05 00:10:47 UTC; 1min 10s ago
TriggeredBy: ● dnf-makecache.timer
    Process: 30557 ExecStart=/usr/bin/dnf makecache --timer (code=killed, signal=KILL)
   Main PID: 30557 (code=killed, signal=KILL)
        CPU: 49.880s

Mar 05 00:04:49 angry-lamport.49-13-161-139.plesk.page systemd[1]: Starting dnf makecache...
Mar 05 00:04:50 angry-lamport.49-13-161-139.plesk.page dnf[30557]: AlmaLinux 9 - AppStream                         9.4 kB/s | 4.1 kB     00:00
Mar 05 00:04:50 angry-lamport.49-13-161-139.plesk.page dnf[30557]: AlmaLinux 9 - BaseOS                             11 kB/s | 3.8 kB     00:00
Mar 05 00:04:51 angry-lamport.49-13-161-139.plesk.page dnf[30557]: AlmaLinux 9 - CRB                                12 kB/s | 4.1 kB     00:00
Mar 05 00:04:51 angry-lamport.49-13-161-139.plesk.page dnf[30557]: AlmaLinux 9 - Extras                             11 kB/s | 3.8 kB     00:00
Mar 05 00:04:51 angry-lamport.49-13-161-139.plesk.page dnf[30557]: Extra Packages for Enterprise Linux 9 - x86_64  572 kB/s |  35 kB     00:00
Mar 05 00:10:47 angry-lamport.49-13-161-139.plesk.page systemd[1]: dnf-makecache.service: Main process exited, code=killed, status=9/KILL
Mar 05 00:10:47 angry-lamport.49-13-161-139.plesk.page systemd[1]: dnf-makecache.service: Failed with result 'signal'.
Mar 05 00:10:47 angry-lamport.49-13-161-139.plesk.page systemd[1]: Failed to start dnf makecache.
Mar 05 00:10:47 angry-lamport.49-13-161-139.plesk.page systemd[1]: dnf-makecache.service: Consumed 49.880s CPU time.
, stderr:

This process keeps updating in background and keep using 100% of the resources on my server:

1709597596870.png

How can I fix this?
 
Please continue your investigation with /var/log/dnf.log. If DNF fails, the reason should be logged to it.
 
I am facing the same issue just randomly.
In the end, I discovered that I was running low on RAM, which caused the service to reach saturation and shut down. If you don't want to increase the RAM, ask Claude or OpenAI to create a script to restart MariaDB. Once created, you need to upload it to the server via FTP (ask the AI how to do that). That's how I solved the problem, and I never had the same issue again.
 
Back
Top