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

Maxscale issue while installing from tar using custom basedir for ver 6.4.11 to 6.4.14

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 6.4.11, 6.4.12, 6.4.13, 6.4.14
    • N/A
    • N/A
    • None

    Description

      Unable to install maxscale from tar.gz while passing basedir for versions 6.4.11 to 6.4.14

      [maxscale@localhost maxscale]$ bin/maxscale -d --basedir=.
      info   : MaxScale will be run in the terminal process.
      alert  : Cannot create log directory '/dat/maxadm/maxscale-6.4.14/./share/maxscale/dat/maxadm/maxscale-6.4.14/./var/log/maxscale': Permission denied.
      alert  : Failed to read the directory '/dat/maxadm/maxscale-6.4.14/./share/maxscale/dat/maxadm/maxscale-6.4.14/./var/log/maxscale/dat/maxadm/maxscale-6.4.14/./var/cache/maxscale/dat/maxadm/maxscale-6.4.14/./etc/'.: No such file or directory.
       
       
      [maxscale@localhost ~]$ cd /dat/maxadm/maxscale-6.4.13.rhel.7
      [maxscale@localhost maxscale-6.4.13.rhel.7]$ bin/maxscale -d --basedir=.
      info   : MaxScale will be run in the terminal process.
      alert  : Cannot create log directory '/dat/maxadm/maxscale-6.4.13.rhel.7/./share/maxscale/dat/maxadm/maxscale-6.4.13.rhel.7/./var/log/maxscale': File exists.
      alert  : Failed to read the directory '/dat/maxadm/maxscale-6.4.13.rhel.7/./share/maxscale/dat/maxadm/maxscale-6.4.13.rhel.7/./var/log/maxscale/dat/maxadm/maxscale-6.4.13.rhel.7/./var/cache/maxscale/dat/maxadm/maxscale-6.4.13.rhel.7/./etc/'.: No such file or directory.
       
      [maxscale@localhost maxscale-6.4.12.rhel.7]$ bin/maxscale -d --basedir=.
      info   : MaxScale will be run in the terminal process.
      alert  : Cannot create log directory '/dat/maxadm/maxscale-6.4.12.rhel.7/./share/maxscale/dat/maxadm/maxscale-6.4.12.rhel.7/./var/log/maxscale': File exists.
      alert  : Failed to read the directory '/dat/maxadm/maxscale-6.4.12.rhel.7/./share/maxscale/dat/maxadm/maxscale-6.4.12.rhel.7/./var/log/maxscale/dat/maxadm/maxscale-6.4.12.rhel.7/./var/cache/maxscale/dat/maxadm/maxscale-6.4.12.rhel.7/./etc/'.: No such file or directory.
      
      

      Issue not found in 6.4.10 and older. Note: 'No such file or directory' error just needs the etc/maxscale.cnf.template file to be renamed

      [maxscale@localhost maxscale-6.4.10.rhel.7]$ bin/maxscale -d --basedir=.
      info   : MaxScale will be run in the terminal process.
      alert  : Opening file '/dat/maxadm/maxscale-6.4.10.rhel.7/etc/maxscale.cnf' for reading failed: No such file or directory.
       
       
      [maxscale@localhost maxscale-6.4.9.rhel.7]$ bin/maxscale -d --basedir=.
      info   : MaxScale will be run in the terminal process.
      alert  : Opening file '/dat/maxadm/maxscale-6.4.9.rhel.7/etc/maxscale.cnf' for reading failed: No such file or directory.
       
       
      [maxscale@localhost maxscale-6.4.8.rhel.7]$ bin/maxscale -d --basedir=.
      info   : MaxScale will be run in the terminal process.
      Failed to open file './var/log/maxscale/maxscale.log': 13, Permission denied
      alert  : Opening file '/dat/maxadm/maxscale-6.4.8.rhel.7/etc/maxscale.cnf' for reading failed: No such file or directory.
       
       
      [maxscale@localhost maxscale-6.4.7.rhel.7]$ bin/maxscale -d --basedir=.
      info   : MaxScale will be run in the terminal process.
      alert  : Opening file '/dat/maxadm/maxscale-6.4.7.rhel.7/etc/maxscale.cnf' for reading failed: No such file or directory.
      

      Latest version also seem unaffected

      [maxscale@localhost maxscale-23.08.4.rhel.7]$ bin/maxscale -d --basedir=.       2024-03-11 15:58:38   notice : MaxScale will be run in the terminal process.
       
      Configuration file : /dat/maxadm/maxscale-23.08.4.rhel.7/etc/maxscale.cnf
      Log directory      : /dat/maxadm/maxscale-23.08.4.rhel.7/./var/log/maxscale
      Data directory     : /dat/maxadm/maxscale-23.08.4.rhel.7/./var/lib/maxscale
      Module directory   : /dat/maxadm/maxscale-23.08.4.rhel.7/./lib64/maxscale
      Service cache      : /dat/maxadm/maxscale-23.08.4.rhel.7/./var/cache/maxscale
      

      Attachments

        Activity

          People

            markus makela markus makela
            susmeet.khaire Susmeet Khaire
            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.