[MXS-1872] maxctrl utility is not working and getting "Access denied" error Created: 2018-05-17 Updated: 2018-06-02 Resolved: 2018-06-02 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | maxctrl |
| Affects Version/s: | 1.0.0 |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Venkatarao Beru | Assignee: | markus makela |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Development |
||
| Description |
|
Hi, When we try to invoke maxctrl utility we are getting the following error/warning [maxscale@dbcct3vmyd01006 ~]$ maxctrl --version ] Maxscale log file warnings: 2018-05-17 05:23:03 warning: Authentication failed for 'maxscale', using password. Request: GET /v1/ Find out output of all users at maxadmin [maxscale@dbcct3vmyd01006 ~]$ maxadmin Also would like to know how to create an admin account under Created network accounts (insecure): Thanks, |
| Comments |
| Comment by markus makela [ 2018-05-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
To create a network account in an existing MaxScale installation, execute maxadmin add user <user> <password>. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Venkatarao Beru [ 2018-05-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you Makela. Now the admin user has been created. MaxScale> show users But i have not get any update regarding my query that "maxctrl" is not working but got the following error [maxscale@dbcct3vmyd01006 ~]$ maxctrl ] maxscale.cnf file configuration as follows
Thanks, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2018-05-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
You have to define the user and password with maxctrl -u <user> -p <password> to use a specific user. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Venkatarao Beru [ 2018-05-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I tried as you suggested but still i could not able to get maxctrl prompt [maxscale@dbcct3vmyd01006 ~]$ maxadmin [maxscale@dbcct3vmyd01006 ~]$ maxctrl -u root -p ] [maxscale@dbcct3vmyd01006 ~]$ maxctrl -u maxscale -p [maxscale@dbcct3vmyd01006 ~]$ maxctrl -u maxscale -p ] Please suggest how can we fix this issue! Thanks, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2018-05-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
You must use the network accounts, not the MaxAdmin UNIX accounts: Created network accounts (insecure): admin | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Venkatarao Beru [ 2018-05-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tried with "admin" user but not allowing $ maxctrl -u admin -p ] Thanks, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Venkatarao Beru [ 2018-05-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$ maxctrl --user=admin --password='mariadb' ] $ maxctrl --user=admin --password='*****' --hosts=localhost:6600 { "bytesParsed": 0, "code": "HPE_INVALID_CONSTANT" }$ maxctrl --user=admin --password='*****' --hosts=SERVER3:6600 { "code": "ECONNREFUSED", "errno": "ECONNREFUSED", "syscall": "connect", "address": "XX.XX.XX.XXX", "port": 6600 } | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2018-05-21 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
If you reset the admin users by removing the /var/lib/maxscale/passwd file, does it work? Remember to take a backup of the file before removing it if it contains actual users that work. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2018-06-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Closing this as Not a Bug. If you can create a repeatable test case that reproduces the problem, please reopen this issue. |