bittensor-subnet-template icon indicating copy to clipboard operation
bittensor-subnet-template copied to clipboard

Can't mint tokens from faucet locally

Open toilaluan opened this issue 1 year ago • 7 comments

I am encountering issues while attempting to set up the subnet template locally, as outlined in your documentation (https://github.com/opentensor/bittensor-subnet-template/blob/main/docs/running_on_staging.md). I have run into a couple of challenges that I'd like to bring to your attention for guidance or resolution.

  1. Non-existent Branch for User-Creation: In the documentation, step 4 instructs to switch to the 'user-creation' branch under the subnets section. However, I've observed that this branch does not exist in the repository. This has led me to bypass step 4 entirely, but I am unsure if this impacts the subsequent steps or the overall setup.

  2. Faucet Token Minting Error: Following the steps and proceeding to step 9, which involves minting tokens from the faucet, I encountered an error. The specific error message is as follows: Failed: Error: {'type': 'Module', 'name': 'FaucetDisabled', 'docs': []}. This error suggests an issue with the faucet module, perhaps indicating that it is disabled or not functioning as expected.

toilaluan avatar Dec 01 '23 01:12 toilaluan

Same here

dnstufff avatar Dec 01 '23 08:12 dnstufff

@ermenkov i resolved the FaucetDisabled exception by changing cargo build --release to cargo build --release --features pow-faucet in scripts/localrun.sh but then i encounter another issue when create new subnet: image

toilaluan avatar Dec 01 '23 09:12 toilaluan

Again same here. It appears that this flag is too low: https://github.com/opentensor/subtensor/blob/f7b34e3ac8a3dec52b3c2213cd001f81f449f19b/pallets/subtensor/src/utils.rs#L1033

This MD might help with the flags: https://github.com/opentensor/substrate-docs/blob/9d9e2421b7498e5de89cb6df300f20c634687a29/content/md/en/docs/reference/command-line-tools/node-template.md

Haven't solved it yet either. Anyone else?

dnstufff avatar Dec 01 '23 11:12 dnstufff

@ermenkov i resolved, just comment all rate limit exceptions in source code. it's ok for me cus i just want to run locally

toilaluan avatar Dec 02 '23 05:12 toilaluan

@toilaluan I want to run locally, but I also encountered the same error. May I ask which source code you annotated

362024758 avatar Dec 19 '23 06:12 362024758

@362024758

Are you running subtensor with docker?

If I do from the build, it doesn't happen to me, but running the docker image it does.

urkh avatar Mar 04 '24 18:03 urkh

same problem

YmClash avatar Jun 03 '24 22:06 YmClash