Hi Guys,
I have been struggling to fix this issue, and I did read all Topics that have the same issue but still can't find the solution, and hope someone can help me with this.
I have a PerconaDB Cluster for MySQL, 3 Nodes with HAProxy as a load balancer, I followed the belwo topic to add the Remote MySQL: https://easyengine.io/docs/remote-mysql/
but whenever I try to create a wordpress site I get this error:
ee : Oops Something went wrong !!
Calling cleanup actions ...
ee : Calling cleanup actions ...
'ee_mysql_grant_host'
I can access MySQL server just by issuing mysql command without a password, and I have grant privilege to root@%,
here is the logs when i create a site:
root@mgngx1:~# ee site create testingmysql.com --wp 2016-05-26 17:08:59,114 (DEBUG) ee : logging initialized for 'ee' using LoggingLogHandler 2016-05-26 17:08:59,356 (DEBUG) ee : ['/usr/local/bin/ee', 'site', 'create', 'testingmysql.com', '--wp'] 2016-05-26 17:08:59,357 (DEBUG) ee : collecting arguments/commands for 2016-05-26 17:08:59,359 (DEBUG) ee : collecting arguments/commands for 2016-05-26 17:08:59,361 (DEBUG) ee : collecting arguments/commands for 2016-05-26 17:08:59,365 (INFO) ee : Initializing EasyEngine Database 2016-05-26 17:08:59,374 (DEBUG) ee : Setting apt_packages variable for Nginx 2016-05-26 17:09:00,831 (DEBUG) ee : Finding string SCRIPT_FILENAME to file /etc/nginx/fastcgi_params 2016-05-26 17:09:00,831 (DEBUG) ee : Setting apt_packages variable for PHP 2016-05-26 17:09:02,066 (DEBUG) ee : Setting apt_packages variable for MySQL 2016-05-26 17:09:02,066 (DEBUG) ee : Running command: mysqladmin ping 2016-05-26 17:09:02,147 (DEBUG) ee : Command Output: mysqld is alive , Command Error: 2016-05-26 17:09:02,147 (DEBUG) ee : Setting apt_packages variable for Postfix 2016-05-26 17:09:03,392 (DEBUG) ee : Setting packages variable for WP-CLI 2016-05-26 17:09:03,392 (DEBUG) ee : Running command: which wp 2016-05-26 17:09:03,398 (DEBUG) ee : Command Output: /usr/bin/wp , Command Error: Running pre-update checks, please wait... 2016-05-26 17:09:03,399 (INFO) ee : Running pre-update checks, please wait... 2016-05-26 17:09:03,399 (DEBUG) ee : checking NGINX configuration ... 2016-05-26 17:09:03,436 (INFO) ee : Setting up NGINX configuration 2016-05-26 17:09:03,436 (DEBUG) ee : loading template file /usr/lib/ee/templates/virtualconf.mustache 2016-05-26 17:09:03,439 (DEBUG) ee : Checking generated nginx conf, please wait... Setting up NGINX configuration [Done] 2016-05-26 17:09:03,484 (INFO) ee : [Done] 2016-05-26 17:09:03,484 (DEBUG) ee : Creating Symbolic link, Source:/etc/nginx/sites-available/testingmysql.com, Dest:/etc/nginx/sites-enabled/testingmysql.com 2016-05-26 17:09:03,485 (INFO) ee : Setting up webroot 2016-05-26 17:09:03,485 (DEBUG) ee : Creating Symbolic link, Source:/var/log/nginx/testingmysql.com.access.log, Dest:/var/www/testingmysql.com/logs/access.log 2016-05-26 17:09:03,486 (DEBUG) ee : Creating Symbolic link, Source:/var/log/nginx/testingmysql.com.error.log, Dest:/var/www/testingmysql.com/logs/error.log Setting up webroot [Done] 2016-05-26 17:09:03,486 (INFO) ee : [Done] 2016-05-26 17:09:03,618 (INFO) ee : Downloading WordPress 2016-05-26 17:09:03,618 (DEBUG) ee : Changing directory to /var/www/testingmysql.com/htdocs/ 2016-05-26 17:09:03,618 (DEBUG) ee : Running command: wp --allow-root core download 2016-05-26 17:09:05,008 (DEBUG) ee : Command Output: Downloading WordPress 4.5.2 (en_US)... Using cached file '/root/.wp-cli/cache/core/wordpress-4.5.2-en_US.tar.gz'... Success: WordPress downloaded. , Command Error: Downloading WordPress [Done] 2016-05-26 17:09:05,009 (INFO) ee : [Done] Enter the MySQL database name [testingmysql_com]: Enter the MySQL database user name [testingmysql_com]: Enter the MySQL database password [fw0nkqEvNItBGKg]: 2016-05-26 17:09:12,585 (INFO) ee : Setting up database 2016-05-26 17:09:12,586 (DEBUG) ee : Creating database testingmysql_com 2016-05-26 17:09:12,587 (DEBUG) ee : [Error]Setting up database: 'an integer is required (got type str)' 2016-05-26 17:09:12,587 (DEBUG) ee : 2016-05-26 17:09:12,587 (DEBUG) ee : 'MySQL Connectivity problem occured' Setting up database Oops Something went wrong !! 2016-05-26 17:09:12,587 (INFO) ee : Oops Something went wrong !! Calling cleanup actions ... 2016-05-26 17:09:12,587 (INFO) ee : Calling cleanup actions ... 'ee_mysql_grant_host'
cat /etc/mysql/conf.d/my.cnf
[client]
host = 172.16.120.20
port = 3307
user = root
password = rootpassword
cat /etc/ee/ee.conf | grep grant-host
grant-host = %
ee -v
EasyEngine v3.6.1
Copyright (c) 2016 rtCamp Solutions Pvt. Ltd.
ee stack status
Remote MySQL found, Unable to check MySQL service status
2016-05-26 17:20:01,491 (WARNING) ee : Remote MySQL found, Unable to check MySQL service status
HHVM is not installed
2016-05-26 17:20:03,936 (INFO) ee : HHVM is not installed
nginx : Running
2016-05-26 17:20:03,958 (INFO) ee : nginx : Running
php5.6-fpm: Running
2016-05-26 17:20:03,977 (INFO) ee : php5.6-fpm: Running
php7.0-fpm: Running
2016-05-26 17:20:03,994 (INFO) ee : php7.0-fpm: Running
postfix : Running
2016-05-26 17:20:04,024 (INFO) ee : postfix : Running