Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-14439

Run - Shutdown script not picking up run.pid

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.18.0, 7.18.0-alpha1
    • 7.17.0
    • run
    • None

      Environment (Required on creation):

      • Latest 7.17 snapshot
      • Tested on MacOS

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      If the folder from which you start Camunda Run has blank spaces, then the run.sh script isn't able to create a run.pid file. The file is used to shut down Camunda Run when running in detached mode.

      E.g. camunda-bpm-run-ee-7.17.0-20220308.095722-125 2

      Steps to reproduce (Required on creation):

      • Start the latest snapshot of Run with a blank space in the folder name.
      • Once it's started, enter the shutdown script (shutdown.sh)

      Observed Behavior (Required on creation):

      Notice in the logs that it mentions 'Ambiguous redirect'. See screenshot

      Also, notice a message that says 'There is no instance of Camunda Run to shut down.'

      Expected behavior (Required on creation):

      The run.sh script is able to create a run.pid file. The shutdown.sh script works and the shutdown is completed.

      Root Cause (Required on prioritization):

      The BASEDIR variable stores the path to the run.sh script (ref). If there is whitespace, it is not escaped. Non-escaped path strings don't play well with other shell commands (like file creation).

      Solution Ideas (Optional):

      The BASEDIR path has escaped whitespaces.

      Hints (optional):

        This is the controller panel for Smart Panels app

            [CAM-14439] Run - Shutdown script not picking up run.pid

            There are no comments yet on this issue.

              hariharan.parasuraman Hariharan Parasuraman
              hariharan.parasuraman Hariharan Parasuraman
              Nikola Koevski Nikola Koevski
              Daniel Kelemen Daniel Kelemen
              Hariharan Parasuraman Hariharan Parasuraman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: