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

When MaxScalle is installed from tarball and starded without -d option --basedir=. is not parsed properly and full directory needs to be specified

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      [maxscale@localhost ~]$ whoami
      maxscale
      [maxscale@localhost ~]$ pwd
      /home/maxscale
      [maxscale@localhost ~]$ tar xf maxscale-23.02.1.rhel.7.tar.gz
      [maxscale@localhost ~]$ cd maxscale-23.02.1.rhel.7
      [maxscale@localhost maxscale-23.02.1.rhel.7]$ cp etc/maxscale.cnf.template etc/maxscale.cnf
      [maxscale@localhost maxscale-23.02.1.rhel.7]$ bin/maxscale --basedir=.
      [maxscale@localhost maxscale-23.02.1.rhel.7]$ tail var/log/maxscale/maxscale.log
      2023-03-22 08:12:47 notice : Log directory: ./var/log/maxscale
      2023-03-22 08:12:47 notice : Data directory: ./var/lib/maxscale
      2023-03-22 08:12:47 notice : Module directory: ./lib64/maxscale
      2023-03-22 08:12:47 notice : Service cache: ./var/cache/maxscale
      2023-03-22 08:12:47 notice : Working directory: ./var/log/maxscale
      2023-03-22 08:12:47 error : Cannot create data directory './var/lib/maxscale': No such file or directory
      2023-03-22 08:12:47 alert : Cannot create data directory './var/lib/maxscale': No such file or directory
      2023-03-22 08:12:47 warning: Failed to remove pidfile ./var/run/maxscale/maxscale.pid: No such file or directory
      2023-03-22 08:12:47 MariaDB MaxScale is shut down.
      ----------------------------------------------------

      So either full directory has to be specified or simply use $(pwd)

      Both
      bin/maxscale --basedir = /home/maxscale/maxscale-23.02.1.rhel.7
      and
      bin/maxscale --basedir = $(pwd)
      sucessfully start it

      Attachments

        Activity

          People

            markus makela markus makela
            salle Alexander Keremidarski
            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.