Cannot start backend if databaseDumps directory exists

XMLWordPrintable

      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

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Sebastian Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: