Page 1 of 1

Failed to start database in /workspace/default/db

PostPosted:Sun Jan 22, 2012 10:02 am
by marwan_mostafa
Dear Sir

i have install openkm with repository installed on NAS Storage over network and everything is going ok yestaerday my NAS was dissconected from network when i fixed it and try to start the openkm service again it give me error in startup with Failed to start database in /workspace/default/db

attached with this topic my server.log file

i need a help please coz i have not backup :(

Re: Failed to start database in /workspace/default/db

PostPosted:Mon Jan 23, 2012 9:26 pm
by pavila
Code: Select all
2012-01-22 11:59:46,339 WARN  [org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager] Could not connect; driver: org.apache.derby.jdbc.EmbeddedDriver url: jdbc:derby:/mnt/repository/workspaces/default/db;create=true user: null error: java.sql.SQLException: Failed to start database '/mnt/repository/workspaces/default/db', see the next exception for details.
java.sql.SQLException: Failed to start database '/mnt/repository/workspaces/default/db', see the next exception for details.
Database has been corrupted.

Re: Failed to start database in /workspace/default/db

PostPosted:Tue Jan 24, 2012 9:00 am
by marwan_mostafa
so is there any solution except the backup to repair and open it again??????

Re: Failed to start database in /workspace/default/db

PostPosted:Wed Jan 25, 2012 11:29 am
by pavila
Well, using the default embedded database is good but is difficult to recover in case or problems. It better use a real database like MySQL or PostgreSQL. Anyway the database files does not corrupt alone. Very often people install a server without a UPS and if the power supply is not stable (never is stable) the disk can be damaged. Or if the computer was shutted down due to a power failure. There lots of things which can hurt you data. For this reason the backups are important.

If you don't have backup and need to recover the information, we can try to help you but cost money as you can guess.