getting error while running dfx start --clean --background
Running dfx start for version 0.15.1
Using the default definition for the 'local' shared network because /home/akash/.config/dfx/networks.json does not exist.
Version v0.15.1 installed successfully.
thread 'main' panicked at 'Error creating db for artifacts: Corrupted', rs/artifact_pool/src/lmdb_pool.rs:351:39
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'replica-actor' panicked at 'called `Result::unwrap()` on an `Err` value: Cannot start the replica: timed out', src/dfx/src/actors/replica.rs:393:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)
also tried reinstalling dfx, but still the same error
tried with the latest dfx version too, but the error persist
Running dfx start for version 0.24.1
Using the default configuration for the local shared network.
thread 'main' panicked at rs/artifact_pool/src/lmdb_pool.rs:446:39:
Error creating db for artifacts: Corrupted
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: An error happened during communication with the replica: error sending request for url (http://127.0.0.1:4943/api/v2/status)
Caused by: error sending request for url (http://127.0.0.1:4943/api/v2/status)
Caused by: client error (Connect)
Caused by: tcp connect error: Connection refused (os error 111)
Caused by: Connection refused (os error 111)
Not looking great TBH. If you are on WSL1 you can try it on WSL2 as well. That has much better chances at working.
@mraszyk do you know if PocketIC has any chance at working on WSL2?
WSL has a few broken APIs that otherwise are available on *nix. Some people occasionally get dfx start running in a docker container, but I don’t know of a currently working example.
Hey, I tried to run the command in Linux based system, but still running into errors
┌──(kali㉿kali)-[~/Documents/hello]
└─$ dfx start --clean --background
Running dfx start for version 0.24.1
Using the default configuration for the local shared network.
Error: An error happened during communication with the replica: error sending request for url (http://127.0.0.1:4943/api/v2/status)
Caused by: error sending request for url (http://127.0.0.1:4943/api/v2/status)
Caused by: client error (Connect)
Caused by: tcp connect error: Connection refused (os error 111)
Caused by: Connection refused (os error 111)
I’m trying on ubuntu now, it is running i guess but when i try to open the url http://127.0.0.1:4943/ it’s showing canister_id_not_found
here;s the terminal
mrsky@mrsky-VirtualBox:~/Documents/hello$ dfx start --clean --background
Running dfx start for version 0.24.1
Using the default configuration for the local shared network.
Initialized replica.
Initialized HTTP gateway.
Replica API running on 127.0.0.1:4943
mrsky@mrsky-VirtualBox:~/Documents/hello$ dfx canister create --all
Creating canister mini-icp-backend...
Creating a wallet canister on the local network.
The wallet canister on the "local" network for user "default" is "bnz7o-iuaaa-aaaaa-qaaaa-cai"
mini-icp-backend canister created with canister id: bkyz2-fmaaa-aaaaa-qaaaq-cai
Creating canister mini-icp-frontend...
mini-icp-frontend canister created with canister id: bd3sg-teaaa-aaaaa-qaaba-cai