Page 1 of 1
Users deleted after reboot.
PostPosted:Mon Jun 04, 2012 3:51 pm
by K9Sports
Sorry if this has already been covered but couldn't find it in the searches.
I've set up users fine and it sticks until I reboot. This includes changing the okmadmin account with email and password. After I reboot the server, every user is deleted and the okmadmin account is reset back to default.
I'm sure it's a permissions thing somewhere but don't know where to look.
Help is very appreciated.
Thanks.
Re: Users deleted after reboot.
PostPosted:Mon Jun 04, 2012 4:14 pm
by fabpicca
I know I'm about to give a trivial answer so please forgive me in advance, but did you checked this?
From OpenKM 5.x there's a property definition in OpenKM.cfg to automatically create the OpenKM database. Once the tables are created, change the hibernate.hbm2ddl property from create to none. Do this after running the application for the first time. If you don't, the repository will be deleted and re-created the next time OpenKM starts.
(
http://wiki.openkm.com/index.php/Quick_ ... :_OpenKM_5)
Otherwise each time you reboot (and thus restart jboss), you'll get your DB erased!
Re: Users deleted after reboot.
PostPosted:Mon Jun 04, 2012 4:15 pm
by jllort
Re: Users deleted after reboot.
PostPosted:Mon Jun 04, 2012 5:27 pm
by K9Sports
I saw that but it's mentioning the repository. The repository is fine and is untouched. I'm just having issues with user accounts. I'll give it a try anyways.
Re: Users deleted after reboot.
PostPosted:Tue Jun 05, 2012 7:34 am
by jllort
If you do not change hibernate.hbm2ddl=none then the okm_app tables will be re-created each time you start openkm