Uploaded image for project: 'ProxySQL Admin Scripts'
  1. ProxySQL Admin Scripts
  2. PSQLADM-44

proxysql_galera_checker errors in proxysql.log file if wrong credentials passed

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If we pass wrong proxysql credentials in proxysql-admin.cnf I get following in proxysql.log:

      2018-04-11 11:19:12 [INFO] Received SAVE MYSQL SERVERS TO DISK command
      2018-04-11 11:19:12 [INFO] Received LOAD MYSQL QUERY RULES TO RUNTIME command
      2018-04-11 11:19:12 [INFO] Received SAVE MYSQL QUERY RULES TO DISK command
      2018-04-11 11:19:13 [INFO] Received LOAD SCHEDULER TO RUNTIME command
      2018-04-11 11:19:13 [INFO] Received SAVE SCHEDULER TO DISK command
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      /usr/bin/proxysql_galera_checker: line 460: [: -eq: unary operator expected
      /usr/bin/proxysql_galera_checker: line 492: [: too many arguments
      /usr/bin/proxysql_galera_checker: line 538: [: too many arguments
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      /usr/bin/proxysql_galera_checker: line 460: [: -eq: unary operator expected
      /usr/bin/proxysql_galera_checker: line 492: [: too many arguments
      /usr/bin/proxysql_galera_checker: line 538: [: too many arguments
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      /usr/bin/proxysql_galera_checker: line 460: [: -eq: unary operator expected
      /usr/bin/proxysql_galera_checker: line 492: [: too many arguments
      /usr/bin/proxysql_galera_checker: line 538: [: too many arguments
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      /usr/bin/proxysql_galera_checker: line 460: [: -eq: unary operator expected
      /usr/bin/proxysql_galera_checker: line 492: [: too many arguments
      /usr/bin/proxysql_galera_checker: line 538: [: too many arguments
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      ERROR 1045 (28000): ProxySQL Error: Access denied for user 'adminaaa'@'' (using password: YES)
      /usr/bin/proxysql_galera_checker: line 460: [: -eq: unary operator expected
      /usr/bin/proxysql_galera_checker: line 492: [: too many arguments
      /usr/bin/proxysql_galera_checker: line 538: [: too many arguments
      

      Access denied is fine, but those "unary operator expected" and "too many arguments" look unclean.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                ramesh.sivaraman Ramesh Sivaraman
                Reporter:
                tomislav.plavcic@percona.com Tomislav Plavcic
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 50 minutes
                  1h 50m