-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
S
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