[MXS-1120] Could not read password prompt from MaxScale. Created: 2017-02-02 Updated: 2017-03-14 Resolved: 2017-03-14 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | maxadmin |
| Affects Version/s: | 2.0.3, 2.0.4 |
| Fix Version/s: | 2.0.5, 2.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Wesley Schaft | Assignee: | Timofey Turenko |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS 6.8 |
||
| Description |
|
We use maxadmin to monitor the status of our database servers. In MaxScale 1.4.3 this went well. But since we've upgraded to 2.0.3 (and 2.0.4 today), every now and then the output of maxadmin is: "Could not read password prompt from MaxScale." And we get an alert from our monitoring system. Our command (password removed):
It can be reproduced by running this command in a for loop:
|
| Comments |
| Comment by Johan Wikman [ 2017-02-06 ] | ||||||||||
|
Are you using maxadmin over the network or on the same host where MaxScale is running? If on the same host, then could you please try using a domain socket instead of an inet socket in the communication between maxadmin and MaxScale. | ||||||||||
| Comment by Wesley Schaft [ 2017-02-07 ] | ||||||||||
|
We're using it on the same host where MaxScale is running. I just changed the configuration to use a domain socket instead of an inet socket. | ||||||||||
| Comment by Wesley Schaft [ 2017-02-07 ] | ||||||||||
|
Running the maxadmin command as root works like charm. However, our monitoring user (zabbix) isn't authorized: As user 'zabbix':
As root:
| ||||||||||
| Comment by Johan Wikman [ 2017-02-07 ] | ||||||||||
|
Invoke maxadmin as root. Then: MaxAdmin> enable account zabbix After that, you should be able to use maxadmin as zabbix. | ||||||||||
| Comment by Wesley Schaft [ 2017-02-08 ] | ||||||||||
|
The thing is, every command in maxadmin seems to fail and I'm getting my prompt back. Return code is 141, as you can see in my previous comment. | ||||||||||
| Comment by Wesley Schaft [ 2017-02-08 ] | ||||||||||
|
This seems to work however:
| ||||||||||
| Comment by Wesley Schaft [ 2017-02-08 ] | ||||||||||
|
I did some more testing and apparently maxadmin sometimes doesn't give any output. Doing a for loop and expecting 70 as output (because of 7 running servers):
| ||||||||||
| Comment by markus makela [ 2017-02-15 ] | ||||||||||
|
This might be related to | ||||||||||
| Comment by Wesley Schaft [ 2017-02-15 ] | ||||||||||
|
I've changed connection_timeout=3600 to connection_timeout=8640000, but it didn't help. | ||||||||||
| Comment by markus makela [ 2017-02-15 ] | ||||||||||
|
Have you added the connection_timeout=8640000 to all services? | ||||||||||
| Comment by Wesley Schaft [ 2017-02-15 ] | ||||||||||
|
I've only changed it for the Splitter Service. That didn't help. Running the for loop over and over again, the result is always the same. Thank you markus. | ||||||||||
| Comment by Wesley Schaft [ 2017-02-15 ] | ||||||||||
|
The maxadmin interface itself is also working now.
|