Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-3380

Cannot start backend if databaseDumps directory exists

    XMLWordPrintable

Details

    Description

      Reproduce:

      • Have a databaseDumps directory in the client directory
      • Run the start-backend script

      Expected:

      • The backend starts normally

      Observed:

      • The backend does not start

      Hint:

      The start-backend script tries to create the directory and fails if it already exists: https://github.com/camunda/camunda-optimize/blob/ed83d754bbc2f018c82b2b9108a43f6025eee70c/client/scripts/start-backend.js#L131

      We try to remove the directory when stopping the start-backend script: https://github.com/camunda/camunda-optimize/blob/ed83d754bbc2f018c82b2b9108a43f6025eee70c/client/scripts/start-backend.js#L184 but if the cleanup does not happen (e.g, because the computer crashed), the directory remains, causing the described bug on the next startup

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              sebastian.stamm Sebastian Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce