consensys / quorum-tools Goto Github PK
View Code? Open in Web Editor NEWTools for running Quorum clusters and integration tests
License: Other
Tools for running Quorum clusters and integration tests
License: Other
Hello,
I tried to build and run the test tool, but encounter the following error after run stack exec -- local-new
.
➜ quorum-tools git:(master) stack exec -- local-new
local-new: gdata/geth1/keystore/geth1: openFile: does not exist (No such file or directory)
This would help with test hangs like this
If too much time elapses, e.g. around sending a tx and waiting for it to get into the chain, we could dump all logs for the affected geth during that time.
Hi,
I have integrated quorum-tools into docker container. The container image is based on linux system.
When i run the command sudo whoami && stack test
, get the following messages.
root@a245f480570c:~/work/src/github.com/jpmorganchase/quorum-tools# sudo whoami && stack test
root
quorum-tools-0.0.1: test (suite: raft)
cycle test
06:40:49.842578994000: waiting for initial nodes to assume raft roles
06:40:51.662187857000: starting test with a pause
06:40:53.696133840000: waiting before adding node 4
06:40:55.698998260000: adding node 4
06:40:55.727437355000: waiting before removing node 1
06:40:57.729767134000: removing node 1
06:40:59.789193341000: waiting before adding node 5
06:41:01.794225441000: adding node 5
06:41:01.823628799000: waiting before removing node 2
06:41:03.824775479000: removing node 2
06:41:05.885224356000: waiting before adding node 6
06:41:07.886479015000: adding node 6
06:41:07.913457644000: waiting before removing node 3
06:41:09.914485094000: removing node 3
Right ()
leader partition test
test #0
raft: unable to extract enode ID
CallStack (from HasCallStack):
error, called at src/QuorumTools/Cluster.hs:262:31 in quorum-tools-0.0.1-HjMHLOYZT7a4zVVpjibxss:QuorumTools.Cluster
Test suite failure for package quorum-tools-0.0.1
raft: exited with: ExitFailure 1
Logs printed to console
Run again sudo whoami && stack test
root@a245f480570c:~/work/src/github.com/jpmorganchase/quorum-tools# sudo whoami && stack test
root
quorum-tools-0.0.1: test (suite: raft)
cycle test
raft: unable to extract enode ID
CallStack (from HasCallStack):
error, called at src/QuorumTools/Cluster.hs:262:31 in quorum-tools-0.0.1-HjMHLOYZT7a4zVVpjibxss:QuorumTools.Cluster
Test suite failure for package quorum-tools-0.0.1
raft: exited with: ExitFailure 1
Logs printed to console
Then using top
to see the processes
root@a245f480570c:~/work/src/github.com/jpmorganchase/quorum-tools# top
top - 06:38:56 up 40 min, 0 users, load average: 0.65, 0.56, 0.96
Tasks: 11 total, 1 running, 10 sleeping, 0 stopped, 0 zombie
%Cpu(s): 35.2 us, 5.2 sy, 0.1 ni, 55.4 id, 4.0 wa, 0.0 hi, 0.2 si, 0.0 st
KiB Mem: 7134584 total, 3550296 used, 3584288 free, 137496 buffers
KiB Swap: 0 total, 0 used, 0 free. 2299228 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 20 0 1.000t 113872 91952 S 0.0 1.6 0:00.14 ghc
11 root 20 0 22048 3716 3140 S 0.0 0.1 0:00.09 bash
422 root 20 0 711664 331684 16460 S 0.0 4.6 0:01.58 geth
424 root 20 0 655512 74816 15912 S 0.0 1.0 0:01.63 geth
433 root 20 0 752624 62784 15952 S 0.0 0.9 0:01.62 geth
434 root 20 0 786452 65352 16400 S 0.0 0.9 0:02.97 geth
436 root 20 0 678900 97728 16124 S 0.0 1.4 0:02.62 geth
446 root 20 0 613360 62352 16536 S 0.0 0.9 0:02.58 geth
733 root 20 0 46452 2984 2604 S 0.0 0.0 0:00.00 su
734 root 20 0 21952 3568 3076 S 0.0 0.1 0:00.00 bash
955 root 20 0 23636 2608 2268 R 0.0 0.0 0:00.00 top
I ensured that iptables
, lsof
have been installed.
Have you ever had the same situation?
diff --git a/cabal.project b/cabal.project
index db903d7..5f1d746 100644
--- a/cabal.project
+++ b/cabal.project
@@ -1,4 +1,3 @@
packages:
./quorum-tools.cabal
- ./symmetric-properties/symmetric-properties.cabal
./constellation/constellation.cabal
diff --git a/src/QuorumTools/Constellation.hs b/src/QuorumTools/Constellation.hs
index 919ab17..4f03884 100644
--- a/src/QuorumTools/Constellation.hs
+++ b/src/QuorumTools/Constellation.hs
@@ -25,7 +25,7 @@ generateKeyPair :: MonadIO m => DataDir -> m ()
generateKeyPair datadir = liftIO $ do
(pub, priv) <- newKeyPair
mktree keyDir
- writeLazyBytes pubFile $ b64EncodePublicKey pub
+ writeLazyBytes pubFile $ LBS.fromStrict $ b64EncodePublicKey pub
writeLazyBytes keyFile =<< jsonEncodePrivateKey passwd priv
where
diff --git a/src/QuorumTools/Test/Raft/CycleTest.hs b/src/QuorumTools/Test/Raft/CycleTest.hs
index e320993..ee1f3fc 100644
--- a/src/QuorumTools/Test/Raft/CycleTest.hs
+++ b/src/QuorumTools/Test/Raft/CycleTest.hs
@@ -23,7 +23,7 @@ cycleTestMain = do
let cEnv = mkLocalEnv keys
& clusterPrivacySupport .~ PrivacyDisabled
- & clusterInitialMembers .~ Set.fromList (take 3 gids)
+ & clusterInitialMembers .~ Set.fromList (Prelude.take 3 gids)
& clusterPassword .~ password
result <- runTestM cEnv $ do
Hello,
Following Installation were stuck on stack exec -- local-new
command.
WARN [06-27|13:50:10] No etherbase set and no accounts found as default
WARN [06-27|13:50:10] No etherbase set and no accounts found as default
WARN [06-27|13:50:10] No etherbase set and no accounts found as default
How to fix it?
This is the best place I found that would best address my question.
Has anyone done any work to add Quorum support for Remix? (e.x. adding privateFor field)
https://remix.ethereum.org is a wonderful ide that improves developer quality of life! Adding quorum to it would be very convenient!
ubuntu@ubuntu-xenial:~$ local-new
local-new: fd:14: hClose: resource vanished (Broken pipe)
vagrant box with manually installed dependencies (like libsodium etc.)
e.g. create a PoW cluster, migrate to Raft. Vice versa.
It seems that there's a problem the latest change (81f66bc) to the genesis block generation
sudo whoami && stack test
cycle test
10:56:32.156708000000: waiting for initial nodes to assume raft roles
10:56:34.658622000000: starting test with a pause
10:56:36.793858000000: waiting before adding node 4
10:56:38.797503000000: adding node 4
raft: HttpExceptionRequest Request {
host = "127.0.0.1"
port = 40402
secure = False
requestHeaders = [("Content-Type","application/json"),("User-Agent","haskell wreq-0.5.1.0")]
path = "/"
queryString = ""
method = "POST"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
}
(ConnectionFailure Network.Socket.connect: <socket: 13>: does not exist (Connection refused))
/cc @joelburget
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.