Skip to content

Relative -datadir=... broken #1125

@laanwj

Description

@laanwj

Trying to start my testnet-in-a-box instances (with master) I get the following error in the console:

Command line:

orion@amethyst:~/projects/bitcoin/box$ ../bitcoin/src/bitcoind -datadir=1 -daemon

************************
EXCEPTION: 22DbRunRecoveryException       
DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery       
bitcoin in AppInit()       

terminate called after throwing an instance of 'DbRunRecoveryException'
  what():  DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery

debug.log shows:

Bitcoin version v0.6.0-169-g4040598-beta (2012-04-19 18:21:45 +0200)
Default data directory /home/orion/.bitcoin
Loading addresses...
dbenv.open LogDir=1/testnet/database ErrorFile=1/testnet/db.log
************************
EXCEPTION: 22DbRunRecoveryException       
DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery       
bitcoin in AppInit()      

db.log shows:

1/testnet/1/testnet/database: No such file or directory
PANIC: No such file or directory
unable to join the environment

I've deleted everything except wallet.dat from the data directory, so that cannot be the problem.

Note the weird 1/testnet/1/testnet/database. Maybe something is going wrong while building the path?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions