Archived
This forum has been archived. Please start a new discussion on GitHub.
Db_runrecovery Error
Hi,
I am trying the sample program for freeze given in the Ice Manual. And am receiving an error when i try to execute the following line of code.
connection = Freeze::createConnection(communicator, "db");
Error on my console window is as follows:
"No Such File or directory"
Throws an DataBaseException with message "DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery"
Could you help me out of this.
Thanks & Regards,
Pradeep
I am trying the sample program for freeze given in the Ice Manual. And am receiving an error when i try to execute the following line of code.
connection = Freeze::createConnection(communicator, "db");
Error on my console window is as follows:
"No Such File or directory"
Throws an DataBaseException with message "DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery"
Could you help me out of this.
Thanks & Regards,
Pradeep
0
Comments
-
You need to create a directory named "db", to match the envName paramater you are passing to createConnection, in the directory you are running your application. This directory is not automatically created for you.
Regards,
Dwayne0 -
Thanks for the reply.
But I do have the folder named "db" existing where my application exe resides. It is also creating 3 files inside that, but throwing the errors0 -
Is what you show above the complete error message? Does it not indicate the name of the file that cannot be found?
Regards,
Dwayne0 -
It does show,these many lines of error
Berkeley DB: DbEnv "db": db: No Such file or directory
Berkeley DB: DbEnv "db": db:\log.00000000001: No Such file or directory
Berkeley DB: DbEnv "db": PANIC: No such file or directory ]
Berkeley DB: DbEnv "db": PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
Berkeley DB: DbEnv "db": db: No Such file or directory0 -
All these error messages indicates that the directory "db" is missing.But I do have the folder named "db" existing where my application exe resides. It is also creating 3 files inside that, but throwing the errors
The directory "db" must exist wherever you start your application. This doesn't necessarily have to be the location of your executable.0