Open whisperity opened 6 years ago
Bump: This issue is still here with 6.11 release version, even if the server is not using Postgres.
My current scenario:
Default
Default.sqlite
so I deleted that tooCreate initial RUN database on non-empty CONFIG database
Default.sqlite
recreated with empty schema, currently about 172K in size.Neither of the two products I actively use is the Default
one.
There is no reference to Default
in the config.sqlite
file.
If I start a server and configure a postgresql-backed product, then delete the default product, stop the server, and also remove the
Default.sqlite
file, and then start the server again, the following happens:Default.sqlite
file, even though it's not needed.create_initial_run_database
which throws an exception.After this, if the server is attempted to be started again, it will start, and the
Default
product will NOT be in the configuration – even though the file for exists.My first hunch is that this was messed up when the new schema migration logic was implemented. The exception is rightful, the server should not add back a Default product if it was explicitly removed.
The control flow should be changed so this function is not called if not needed.