Dear group,
I am looking into proxysql but I got kind stuck right at the beginning. The test environment is Ubuntu 16.04 in VirtualBox in case that matters.
Then I did a simple apt-get install proxysql
Checked the status of the service with systemd and proxysql does not seem to start.
root@ubuntu:/home/raupach# systemctl status proxysql
● proxysql.service - LSB: High Performance Advanced Proxy for MySQL
Loaded: loaded (/etc/init.d/proxysql; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2017-06-16 10:35:29 CEST; 6min ago
Docs: man:systemd-sysv-generator(8)
Process: 891 ExecStart=/etc/init.d/proxysql start (code=exited, status=1/FAILURE)
Jun 16 10:35:29 ubuntu systemd[1]: Starting LSB: High Performance Advanced Proxy for MySQL...
Jun 16 10:35:29 ubuntu sudo[906]: root : TTY=unknown ; PWD=/ ; USER=proxysql ; COMMAND=/usr/bin/proxysql -c /etc/proxysql.cnf -D /var/lib/proxysql
Jun 16 10:35:29 ubuntu sudo[906]: pam_unix(sudo:session): session opened for user proxysql by (uid=0)
Jun 16 10:35:29 ubuntu proxysql[891]: Starting ProxySQL: Daemon already running on PID file 0
Jun 16 10:35:29 ubuntu sudo[906]: pam_unix(sudo:session): session closed for user proxysql
Jun 16 10:35:29 ubuntu proxysql[891]: FAILED!
Jun 16 10:35:29 ubuntu systemd[1]: proxysql.service: Control process exited, code=exited status=1
Jun 16 10:35:29 ubuntu systemd[1]: Failed to start LSB: High Performance Advanced Proxy for MySQL.
Jun 16 10:35:29 ubuntu systemd[1]: proxysql.service: Unit entered failed state.
Jun 16 10:35:29 ubuntu systemd[1]: proxysql.service: Failed with result 'exit-code'.
Here is the output from the log in /var/lib/proxysql/proxysql.log
2017-06-12 15:48:32 [INFO] ProxySQL version 1.3.6-1
2017-06-12 15:48:32 [INFO] Detected OS: Linux ubuntu 4.4.0-79-generic #100-Ubuntu SMP Wed May 17 19:58:14 UTC 2017 x86_64
2017-06-12 15:48:32 [INFO] Starting ProxySQL
2017-06-12 15:48:32 [INFO] Sucessfully started
2017-06-12 15:48:32 [INFO] Angel process started ProxySQL process 9123
2017-06-12 15:48:32 ProxySQL_Admin.cpp:2912:flush_mysql_variables___database_to_runtime(): [WARNING] Impossible to set not existing variable session_debug with value "(null)". Deleting. If the variable name is correct, this version doesn't support it
2017-06-12 15:48:32 ProxySQL_Admin.cpp:2912:flush_mysql_variables___database_to_runtime(): [WARNING] Impossible to set not existing variable ping_interval_server with value "120000". Deleting. If the variable name is correct, this version doesn't support it
Standard ProxySQL Admin rev. 0.2.0902 -- ProxySQL_Admin.cpp -- Thu May 11 02:31:33 2017
Standard MySQL Threads Handler rev. 0.2.0902 -- MySQL_Thread.cpp -- Thu May 11 02:31:33 2017
Standard MySQL Authentication rev. 0.2.0902 -- MySQL_Authentication.cpp -- Thu May 11 02:31:33 2017
2017-06-12 15:48:32 [INFO] New mysql_replication_hostgroups table
Standard Query Processor rev. 0.2.0902 -- Query_Processor.cpp -- Thu May 11 02:31:33 2017
In memory Standard Query Cache (SQC) rev. 1.2.0905 -- Query_Cache.cpp -- Thu May 11 02:31:33 2017
Standard MySQL Monitor (StdMyMon) rev. 1.2.0723 -- MySQL_Monitor.cpp -- Thu May 11 02:31:33 2017
2017-06-12 15:58:45 ProxySQL_GloVars.cpp:9:term_handler(): [WARNING] Received TERM signal: shutdown in progress...
2017-06-12 15:58:45 ProxySQL_GloVars.cpp:9:term_handler(): [WARNING] Received TERM signal: shutdown in progress...
2017-06-12 15:58:45 [INFO] Starting shutdown...
Not sure if it is related: the unit file looks different from the one in the proxysql source directory.
root@ubuntu:~# systemctl cat proxysql
# /run/systemd/generator.late/proxysql.service
# Automatically generated by systemd-sysv-generator
[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/init.d/proxysql
Description=LSB: High Performance Advanced Proxy for MySQL
Before=multi-user.target
Before=multi-user.target
Before=multi-user.target
Before=graphical.target
Before=shutdown.target
After=local-fs.target
Conflicts=shutdown.target
[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/init.d/proxysql start
ExecStop=/etc/init.d/proxysql stop
Thanks in advance!
kind regards,
Björn