Skip to content

Troubleshooting

mugleproject edited this page Aug 7, 2022 · 1 revision

Errors from mugle commands

Wallet: Coins are ‘confirmed but still locked’?

Like other cryptocurrencies, newly mined coins are time locked, so mined coins can’t be spent immediately. The lock time, a.k.a. COINBASE_MATURITY, is set to 1000 blocks on testnet1.

Wallet: What’s my IP:port to test receiving coins?

This is your wallet base URL, something like http://1.2.3.4:16815 NOTE: Run `mugle wallet -e listen` to make your wallet reachable from outside.

Server: “Peer request error” or other peer/network issues after restarting mugle server

Possible workaround is rm -rf .mugle/peers/* then restart.

Server: mugle server or wallet crashes or hangs

Yes, this still happens quite often. You’ll need to babysit mugle. Very welcome any solutions to give mugle a “watchdog” solution that can restart mugle in case of trouble.

Build errors

Build error: Could not compile `tokio-retry`

You might want to remove any previous rust installations to avoid conflicts. Use `rustup` to [reinstall rust and cargo as described](build.md).

NOTE: If you install rust or cargo with your package manager (most Linuxes anno 2017) you’ll get too old versions. On Debian, you might have to manually compile cmake or get it from non-detault repositories.

Build error: `failed to select a version for ‘serde_json’`

Run `cargo update` to fix this

Build error: can’t compile crate `bitflags`

Chech `rustc –version` and note that bitflags requires rust 1.21 or newer. Install via `rustup` and recommended you also remove any rust/cargo installed via your package manager.

Build error: can’t locate stdarg.h

If librocksdb-sys fails to build, try symlinking stddef.h and stdarg.h from the gcc5 include directory. So probably from /usr/lib to /usr/include

Build error: ` /usr/bin/ld: cannot find -lz`

On Ubuntu install the zlib development headers: `apt install zlib1g-dev`.

Build error: `/usr/bin/ld: cannot find -lncursesw`

On Ubuntu install the ncurses development headers: `apt install libncursesw5-dev`.

Build error: failed to run custom build command for cuckoo_miner

Run `CUDA_HOST_COMPILER=gcc-6 cargo build` instead of `cargo build`.

Build error: The `src/cuckoo_sys/plugins/cuckoo` directory is empty. Did you forget to pull the submodules?

Try `git submodule update –init –recursive`

mugle-doctor shell script

./mugle-doctor.sh

echo “API is $MUGLE_API”

MUGLE_API="localhost:16813"

echo “Asking API for chain status…”

curl "http://$MUGLE_API/v1/chain"

echo “Asking mugle for client status”

mugle client status

echo “Asking API for connected peers”

curl "http://$MUGLE_API/v1/peers/connected"

echo “Asking wallet for info”

mugle wallet info
Clone this wiki locally