EE failing to install MariaDB according to log

I’m trying to setup a website by invoking “sudo ee site create mydomain.com --w3tc” but it eventually says “oops something went wrong!” and tells me to check the log. The log info is below:

dpkg: error processing package mariadb-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
 mariadb-server-10.0
 mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
2015-06-10 05:43:02,317 (INFO) ee : Oops Something went wrong!!
2015-06-10 05:43:02,321 (ERROR) ee : Check logs for reason `tail /var/log/ee/ee.log` & Try Again!!!

How can I fix this? I tried running “apt-get install mariadb-server” manually but ubuntu states that it’s already installed. Thanks!

Hello @adrianocorterea,

Its strange issue, MariaDB only fails to install when mysql-common package is allready installed.

Can you give me output of following command?

dpkg -l | grep mysql
dpkg -l | grep maria

@gau1991

Hey, I resolved this by manually adding the mariadb repo to the ee sources.list file. It worked perfect after importing the keys.

However, now I’m having the following issue:

Installing plugin nginx-helper, please wait...
Installing plugin w3-total-cache, please wait...
Reload : nginx     [Failed]
Oops Something went wrong !!
Calling cleanup actions ...
Reload : nginx     [OK]
service nginx reload failed. check issues with `nginx -t` command.
Check logs for reason `tail /var/log/ee/ee.log` & Try Again!!!

And when I run tail /var/log/ee/ee.log I get the following:

2015-06-10 23:46:24,425 (DEBUG) ee : EEGit: git commit at /etc/nginx
2015-06-10 23:46:24,483 (DEBUG) ee : Removing /var/www/domainname.com
2015-06-10 23:46:24,483 (DEBUG) ee : Removing /var/www/domainname.com
2015-06-10 23:46:24,518 (DEBUG) ee : dropping database `domainname.com`
2015-06-10 23:46:24,519 (DEBUG) ee : Exceuting MySQL Statement : drop database `domainname_com`
2015-06-10 23:46:24,550 (DEBUG) ee : dropping user `robsonh1Ik74scvq`
2015-06-10 23:46:24,551 (DEBUG) ee : Exceuting MySQL Statement : drop user `robsonh1Ik74scvq`@`localhost`
2015-06-10 23:46:24,568 (DEBUG) ee : Exceuting MySQL Statement : flush privileges
2015-06-10 23:46:24,589 (INFO) ee : service nginx reload failed. check issues with `nginx -t` command.
2015-06-10 23:46:24,589 (ERROR) ee : Check logs for reason `tail /var/log/ee/ee.log` & Try Again!!!

The nginx -t command returns:

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

So I don’t know what’s wrong.

By the way, if I run sudo service nginx reload everything works perfectly. So I think it’s an EasyEngine issue rather than an nginx issue.

Hi @adrianocorterea

As the issue has been resolved, I am closing this support topic for now. Feel free to create a new support topic if you have any queries further. :slight_smile: