Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-5244

Unable to create nosql account, maxctrl tool reports an error.

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • None
    • N/A
    • nosqlprotocol
    • None
    • maxscale 24.02.2

    Description

      1. maxctrl create listener Read-Write-Service MongoDB-Listener --protocol=nosqlprotocol 'nosqlprotocol= {"user":"nosql_admin", "password": "123456"}

        '

      Unrecognized option:protocol

      --------------------------
      mongo -u admin -p 123456 192.168.137.131:17017 --authenticationDatabase admin --quiet
      Error: Authentication failed :
      connect@src/mongo/shell/mongo.js:372:17
      @(connect):3:6
      exception: connect failed
      exiting with code 1

      Attachments

        Activity

          markus makela markus makela added a comment - - edited

          You need to also pass a port to the command:

          maxctrl create listener RW-Split-Router MongoDB-Listener 5555 protocol=nosqlprotocol 'nosqlprotocol={"user":"nosql_admin","password": "123456"}'
          

          This would create it on port 5555.

          The protocol must also be defined as one of the parameters to the command, not as an option. The legacy option approach was removed from maxctrl.

          markus makela markus makela added a comment - - edited You need to also pass a port to the command: maxctrl create listener RW-Split-Router MongoDB-Listener 5555 protocol=nosqlprotocol 'nosqlprotocol={"user":"nosql_admin","password": "123456"}' This would create it on port 5555. The protocol must also be defined as one of the parameters to the command, not as an option. The legacy option approach was removed from maxctrl.

          People

            Unassigned Unassigned
            hiller1 hiller1
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.