Db_runrecovery Error

pradeeppradeep PradeepOrganization: E2 SolutionsProject: E2 FinancialMember
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

Comments

  • dwaynedwayne St. John's, NewfoundlandDwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications EngineMember
    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,
    Dwayne
  • pradeeppradeep PradeepOrganization: E2 SolutionsProject: E2 FinancialMember
    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 errors
  • dwaynedwayne St. John's, NewfoundlandDwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications EngineMember
    Is what you show above the complete error message? Does it not indicate the name of the file that cannot be found?

    Regards,
    Dwayne
  • pradeeppradeep PradeepOrganization: E2 SolutionsProject: E2 FinancialMember
    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 directory
  • marcmarc FloridaMarc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications EngineAdministrators, ZeroC Staff ZeroC Staff
    All these error messages indicates that the directory "db" is missing.
    pradeep wrote: »
    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.
Sign In or Register to comment.