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

If config file is non-existent, maxscale crashes.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.2.1, 1.3.0
    • 1.3.0
    • Core
    • None

    Description

      If maxscale is started with a non-existent configuration file and if the /var/log/maxscale directory is missing, it exits in an ugly fashion.

      wikman@jwi-mariadb:maxscale $ bin/maxscale -d 
      Info : MaxScale will be run in the terminal process.
      *
      * Warning : Failed to read the configuration file /etc/maxscale.cnf. No such file or directory.
      *
      * Opening file /var/log/maxscale/error1.log failed due 2, No such file or directory.
      Error : opening logfile /var/log/maxscale/error1.log failed.
      Error : opening log file /var/log/maxscale/error1.log failed. Exiting MaxScale
      *
      * Error : Initializing log manager failed.
      *
      ...
      skygw_log_write_flush failed.
      * Opening file /var/log/maxscale/error1.log failed due 2, No such file or directory.
      Error : opening logfile /var/log/maxscale/error1.log failed.
      Error : opening log file /var/log/maxscale/error1.log failed. Exiting MaxScale
      *
      * Error : Initializing log manager failed.
      *
      skygw_log_write failed.
      Segmentation fault (core dumped)
      wikman@jwi-mariadb:maxscale $ 

      Whatever prerequisites are missing - configuration files, directories, etc. - maxscale should exit cleanly.

      Attachments

        Activity

          People

            markus makela markus makela
            johan.wikman Johan Wikman
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.