Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Fix Seth for Sawtooth 1.1 Consensus #96

Merged
merged 1 commit into from
Mar 28, 2019
Merged

Fix Seth for Sawtooth 1.1 Consensus #96

merged 1 commit into from
Mar 28, 2019

Conversation

danintel
Copy link
Contributor

Sawtooth 1.1 Consensus does not work.
The DevMode consensus engine times-out and does not connect
to the validator and times-out.
The solution is to open port 5050 in container devmode-engine-rust.

Signed-off-by: danintel daniel.anderson@intel.com

@danintel
Copy link
Contributor Author

danintel commented Mar 22, 2019

For the record, here are the exact error messages for DevMode consensus errors:

devmode-engine-rust | ERROR | devmode_engine_rust: | ReceiveError: TimeoutError
devmode-engine-rust exited with code 1

The incomplete fix is from #92

This fix will not be needed for future Sawtooth 1.2.1, nor to backport updates to Sawtooth 1.1.x that have the sawtooth-devmode repository fix on 2019-01-08, in file sdk/examples/devmode_rust/src/main.rs to correct the default TCP port for the consensus engine from 5005 to 5050
hyperledger-archives/sawtooth-devmode@ecddd59

@vaporos vaporos self-assigned this Mar 25, 2019
@@ -109,6 +109,8 @@ services:
devmode-rust:
image: hyperledger/sawtooth-devmode-engine-rust:nightly
container_name: devmode-engine-rust
ports:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is unnecessary: it binds the devmode-rust container's port 5050 to the host's port 5050. What was missing is the --bind consensus... CLI arg

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accepted. It didn't seem to work until I added port 5050 to the devmode container.
I removed it and it still works, so I rebased and pushed this.

docker-compose.yaml Outdated Show resolved Hide resolved
Sawtooth 1.1 Consensus does not work.
The DevMode consensus engine times-out and does not connect
to the validator and times-out.
The solution is to specify sawtooth-validator --bind consensus:tcp://eth0:5050

Signed-off-by: danintel <daniel.anderson@intel.com>
danintel referenced this pull request Mar 26, 2019
Signed-off-by: Ryan Beck-Buysse <rbuysse@bitwise.io>
@vaporos vaporos merged commit ac910fe into hyperledger-archives:master Mar 28, 2019
@danintel danintel deleted the consensus branch March 29, 2019 22:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants