Comments (9)
Right now this is not implemented in Quorum Maker. But you can do this manually by two steps. run raft.removePeer(peerid) from each of the geth consoles (you need to geth attach to each peer). Also you need to remove the peer from NetworkManagerContract.sol so that /getNodeList wont return this node. But currently there are no functions in the contract to do that. You can add a deleteNode function in the contract and build the a new docker image, and then execute the function on the contract address. Happy to accept your pull request if you can volunteer. Else we will add this feature in a future release.
from quorum-maker.
How do I geth attach
? Where is geth in your directory structure?
from quorum-maker.
you will have to run 'docker exec -it bash' to get into the respective node. From there you can run 'geth attach <path to .ipc file>'
from quorum-maker.
docker exec -it back
is a usage error. I get docker requires at least two arguments
. What's the exact command, assuming I'm on the node's ssh shell?
from quorum-maker.
its bash, not back.
from quorum-maker.
Yeah, it was a typo in my comment. I run sudo docker exec -it bash
which results in
"docker exec" requires at least 2 arguments.
See 'docker exec --help'.
Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...] [flags]
Run a command in a running container
from quorum-maker.
docker exec -it bash
from quorum-maker.
The actual command is sudo docker exec -it <container name> bash
. In my case the container name was simply the node name.
How do I now call raft.removePeer()
? Which is the node id? Is it listed in /getNodeList
?
For example where is it here:
[{"nodeName":"node6","role":"Unassigned","publicKey":"o84AQZmRX3ezMBN3RFkFpxNJyh3Q5gMxXsrHL8KTShk=","enode":"b20cd16833396c7767dd4ac7c3510185218f57026f485fbb6c316efc834d0bffb6825e0325124274356a50a0af144adfc1b614a65cd9bddfddb8dfb0c4d39ba2","ip":"23.101.115.159","id":"6","self":"false","active":"false"}]
Is it the enode
? Or the id
?
Again, a full command would be appreciated.
from quorum-maker.
To finish this issue, it works with the node id. Like this
> raft.removePeer(6)
> null
>
To my understanding once it's done on one node, raft syncs it with all the others.
@dhyansraj thank you very much for you help. I looked at the NetworkManagerContract
and it looks like removing a peer is one simple method. Not sure if the company I'm doing this for would authorize adding it but if it works out I'll gladly do it.
from quorum-maker.
Related Issues (20)
- Is quorum production ready?. Can we use quorum-maker in production systems? HOT 2
- Error: Number can only safely store up to 53 bits HOT 2
- Following Wiki install steps directly leads to nodes hanging after "Adding Whitelist IPs" HOT 5
- Node failure HOT 2
- Master node is down, how to recover the network?
- Quorum maker and Truffle v.5.0.38 migration stucks
- How do nodes backup regularly
- How to migrate data if the server is replaced
- tessera support HOT 2
- nodes hanging when adding Whitelist IPs" HOT 3
- Restoration of blockchain data from secondary node
- Private keys for accounts in genesis.json HOT 2
- Quorum maker could not be attached to my quorum network HOT 2
- Upgrade to use Quorum 2.6 and Tessera 0.10.6 HOT 1
- Invalid reference format HOT 1
- Could not join network
- Quorum Join not happening with current network HOT 1
- Node manager is not starting to create Network HOT 3
- External node Joining
- Error: not able to deploy contract at remote server HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quorum-maker.