Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

private network, empty database, config expects BONSAI #6804

Closed
macfarla opened this issue Mar 26, 2024 · 4 comments · Fixed by #6809
Closed

private network, empty database, config expects BONSAI #6804

macfarla opened this issue Mar 26, 2024 · 4 comments · Fixed by #6809
Assignees
Labels
non mainnet (private networks) not related to mainnet features - covers privacy, permissioning, IBFT2, QBFT

Comments

@macfarla
Copy link
Contributor

even starting with an empty database, I'm getting the error Caused by: org.hyperledger.besu.plugin.services.exception.StorageException: Database format mismatch: DB at /Users/sallymacfarlane/workspace/besu-local-nodes/workdir/besu1/data is FOREST but config expects BONSAI. Please check your config.

config is long but 90% of it is commented out

data-path="workdir/besu1/data"
logging="DEBUG"
#logging="TRACE"
revert-reason-enabled=true
#network="goerli"
#sync-min-peers=1
#sync-mode="X_SNAP"
#data-storage-format="FOREST"

#plugin-linea-deny-list-path=besuDenyList.txt

#rpc-http-authentication-enabled=true
#rpc-http-authentication-credentials-file="workdir/besu1/creds.toml"

#tx-pool-limit-by-account-percentage=1.0

Xplugin-rocksdb-high-spec-enabled=true

#graphql-http-enabled=true

#rpc-http-tls-protocol=["TLSv1.3,TLSv1.2"]
#rpc-http-tls-cipher-suite=["TLS_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"]
#rpc-http-tls-enabled=true

#Xmerge-support=true
Xdns-enabled=true
#Xdns-update-enabled=true

#genesis-file="config/besu/genesis.json"
genesis-file="config/besu/genesis-ibft2.json"
#genesis-file="lacchain-genesis.json"
node-private-key-file="workdir/besu1/keys/besu1.priv"

#miner-enabled=true
#miner-coinbase="0x0000000000000000000000000000000000000000"

#bootnodes=[
#        "enode://fcbe9f83218487b3c0b50878193880e6c25cfd86708c0a0bf0ca91f0ce633746a892fe240afa5b9a880b8bca48e8a22704ef937fdda2d7cc63e4d41ed1b417ae@127.0.0.1:30303"
#]

#discovery-enabled=false
p2p-host="127.0.0.1"
p2p-port=30303
p2p-peer-upper-bound=111
#Xp2p-peer-lower-bound=69

min-gas-price=0

host-allowlist=["*"]

rpc-http-enabled=true
#rpc-http-api=["ADMIN","ETH","NET","WEB3","PERM","DEBUG","MINER","EEA","PRIV","TXPOOL","TRACE","ROLLUP"]
rpc-http-api=["ADMIN","ETH","NET","WEB3","PERM","DEBUG","MINER","EEA","PRIV","TXPOOL","TRACE"]
rpc-http-host="0.0.0.0"
rpc-http-port=8545
rpc-http-cors-origins=["*"]
rpc-http-max-active-connections=160

rpc-ws-enabled=true
rpc-ws-api=["ADMIN","ETH","NET","WEB3","PERM","DEBUG","MINER","EEA","PRIV","TXPOOL"]
rpc-ws-host="0.0.0.0"
rpc-ws-port=8546

#metrics-enabled=true
#metrics-push-enabled=true
#metrics-push-port=9091
#metrics-push-host="127.0.0.1"

privacy-enabled=true
privacy-url="http://127.0.0.1:8881"
privacy-public-key-file="workdir/orion1/keys/orion.pub"
privacy-marker-transaction-signing-key-file="workdir/besu1/keys/besu1.priv"
#privacy-marker-transaction-signing-key-file="workdir/besu1/keys/account1.priv"

#privacy-flexible-groups-enabled=true

permissions-accounts-config-file-enabled=false
permissions-accounts-config-file="workdir/besu1/permissioning.toml"
permissions-nodes-config-file-enabled=false
permissions-nodes-config-file="workdir/besu1/permissioning.toml"

permissions-accounts-contract-enabled=false
permissions-accounts-contract-address="0x0000000000000000000000000000000000008888"
permissions-nodes-contract-enabled=false
permissions-nodes-contract-address="0x0000000000000000000000000000000000009999"
permissions-nodes-contract-version=2
@macfarla
Copy link
Contributor Author

it's because of privacy.

@macfarla
Copy link
Contributor Author


2024-03-26 11:48:41.238+10:00 | main | INFO  | KeyPairUtil | Loaded public key 0xfcbe9f83218487b3c0b50878193880e6c25cfd86708c0a0bf0ca91f0ce633746a892fe240afa5b9a880b8bca48e8a22704ef937fdda2d7cc63e4d41ed1b417ae from /Users/sallymacfarlane/workspace/besu-local-nodes/workdir/besu1/keys/besu1.priv
2024-03-26 11:48:41.257+10:00 | main | INFO  | RocksDBKeyValuePrivacyStorageFactory | No existing private database at /Users/sallymacfarlane/workspace/besu-local-nodes/workdir/besu1/data. Using default metadata for new db versionedStorageFormat=PrivateVersionedStorageFormat{versionedStorageFormat=BaseVersionedStorageFormat{format=FOREST, version=2}, privacyVersion=OptionalInt[1]}
2024-03-26 11:48:41.273+10:00 | main | INFO  | DatabaseMetadata | Lookup database metadata file in data directory: /Users/sallymacfarlane/workspace/besu-local-nodes/workdir/besu1/data
2024-03-26 11:48:41.294+10:00 | main | ERROR | Besu | Failed to start Besu
picocli.CommandLine$ExecutionException: Database format mismatch: DB at /Users/sallymacfarlane/workspace/besu-local-nodes/workdir/besu1/data is FOREST but config expects BONSAI. Please check your config.

@macfarla
Copy link
Contributor Author

so adding data-storage-format=FOREST to config - it starts up

@macfarla
Copy link
Contributor Author

using --profile=private did not fix since that specifies FAST sync which doesn't work w privacy

@macfarla macfarla self-assigned this Mar 26, 2024
@macfarla macfarla added non mainnet (private networks) not related to mainnet features - covers privacy, permissioning, IBFT2, QBFT and removed mainnet labels Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non mainnet (private networks) not related to mainnet features - covers privacy, permissioning, IBFT2, QBFT
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants