timesketch icon indicating copy to clipboard operation
timesketch copied to clipboard

Don't create database tables automatically

Open berggren opened this issue 6 years ago • 2 comments

When the server is started the database will get initialized and any missing tables will be created. This causes problems when a WSGI server is started with multiple workers. They will race to create the tables.

The fix is to have an explicit call to create_all tables where the admin can create any missing tables or set up the system from scratch.

berggren avatar Jun 18 '18 07:06 berggren

@berggren isn't this fixed by now?

kiddinn avatar Jun 19 '20 13:06 kiddinn

@kiddinn Not quite. I need to take a look at this again, but is something we probably need to fix.

berggren avatar Jun 26 '20 09:06 berggren

Will close this, as it was open almost 5 years :-)

jaegeral avatar Mar 28 '23 15:03 jaegeral