Open unki opened 5 years ago
Hi Andreas,
Thank you for the report. The second issue is likely to be resolved already. I am not familiar with OpenVAS: can you help us with a quick step-by-step reproducible case?
Thanks
Hi René,
You could do it with the virtual-appliance that OpenVAS is offering here.
https://$appliance_ip:9392
.These are the ProxySQL settings that I've modified:
| admin-mysql_ifaces | 0.0.0.0:6032;/tmp/proxysql_admin.sock |
| admin-web_enabled | true |
| mysql-have_ssl | true |
| mysql-interfaces | 0.0.0.0:33306;/tmp/proxysql.sock |
| mysql-max_allowed_packet | 16777216 |
| mysql-max_connections | 5000 |
| mysql-monitor_password | xxxxxx |
| mysql-monitor_username | monitor |
| mysql-ssl_p2s_ca | /etc/ssl/example.com/server_ca.pem |
| mysql-ssl_p2s_cert | /etc/ssl/lb3.example.com_crt.pem |
| mysql-ssl_p2s_key | /etc/ssl/private/lb3.example.com_key.pem |
Hello!
I have the situation where a vulnerability scan with OpenVAS (latest version) takes down a ProxySQL instance - approx. in 33% of my attempts.
What happens is that ProxySQL records a crash in
proxysql.log
and then seems to automatically restart - but claims being unable to bind to port6032/tcp
again:The reason for not being able to bind on
6032/tcp
seems to be leftoverproxysql_galera_checker.sh
processes after the ProxySQL restartThose have actually invoked a MariaDB client process that is also hanging around after the ProxySQL restart:
And the fun fact is, that this MariaDB client process is suddenly listening on port
6032
after the crash - and also on33306/tcp
which is thelisten_port
I'm using.So it seems, in case of a crash, the
proxysql_galera_checker.sh
and with it the MariaDB client have somehow obtained the listening ports from the crashing ProxySQL instance.So basically there are two issues:
proxysql_galera_checker.sh
via the scheduler, as the child processes of the crashing process somehow obtain the listening ports. And the newly starting ProxySQL instance is then unable to bind to the listing ports itself.I know How-to-report-a-crash-bug - but do you need anything else beside what is mentioned there?
Regards, Andreas