tee8z / doppler

A tool for building out a local regtest environment
Creative Commons Zero v1.0 Universal
38 stars 7 forks source link

Doppler not running on MacOS (Intel) #69

Closed AustinKelsay closed 4 months ago

AustinKelsay commented 4 months ago

This is what I get when I try to run the basic_setup script. I had docker desktop open when running this. Also tried it with docker-compose and docker compose. Cheers!

Doppler issue:
plebdev@plebdevs-MacBook-Pro doppler % cargo run --bin doppler -- -f "doppler_files/simple_example/basic_setup.doppler"
warning: value assigned to `subcommand` is never read
   --> src/lnd_actions/lnd_cli.rs:391:17
    |
391 |         let mut subcommand = String::from("");
    |                 ^^^^^^^^^^
    |
    = help: maybe it is overwritten before being read?
    = note: `#[warn(unused_assignments)]` on by default

warning: `doppler` (lib) generated 1 warning
    Finished dev [unoptimized + debuginfo] target(s) in 0.48s
     Running `target/debug/doppler -f doppler_files/simple_example/basic_setup.doppler`
version: 0.5
 Apr 12 22:00:34.115 INFO rest false
 Apr 12 22:00:36.696 INFO connect to doppler-lnd-lnd1 via rest using https://localhost:9097 and via grpc using 9098 with admin.macaroon found at localhost:/Users/plebdev/Desktop/doppler/data/lnd1/.lnd/data/chain/bitcoin/regtest/admin.macaroon
 Apr 12 22:00:36.696 INFO connect to doppler-lnd-lnd2 via rest using https://localhost:9100 and via grpc using 9101 with admin.macaroon found at localhost:/Users/plebdev/Desktop/doppler/data/lnd2/.lnd/data/chain/bitcoin/regtest/admin.macaroon
 Apr 12 22:00:36.696 INFO connect to doppler-lnd-lnd3 via rest using https://localhost:9103 and via grpc using 9104 with admin.macaroon found at localhost:/Users/plebdev/Desktop/doppler/data/lnd3/.lnd/data/chain/bitcoin/regtest/admin.macaroon
 Apr 12 22:00:36.698 INFO (start up): docker compose -f doppler-cluster.yaml up -d
 Apr 12 22:00:43.380 INFO (create wallet): docker compose -f doppler-cluster.yaml exec --user 1000:1000 doppler-bitcoind-miner-bd1 bitcoin-cli --datadir=/home/bitcoin/.bitcoin createwallet doppler-bitcoind-miner-bd1
 Apr 12 22:00:43.567 INFO (load wallet): docker compose -f doppler-cluster.yaml exec --user 1000:1000 doppler-bitcoind-miner-bd1 bitcoin-cli --datadir=/home/bitcoin/.bitcoin loadwallet doppler-bitcoind-miner-bd1
 Apr 12 22:00:43.756 ERRO failed to load wallet for bd1:  service "doppler-bitcoind-miner-bd1" is not running
 Apr 12 22:00:43.756 INFO (getnewaddress): docker compose -f doppler-cluster.yaml exec --user 1000:1000 doppler-bitcoind-miner-bd1 bitcoin-cli -rpcwallet=doppler-bitcoind-miner-bd1 --datadir=/home/bitcoin/.bitcoin getnewaddress
thread 'main' panicked at src/workflow.rs:31 :44:
failed to start the cluster: failed to create new address
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Apr 12 22:00:43.942 ERRO Failed to start cluster from generated compose file: failed to create new address
tee8z commented 4 months ago

Great find! I've been able to get this reproducible and will work on a fix, thank you for making the issue