stacks-blockchain-api
stacks-blockchain-api copied to clipboard
Rosetta cli construction fails while trying to run stacks-blockchain-api with mocknet
Describe the bug
I tried to run stacks-api-blockchain api as mocknet using this command
npm run dev:integrated which failed
I guess the problem is this, in docker/docker-compose.dev.rosetta.cli.yaml
command: ${CMD}
volume: ${OUTPUT}
${CMD} and ${OUTPUT} are undefined
I get this output
WARN[0000] The "OUTPUT" variable is not set. Defaulting to a blank string.
WARN[0000] The "CMD" variable is not set. Defaulting to a blank string.
1 error(s) decoding:
* error decoding 'Volumes[0]': invalid empty volume spec
Steps To Reproduce
git clone https://github.com/hirosystems/stacks-blockchain-api.gitnpm run dev:integrated
Expected behavior
should successfully run stacks-blockchain-api with mocknet
Environment
- OS: macOS Monterey M1
- Rust version: rustc 1.64.0
Additional context
When i set
command: /bin/rosetta-cli --configuration-file /app/rosetta-config-docker.json check:construction
volume: - ./rosetta-output-construction:/app/rosetta-output
in docker/docker-compose.dev.rosetta.cli.yaml it runs successfully
Hi @HassanAmed we will update documentation and tooling because this is a very old command that should be removed in favor of using Clarinet
Hi @rafaelcr, I would like to fix this. Does changing the command and volume to
command: /bin/rosetta-cli --configuration-file /app/rosetta-config-docker.json check:construction
volume: - ./rosetta-output-construction:/app/rosetta-output
fix the issue. I was able to run the stacks-blockchain-api successfully after the change. Let me know if anything else needs to be modified. I'll make a PR with the updates
Hi @neilmehta31 that's great! Please send the PR so we can review, thanks
@rafaelcr Please review the PR : https://github.com/hirosystems/stacks-blockchain-api/pull/1647
@rafaelcr Please review the PR, I rebased with develop branch. Had problems in the earlier PR, hence created a new PR : https://github.com/hirosystems/stacks-blockchain-api/pull/1652. Let me know if any other changes need to be made. Thanks
Sorry for the inconvenience
Looks like https://github.com/hirosystems/stacks-blockchain-api/issues/1666 closes this issue