Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-4669

Syslog does not setup if compiled with CMAKE_INSTALL_PREFIX

    XMLWordPrintable

Details

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

    Description

      If I compile MariaDB with a non-default CMAKE_INSTALL_PREFIX, the syslog setup stage fails during a columnstore-post-install run. As a result, these files do not appear in /var/log/mariadb/columnstore/:

      crit.log
      debug.log
      info.log
      

      /var/log/mariadb/columnstore/install/syslog_install.log has the following hints:

      ./columnstore-post-install: line 206: columnstoreSyslogSetup.sh: command not found
      

      The line 206 in columnstore-post-install is:

          columnstoreSyslogSetup.sh install > $installLogDir/syslog_install.log 2>&1
      

      Notice, it expects columnstoreSyslogSetup.sh to be in a searchable PATH (such as /usr/bin), however with CMAKE_INSTALL_PREFIX it's not necessarily the case.

      Furthermore, if I run this command manually:

      sudo ./columnstoreSyslogSetup.sh install
      

      it fails with the following output:

      ./columnstoreSyslogSetup.sh: line 231: cplogger: command not found
      ./columnstoreSyslogSetup.sh: line 231: cplogger: command not found
      ./columnstoreSyslogSetup.sh: line 231: cplogger: command not found
      

      The line 231 in columnstoreSyslogSetup.sh is:

      cplogger -i 19 "***** MariaDB Columnstore Installed *****"
      

      It also expects cplogger to be in a searchable PATH.

      To fix this problem, we need to add @ENGINE_BINDIR@/ into these files:

      oam/install_scripts/columnstore-post-install.in
      oam/install_scripts/columnstoreSyslogSetup.sh.in
      

      so the generated scripts use absolute paths to the mentioned executable files.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              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.