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

MaxCtrl config file check fails when executed from the root directory

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 6.1.0
    • 6.1.1
    • maxctrl
    • None

    Description

      The default config file check doesn't work in all cases as it fails with:

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

      This suggests that os.homedir() is empty and would make sense for users without home directories.

      Turns out that this is caused by the path combination code assuming that the directory returned by process.cwd() never has a trailing slash which isn't the case when the process is started from the root directory.

      A workaround to this problem is to change the current directory to anything other than the root directory (e.g. /tmp).

      Attachments

        Issue Links

          Activity

            People

              markus makela markus makela
              markus makela markus makela
              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.