New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Cannot install MariaDB
Saragoldfarb
Member
in Help
So I have this issue with one of my servers which is doing my head in. Spent a couple of days trying to figure it out and I'm probably overlooking something basic. I have this 512Mb Ram VPS running Debian 8, a fresh minimal install but whatever I do MariaDb won't install.
It asks me to set the root password, confirms it, installs some dependencies and then here's what I get:
dpkg: error processing package mariadb-server-10.0 (--configure): subprocess installed post-installation script returned error exit status 1 Setting up libdbd-mysql-perl (4.028-2+deb8u2) ... Setting up libhtml-template-perl (2.95-1) ... dpkg: dependency problems prevent configuration of mariadb-server: mariadb-server depends on mariadb-server-10.0 (>= 10.0.28-0+deb8u1); however: Package mariadb-server-10.0 is not configured yet. dpkg: error processing package mariadb-server (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.19-18+deb8u6) ... Processing triggers for systemd (215-17+deb8u5) ... Errors were encountered while processing: mariadb-server-10.0 mariadb-server E: Sub-process /usr/bin/dpkg returned an error code (1)
Any thought on what it might be or where to look? I tried about everything I could think of or found related this on Google. Any help would be much appreciated
Comments
tried doing an:
apt-get install -f
Have you tried changing the sources file to use Debian's official repository instead of the provider's?
Yeah :
Yeah tried that as well. Heck, even reinstalled and tried with Ubuntu but it's giving me the same issue.
Install Percona instead and drink a Martini.
Hehe, problem solved, case closed . Nah gonna stick with MariaDb and can't stand the fact it won't work on just this one server. I'll get me a strong drink anyway though
Have you tried apt-get clean and then reboot and try reinstalling it?
Hmm.. strange; does this happen only with this provider and their Deb images? Ruling out the possibility of a broken image (try a custom ISO perhaps), it could be some weird router caching by the provider.
Yeah, tried that. No luck
Did you remove mysql and client properly before installing Mariadb?.
Similar to this question:
http://askubuntu.com/questions/286476/cant-install-mariadb-5-5-or-10-in-ubuntu-12-04-mysqld-failed-to-start
Interestingly, one answer mentioned that it caused by insufficient RAM of 512MB.
Yes it's just this one provider I'm having this issue with. I used to have a VM on another node with them running MariaDb but not sure if it was the same OS. Would be weird if more than one of their images was broken right? Might send them a ticket about it but I'd hate to bother them with something I could fix myself
Cheers. Came across that one in my quest to solve this but it doesn't seem to be memory related. Ram shows up just fine, hardly using anything.
@Saragoldfarb It could also be related to what @scpal mentioned; maybe insufficient resources on this node (ovz?).
I ran:
Should do the trick right?
Yeah it is ovz. Mh... Interesting thought.
Can you run
find / -name mysql*
Does it find anything?
Yup.. big list...
Removed it again, what remains:
Thats your issue - your trying to install mariadb on top of mysql - you need to remove it.
I'll give it another look with a fresh install as I could've sworn I tried this before and nothing showed up just to make sure. Nice BF offer by the way
No problem, let us know how you get on
On a clean install all that shows up:
find / -name mysql*
/usr/share/vim/vim74/syntax/mysql.vim
After trying to install MariaDB and getting the error:
I'm really starting to wonder if this could be the case. Just installed it on a 128Mb ram VM just fine.
Percona has wayy more goodies in their repo.
I still haven't gotten around to playing with all the instrumention utils
Do an
ltrace -C -f -o /tmp/output.log
on your dpkg command. If your server has oversold memory I would expect amalloc
to fail.EDIT: After running the command, do a
grep malloc /tmp/output.log
to check for NULL/0 values. NULL means malloc failed.Looks awesome. Will play with it this weekend.
What are good ways to bench test a MySQL server?
My thoughts/ideas based on the assumption that you're using Debian Jessie (official) repos:
Can you avoid installing mariadb-server which is just a meta-package and instead try to only install mariadb-server-10.0
Make sure you've run apt-get update just to be sure. [ensure that you've got the security updates - see point 5 below]
If again you run into the same issues, it could be a problem with the post-install script of the package (you'll have to debug the .deb by extracting it to a temp folder and checking to see if there's anything stupid going on - this seems unlikely considering that you're saying this works on other systems fine from the same sources). Other option is to try and install the other pre-requisites directly (these pre-reqs being things like mariadb-client-10.0 mariadb-server-core-10.0 mysql-common mariadb-client-core-10.0)
Hopefully one of the above steps will give you a clue on why something is failing
Also, recently (11th Nov) there was a security fix which bumped the version to 28 (presumably from 27) but there is a changelog breakage from the main debian website for mariadb - so something is still broken and this may be the cause of the issue as well (for e.g: from https://packages.debian.org/jessie/mariadb-client-core-10.0 if you try to access the Debian Changelog http://metadata.ftp-master.debian.org/changelogs/main/m/mariadb-10.0/mariadb-10.0_10.0.28-0+deb8u1_changelog I get a 404 - this as I write this comment). apt-cache policy should help ensure that you're getting the 28 version of all the packages - please double check.
HTH.