Installed mysql governor and not getting it to work
Announcement
Collapse
No announcement yet.
MySQL Governor failing
Collapse
X
-
Hello,
Wanted to test mysql governor on a live server, but have some issues.
Installed it and did try to start it:
[~]# service db_governor restart
Stopping /usr/sbin/db_governor: [FAILED]
Starting /usr/sbin/db_governor: [ OK ]
When checking status I get:
service db_governor status
db_governor dead but pid file exists
How to fix that?
-
Also tried setting lve-mode to on but error:
dbctl --lve-mode on
Configuration saved. Unable to apply to live instance - cant connect to socket. Maybe governor is not started
fs.suid_dumpable = 1 was also added correctly when installed.
Did install governor-mysql.x86_64 0:1.0-89.el6.cloudlinux
Comment
-
Hello,
Could you please try our latest version? Just released: http://www.cloudlinux.com/blog/clnew...r-updated-.php
Comment
-
Did just try 1.0-93.el6.cloudlinux, but same message:
root@c [~]# service db_governor stop
Stopping /usr/sbin/db_governor: [FAILED]
root@c [~]# service db_governor start
Starting /usr/sbin/db_governor: [ OK ]
root@c [~]# service db_governor status
db_governor dead but pid file exists
Are there any logs I can check?
Comment
-
[Tue May 26 15:21:44 2015] Failed governor daemon, restart daemon
[Tue May 26 15:22:23 2015] Open govern connection operation
[Tue May 26 15:22:23 2015] Try to connect with options from dbgovernor config file
[Tue May 26 15:22:23 2015] Try to connect with no password under root
[Tue May 26 15:22:23 2015] Open write connection operation
[Tue May 26 15:22:23 2015] Try to connect with options from dbgovernor config file
[Tue May 26 15:22:23 2015] Try to connect with no password under root
[Tue May 26 15:22:23 2015] Try to connect with options from dbgovernor config file
[Tue May 26 15:22:23 2015] Try to connect with no password under root
[Tue May 26 15:22:23 2015] Update your MySQL to CLL version from repo.cloudlinux.com. Current is 5.5.42-cll
[Tue May 26 15:22:23 2015] Incorrect mysql version
Found these.
Is MySQL version the problem?
Comment
-
Yeah, looks like that is not our MySQL version, as of now what you have to do is:
/usr/share/lve/dbgovernor/db-select-mysql --mysql-version=mysql55
/usr/share/lve/dbgovernor/mysqlgovernor.py --install
And.. did you follow http://docs.cloudlinux.com/installation3.html ?
Comment
-
That did work! :-)
But you should add /usr/share/lve/dbgovernor/db-select-mysql --mysql-version=mysql55 to the howto!
Also, Im getting this now:
Problems were detected with cPanel-provided files which are RPM controlled.
If you did not make these changes intentionally, you can correct them by running:
> /usr/local/cpanel/scripts/check_cpanel_rpms --fix
The following RPMs are missing from your system:
MySQL55-client-5.5.42-2.cp1148
MySQL55-devel-5.5.42-2.cp1148
MySQL55-server-5.5.42-2.cp1148
MySQL55-shared-5.5.42-2.cp1148
MySQL55-test-5.5.42-2.cp1148
compat-MySQL50-shared-5.0.96-4.cp1136
compat-MySQL51-shared-5.1.73-7.cp1136
What do I do with them?
Comment
-
Hello,
can you show me such file:
cat /var/cpanel/rpm.versions.d/cloudlinux.versions
and add such strings to /var/cpanel/rpm.versions.d/local.versions:
---
file_format:
version: 2
install_targets: {}
rpm_locations: {}
srpm_sub_packages: {}
srpm_versions: {}
target_settings:
MySQL50: unmanaged
MySQL51: unmanaged
MySQL55: unmanaged
MySQL56: unmanaged
clamav: installed
easy-tomcat7: uninstalled
url_templates: {}
and show content of directory:
ls -l /var/cpanel/rpm.versions.d
?
Comment
-
I have now added these to local.versions:
MySQL50: unmanaged
MySQL51: unmanaged
MySQL55: unmanaged
MySQL56: unmanaged
cat: /var/cpanel/rpm.versions.d/cloudlinux.versions: No such file or directory
-rw-r--r-- 1 root root 2518 May 13 14:00 easy.versions
-rw-r--r-- 1 root root 279 May 28 20:08 local.versions
Comment
Comment