Skip to content
New issue

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

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

Already on GitHub? # to your account

./scripts/localnet.sh looks for "release" directory #118

Open
geardici opened this issue Sep 16, 2024 · 7 comments · May be fixed by opentensor/subtensor#1071 or FLock-io/FLock-subnet#4
Open

./scripts/localnet.sh looks for "release" directory #118

geardici opened this issue Sep 16, 2024 · 7 comments · May be fixed by opentensor/subtensor#1071 or FLock-io/FLock-subnet#4

Comments

@geardici
Copy link

updated localnet build is under "target/production"

therefore, localnet.sh fails when following the running_on_staging.md instructions. Build should either be named "release" or localnet.sh should be changed to point to target/production instead.

cheers!

@geardici
Copy link
Author

Ah, looks like faucet is disabled on --production build?

❌ Failed: Subtensor returned FaucetDisabled (Module) error. This means: Faucet is disabled.

rebuilding with --release, will report back

@tobiusaolo
Copy link

Error persisted even with --release

@vigh18
Copy link

vigh18 commented Nov 15, 2024

Hi, I have same issue. Did you manage to solve it?

@aaytuncc
Copy link

i run it once with BUILD_BINARY=1 ./scripts/localnet.sh, then I was able to run the chain, but i couldnt mint the faucets from this chain.

btcli wallet faucet --wallet.name owner --subtensor.chain_endpoint ws://127.0.0.1:9944
Using default wallet path: (~/.bittensor/wallets/)
Run Faucet?
 wallet name: owner
 coldkey:    <cold-key>
 network:    Network: local, Chain: ws://127.0.0.1:9944 [y/n]: y
Enter your password: 
Decrypting...
{'jsonrpc': '2.0', 'id': 0, 'error': {'code': 1014, 'message': 'Priority is too low: (18446744073709551615 vs 
18446744073709551615)', 'data': 'The transaction has too low priority to replace another transaction already in
the pool.'}}

@manh-vv
Copy link

manh-vv commented Dec 17, 2024

I’m encountering the same error. Has anyone solved this problem or found a workaround?

# Build with profile release
cargo build -p node-subtensor --profile release --features pow-faucet

# Start local
BUILD_BINARY=0 ./scripts/localnet.sh

# 2024-12-17 11:13:32 📦 Highest known block at #0    
# 2024-12-17 11:13:32 〽️ Prometheus exporter started at 127.0.0.1:9615    
# 2024-12-17 11:13:32 Running JSON-RPC server: addr=127.0.0.1:9945,[::1]:9945 

btcli wallet faucet --wallet.name owner --subtensor.chain_endpoint ws://127.0.0.1:9945

# Using default wallet path: (~/.bittensor/wallets/)
# Run Faucet?
# wallet name: owner
# coldkey:    5ENu1EktuF...eQ
# network:    Network: custom, Chain: ws://127.0.0.1:9945 [y/n]: y       
# Enter your password: 
# Decrypting...
# ❌ Failed: Subtensor returned `FaucetDisabled(Module)` error. This means: `Faucet is disabled.`.
# ❌ Failed: Subtensor returned `FaucetDisabled(Module)` error. This means: `Faucet is disabled.`.
# ❌ Failed: Subtensor returned `FaucetDisabled(Module)` error. This means: `Faucet is disabled.`.

@manh-vv
Copy link

manh-vv commented Dec 19, 2024

Not sure if this help.
I removed the target folder and run this command to build again

BUILD_BINARY=1 ./scripts/localnet.sh False

It will automatically run the local test net with two node bob and alice. Then I'm able to make faucet.

btcli wallet faucet --wallet.name owner --subtensor.chain_endpoint ws://127.0.0.1:9944
# Using default wallet path: (~/.bittensor/wallets/)
# Run Faucet?
#  wallet name: owner
#  coldkey:    5EN...WeQ
#  network:    Network: local, Chain: ws://127.0.0.1:9944 [y/n]: y
# Enter your password: 
# Decrypting...
# Balance: τ0.000000000 ➡ τ1,000.000000000
# Balance: τ1,000.000000000 ➡ τ2,000.000000000
# Balance: τ2,000.000000000 ➡ τ3,000.000000000

@Th4p4
Copy link

Th4p4 commented Feb 11, 2025

Found somewhere
Inside subtensor/node/Cargo.toml
replace this line pow-faucet = []
with this
pow-faucet = ["node-subtensor-runtime/pow-faucet"]

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
6 participants