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

MaxCtrl reads .maxctrl.cnf from incorrect path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 6.1.0
    • Fix Version/s: N/A
    • Component/s: maxctrl
    • Labels:
      None

      Description

      Depending on your current working directory, MaxCtrl may sometimes try to read .maxctrl.cnf from an incorrect path.

      To reproduce:

      $ cd /
      $ strace -o ~/strace.out -ff maxctrl list service
      

      You will see the following error message:

      ENOENT: no such file or directory, stat '/~/.maxctrl.cnf'
      

      And the strace output will show:

      $ grep "\.maxctrl.cnf" ~/strace.out.*
      /home/ec2-user/strace.out.1731:stat("/~/.maxctrl.cnf", 0x7fff4727d5b0) = -1 ENOENT (No such file or directory)
      /home/ec2-user/strace.out.1731:stat("/~/.maxctrl.cnf", 0x7fff4727d200) = -1 ENOENT (No such file or directory)
      /home/ec2-user/strace.out.1731:stat("/~/.maxctrl.cnf", 0x7fff4727ce40) = -1 ENOENT (No such file or directory)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markus makela markus makela
              Reporter:
              GeoffMontee Geoff Montee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration