Other Server Info:
| Real memory | 10.29 GiB used / 24.59 GiB cached / 62.79 GiB total |
Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz, 12 cores
This morning we had an upgrade for around 12 packages and ran the upgrade(s) via Virtualmin.
The upgrade have been running for over 4 hours and is still working or hung at this:
...snip to last lines...
(Reading database ... 168872 files and directories currently installed.)
Preparing to unpack .../00-mariadb-server_1%3a10.11.19-0+deb12u1_amd64.deb ...
Warning: Stopping mariadb.service, but it can still be activated by:
mariadb.socket
/var/lib/mysql: found previous version 10.11
Warning: Stopping mariadb.service, but it can still be activated by:
mariadb.socket
Warning: Stopping mysql.service, but it can still be activated by:
mariadb.socket
Unpacking mariadb-server (1:10.11.19-0+deb12u1) over (1:10.11.18-0+deb12u1) ...
|----|----|
Should I let this continue to run, or interrupt it and do some other action?
You might want to check to see if it’s actually still running. I think it’s more likely something happened to interrupt the session and the UI hung but the process actually completed (whether it completely successfully we can’t know without checking). Login via ssh an look to see if any dpkg and apt-get processes are currently running, and check the logs for both to see what they’re up to, if so.
If there are no processes running you can still check the logs to see how things turned out. Or you can do dpkg --configure -a which will run any unfinished configure steps, if any.
dpkg --configure -a
dpkg: error: dpkg frontend lock was locked by another process with pid 962167
Note: removing the lock file is always wrong, can damage the locked area
and the entire system. See <https://wiki.debian.org/Teams/Dpkg/FAQ#db-lock>.
That’s expected, if the process is still running. Why it’s still running, I have no idea. No update should take more than a few minutes. I would interrupt it, and try again on the command line (in an ssh session, not in a browser, as a browser is more prone to timeouts). Maybe there are errors that aren’t getting captured or happened after the socket timed out or something. I dunno.
I left it alone and let it run because I had other things to do. It took 18 hours to complete and was done this morning. Because of the kernel update it wanted a reboot and that took over 30 minutes.
Is it normal to have both mariadb and mysql running at the same time? I am referring to this as taken from the above update terminal:
Warning: Stopping mariadb.service, but it can still be activated by:
mariadb.socket
/var/lib/mysql: found previous version 10.11
Warning: Stopping mariadb.service, but it can still be activated by:
mariadb.socket
Warning: Stopping mysql.service, but it can still be activated by:
mariadb.socket
It is not normal to have both. But, I doubt you have both. I suspect one of the pre/post jobs in the package stops both services because it was historically possible to upgrade from mariadb to mysql (I say historically, because I don’t think it’s trivial to do so without a dump/restore at this point). It probably shouldn’t have MySQL plumbing at this point, but I haven’t looked at the package in a long time, maybe there’s a good reason for it.
I’m pretty sure the packages conflict with each other, I don’t think you can have both, easily. Mariadb shares paths and filenames with MySQL (though that’s been changing), they’d overwrite each other if you had both.