-1

我正在从这个存储库https://github.com/jepsen-io/tendermint运行代码,而不更改任何文件。但是我在运行命令lein run test时遇到错误。

我得到的错误如下所述。

    Initializing core.typed ...
    Building core.typed base environments ...

Finished building base environments

"Elapsed time: 3347.461907 msecs"
core.typed initialized.
241: Not checking jepsen.tendermint.validator/byzantine-validators 
definition
WARNING: (jepsen/tendermint/validator.clj:662:5) Local became 
bottom when checking case default
WARNING: (jepsen/tendermint/validator.clj:678:5) Local became 
bottom when checking case default
792: Not checking jepsen.tendermint.validator/rand-legal-transition 
definition

15:33:32.220 [main] INFO jepsen.cli - Test options:
{
:concurrency 5,
:ssh
{
:username "root",
:password "root",
:strict-host-key-checking false,
:private-key-path nil},
:nemesis :none,
:abci-url

 "https://s3-us-west 2.amazonaws.com/tendermint/binaries/abci/v0.5.0/abci_0.5.0_linux_amd64.zip",
:nodes ["n1" "n2" "n3" "n4" "n5"],
:test-count 1,
:merkleeyes-url

"https://s3-us-west-2.amazonaws.com/tendermint/jepsen/merkleeyes_0.2.2-ngc.3_linux_amd64.zip",
:tendermint-url
 "https://s3-us-west-2.amazonaws.com/tendermint/binaries/tendermint/v0.10.3/tendermint_0.10.3_linux_amd64.zip",
:time-limit 60,
:workload :cas-register}

INFO [2019-10-14 15:33:32,273] jepsen test runner - jepsen.core 
Running test:
{
 :concurrency 5,
:nonserializable-keys [:validator-config],
:db

#object[jepsen.tendermint.db$db$reify__31900 0x2a8b1e67 
"jepsen.tendermint.db$db$reify__31900@2a8b1e67"],
:name "tendermint cas-register none",
:start-time
#object[org.joda.time.DateTime 0x731d35b0 "2019-10-14T15:33:32.000+05:30"],
:net
#object[jepsen.net$reify__1090 0x3a9c5f14 
"jepsen.net$reify__1090@3a9c5f14"],
:client
#object[jepsen.tendermint.core$cas_register_client$reify__31918 0x362e1181 
"jepsen.tendermint.core$cas_register_client$reify__31918@362e1181"],
 :barrier
 #object[java.util.concurrent.CyclicBarrier 0x2461a62c 
 "java.util.concurrent.CyclicBarrier@2461a62c"],
:ssh
{:username "root",
:password "root",
:strict-host-key-checking false,
:private-key-path nil},
:checker
#object[jepsen.checker$compose$reify__3207 0x1c63d92e 
"jepsen.checker$compose$reify__3207@1c63d92e"],
:validator-config #<Atom@7a986079: nil>,
:nemesis
#object[jepsen.nemesis$reify__1123 0xb7a2b89 
"jepsen.nemesis$reify__1123@b7a2b89"],
:active-histories #<Atom@3e0e2a80: #{}>,
:abci-url

"https://s3-us-west-2.amazonaws.com/tendermint/binaries/abci/v0.5.0/abci_0.5.0_linux_amd64.zip",
:nodes ["n1" "n2" "n3" "n4" "n5"],
:test-count 1,
:merkleeyes-url

"https://s3-us-west-2.amazonaws.com/tendermint/jepsen/merkleeyes_0.2.2-ngc.3_linux_amd64.zip",
:tendermint-url

"https://s3-us-west-2.amazonaws.com/tendermint/binaries/tendermint/v0.10.3/tendermint_0.10.3_linux_amd64.zip",
:generator
#object[jepsen.generator$concat$reify__1922 0x17236e87 
"jepsen.generator$concat$reify__1922@17236e87"],
:os
#object[jepsen.os.debian$reify__1367 0x75fa16cc 
"jepsen.os.debian$reify__1367@75fa16cc"],
:time-limit 60,
:workload :cas-register,
:model {:value nil}}

ERROR [2019-10-14 15:33:32,385] main - jepsen.cli Oh jeez, I'm sorry, Jepsen broke. Here's why:
com.jcraft.jsch.JSchException: java.net.UnknownHostException: n1
at com.jcraft.jsch.Util.createSocket(Util.java:349) ~[jsch-0.1.53.jar:na]
at com.jcraft.jsch.Session.connect(Session.java:215) ~[jsch-0.1.53.jar:na]
at com.jcraft.jsch.Session.connect(Session.java:183) ~[jsch-0.1.53.jar:na]
at clj_ssh.ssh$fn__1395.invokeStatic(ssh.clj:118) ~[jepsen-0.1.6.jar:na]
at clj_ssh.ssh$fn__1395.invoke(ssh.clj:115) ~[jepsen-0.1.6.jar:na]
at clj_ssh.ssh.protocols$fn__1353$G__1320__1362.invoke(protocols.clj:4) ~[jepsen-0.1.6.jar:na]
at clj_ssh.ssh$connect.invokeStatic(ssh.clj:401) ~[jepsen-0.1.6.jar:na]
at clj_ssh.ssh$connect.invoke(ssh.clj:397) ~[jepsen-0.1.6.jar:na]
at jepsen.control$clj_ssh_session.invokeStatic(control.clj:262) ~[jepsen-0.1.6.jar:na]
at jepsen.control$clj_ssh_session.invoke(control.clj:254) ~[jepsen-0.1.6.jar:na]
at jepsen.control$session$fn__1784.invoke(control.clj:276) ~[jepsen-0.1.6.jar:na]
at jepsen.reconnect$open_BANG_$fn__1673.invoke(reconnect.clj:59) ~[jepsen-0.1.6.jar:na]
at jepsen.reconnect$open_BANG_.invokeStatic(reconnect.clj:57) ~[jepsen-0.1.6.jar:na]
at jepsen.reconnect$open_BANG_.invoke(reconnect.clj:54) ~[jepsen-0.1.6.jar:na]
at jepsen.control$session.invokeStatic(control.clj:273) ~[jepsen-0.1.6.jar:na]
at jepsen.control$session.invoke(control.clj:270) ~[jepsen-0.1.6.jar:na]
at clojure.lang.AFn.applyToHelper(AFn.java:154) ~[clojure-1.8.0.jar:na]
at clojure.lang.AFn.applyTo(AFn.java:144) ~[clojure-1.8.0.jar:na]
at clojure.core$apply.invokeStatic(core.clj:646) ~[clojure-1.8.0.jar:na]
at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1881) ~[clojure-1.8.0.jar:na]
at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1881) ~[clojure-1.8.0.jar:na]
at clojure.lang.RestFn.applyTo(RestFn.java:142) ~[clojure-1.8.0.jar:na]
at clojure.core$apply.invokeStatic(core.clj:650) ~[clojure-1.8.0.jar:na]
at clojure.core$bound_fn_STAR_$fn__4671.doInvoke(core.clj:1911) ~[clojure-1.8.0.jar:na]
at clojure.lang.RestFn.applyTo(RestFn.java:137) ~[clojure-1.8.0.jar:na]
at clojure.core$apply.invokeStatic(core.clj:646) ~[clojure-1.8.0.jar:na]
at clojure.core$apply.invoke(core.clj:641) ~[clojure-1.8.0.jar:na]
at jepsen.util$fcatch$wrapper__945.doInvoke(util.clj:28) ~[jepsen-0.1.6.jar:na]
at clojure.lang.RestFn.invoke(RestFn.java:408) ~[clojure-1.8.0.jar:na]
at jepsen.util$real_pmap$launcher__950$fn__951.invoke(util.clj:48) ~[jepsen-0.1.6.jar:na]
at clojure.core$binding_conveyor_fn$fn__4676.invoke(core.clj:1938) ~[clojure-1.8.0.jar:na]
at clojure.lang.AFn.call(AFn.java:18) ~[clojure-1.8.0.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_222]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_222]
Caused by: java.net.UnknownHostException: n1
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) ~[na:1.8.0_222]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_222]
at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_222]
at java.net.Socket.connect(Socket.java:538) ~[na:1.8.0_222]
at java.net.Socket.(Socket.java:434) ~[na:1.8.0_222]
at java.net.Socket.(Socket.java:211) ~[na:1.8.0_222]
at com.jcraft.jsch.Util.createSocket(Util.java:343) ~[jsch-0.1.53.jar:na]
... 35 common frames omitted

这是我面临的问题,我不知道如何纠正这些错误。我没有更改存储库中的任何代码。我刚刚克隆了这个存储库并移动到那个文件夹并只执行了lein test run命令。在此之前,需要对配置文件或任何其他文件进行任何更改,也请提及。因为我是这个 jepsen 测试的新手。谁能帮我解决这个错误?

谢谢你。

4

2 回答 2

0

问题在于传递给 Jepsen 的包名称。在远程机器上运行测试 Jepsen 设置环境之前。在您的情况下,它尝试安装iproute man-db curl psmisc ntpdate faketime libzip2 unzip wget iptables,但libzip2在存储库中不存在并且iproute已重命名为iproute2. 要修复错误,您可以替换iproute为另一个包iproute2并替换libzip2为另一个包或完全删除它。

于 2020-11-13T10:11:03.823 回答
0

我解决了这个错误。现在,我在存储库https://github.com/jepsen-io/tendermint中运行命令lein run test时遇到不同的错误

错误代码是

INFO [2019-10-30 16:13:08,306] jepsen node n5 - jepsen.os.debian n5 setting up debian
INFO [2019-10-30 16:13:08,306] jepsen node n4 - jepsen.os.debian n4 setting up debian
INFO [2019-10-30 16:13:08,306] jepsen node n1 - jepsen.os.debian n1 setting up debian
INFO [2019-10-30 16:13:08,306] jepsen node n2 - jepsen.os.debian n2 setting up debian
INFO [2019-10-30 16:13:08,830] jepsen node n2 - jepsen.os.debian Installing #{iproute man-db curl psmisc ntpdate faketime libzip2 unzip wget iptables}
INFO [2019-10-30 16:13:08,830] jepsen node n5 - jepsen.os.debian Installing #{iproute man-db curl psmisc ntpdate faketime libzip2 unzip wget iptables}
INFO [2019-10-30 16:13:08,831] jepsen node n4 - jepsen.os.debian Installing #{iproute man-db curl psmisc ntpdate faketime libzip2 unzip wget iptables}
INFO [2019-10-30 16:13:08,840] jepsen node n3 - jepsen.os.debian Installing #{iproute man-db curl psmisc ntpdate faketime libzip2 unzip wget iptables}
INFO [2019-10-30 16:13:08,961] jepsen node n1 - jepsen.os.debian Installing #{iproute man-db curl psmisc ntpdate faketime libzip2 unzip wget iptables}
ERROR [2019-10-30 16:13:09,589] main - jepsen.cli Oh jeez, I'm sorry, Jepsen broke. Here's why:
java.util.concurrent.ExecutionException: java.lang.RuntimeException: sudo -S -u root bash -c "cd /; apt-get install -y --force-yes iproute man-db curl psmisc ntpdate faketime libzip2 unzip wget iptables" returned non-zero exit status 100 on n1. STDOUT:
Reading package lists...
Building dependency tree...
Reading state information...
Package iproute is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  iproute2



STDERR:
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Package 'iproute' has no installation candidate
E: Unable to locate package libzip2

    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_222]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_222]
    at clojure.core$deref_future.invokeStatic(core.clj:2208) ~[clojure-1.8.0.jar:na]
    at clojure.core$future_call$reify__6962.deref(core.clj:6688) ~[clojure-1.8.0.jar:na]
    at clojure.core$deref.invokeStatic(core.clj:2228) ~[clojure-1.8.0.jar:na]
    at clojure.core$deref.invoke(core.clj:2214) ~[clojure-1.8.0.jar:na]
    at clojure.core$map$fn__4785.invoke(core.clj:2644) ~[clojure-1.8.0.jar:na]
    at clojure.lang.LazySeq.sval(LazySeq.java:40) ~[clojure-1.8.0.jar:na]
    at clojure.lang.LazySeq.seq(LazySeq.java:49) ~[clojure-1.8.0.jar:na]
    at clojure.lang.RT.seq(RT.java:521) ~[clojure-1.8.0.jar:na]
    at clojure.core$seq__4357.invokeStatic(core.clj:137) ~[clojure-1.8.0.jar:na]
    at clojure.core.protocols$seq_reduce.invokeStatic(protocols.clj:24) ~[clojure-1.8.0.jar:na]
    at clojure.core.protocols$fn__6738.invokeStatic(protocols.clj:75) ~[clojure-1.8.0.jar:na]
    at clojure.core.protocols$fn__6738.invoke(protocols.clj:75) ~[clojure-1.8.0.jar:na]
    at clojure.core.protocols$fn__6684$G__6679__6697.invoke(protocols.clj:13) ~[clojure-1.8.0.jar:na]
    at clojure.core$reduce.invokeStatic(core.clj:6545) ~[clojure-1.8.0.jar:na]
    at clojure.core$into.invokeStatic(core.clj:6610) ~[clojure-1.8.0.jar:na]
    at clojure.core$into.invoke(core.clj:6604) ~[clojure-1.8.0.jar:na]
    at jepsen.control$on_nodes.invokeStatic(control.clj:353) ~[jepsen-0.1.6.jar:na]
    at jepsen.control$on_nodes.invoke(control.clj:337) ~[jepsen-0.1.6.jar:na]
    at jepsen.control$on_nodes.invokeStatic(control.clj:342) ~[jepsen-0.1.6.jar:na]
    at jepsen.control$on_nodes.invoke(control.clj:337) ~[jepsen-0.1.6.jar:na]
    at jepsen.core$run_BANG_$fn__3400$fn__3403.invoke(core.clj:411) ~[jepsen-0.1.6.jar:na]
    at jepsen.core$run_BANG_$fn__3400.invoke(core.clj:400) ~[jepsen-0.1.6.jar:na]
    at jepsen.core$run_BANG_.invokeStatic(core.clj:382) ~[jepsen-0.1.6.jar:na]
    at jepsen.core$run_BANG_.invoke(core.clj:329) ~[jepsen-0.1.6.jar:na]
    at jepsen.cli$single_test_cmd$fn__4053.invoke(cli.clj:327) ~[jepsen-0.1.6.jar:na]
    at jepsen.cli$run_BANG_.invokeStatic(cli.clj:271) [jepsen-0.1.6.jar:na]
    at jepsen.cli$run_BANG_.invoke(cli.clj:201) [jepsen-0.1.6.jar:na]
    at jepsen.tendermint.cli$_main.invokeStatic(cli.clj:25) [na:na]
    at jepsen.tendermint.cli$_main.doInvoke(cli.clj:23) [na:na]
    at clojure.lang.RestFn.invoke(RestFn.java:408) [clojure-1.8.0.jar:na]
    at clojure.lang.Var.invoke(Var.java:379) [clojure-1.8.0.jar:na]
    at user$eval720.invokeStatic(form-init2121207811388987748.clj:1) [na:na]
    at user$eval720.invoke(form-init2121207811388987748.clj:1) [na:na]
    at clojure.lang.Compiler.eval(Compiler.java:6927) [clojure-1.8.0.jar:na]
    at clojure.lang.Compiler.eval(Compiler.java:6917) [clojure-1.8.0.jar:na]
    at clojure.lang.Compiler.load(Compiler.java:7379) [clojure-1.8.0.jar:na]
    at clojure.lang.Compiler.loadFile(Compiler.java:7317) [clojure-1.8.0.jar:na]
    at clojure.main$load_script.invokeStatic(main.clj:275) [clojure-1.8.0.jar:na]
    at clojure.main$init_opt.invokeStatic(main.clj:277) [clojure-1.8.0.jar:na]
    at clojure.main$init_opt.invoke(main.clj:277) [clojure-1.8.0.jar:na]
    at clojure.main$initialize.invokeStatic(main.clj:308) [clojure-1.8.0.jar:na]
    at clojure.main$null_opt.invokeStatic(main.clj:342) [clojure-1.8.0.jar:na]
    at clojure.main$null_opt.invoke(main.clj:339) [clojure-1.8.0.jar:na]
    at clojure.main$main.invokeStatic(main.clj:421) [clojure-1.8.0.jar:na]
    at clojure.main$main.doInvoke(main.clj:384) [clojure-1.8.0.jar:na]
    at clojure.lang.RestFn.invoke(RestFn.java:421) [clojure-1.8.0.jar:na]
    at clojure.lang.Var.invoke(Var.java:383) [clojure-1.8.0.jar:na]
    at clojure.lang.AFn.applyToHelper(AFn.java:156) [clojure-1.8.0.jar:na]
    at clojure.lang.Var.applyTo(Var.java:700) [clojure-1.8.0.jar:na]
    at clojure.main.main(main.java:37) [clojure-1.8.0.jar:na]
Caused by: java.lang.RuntimeException: sudo -S -u root bash -c "cd /; apt-get install -y --force-yes iproute man-db curl psmisc ntpdate faketime libzip2 unzip wget iptables" returned non-zero exit status 100 on n1. STDOUT:
Reading package lists...
Building dependency tree...
Reading state information...
Package iproute is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  iproute2



STDERR:
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Package 'iproute' has no installation candidate
E: Unable to locate package libzip2

    at jepsen.control$throw_on_nonzero_exit.invokeStatic(control.clj:128) ~[jepsen-0.1.6.jar:na]
    at jepsen.control$throw_on_nonzero_exit.invoke(control.clj:121) ~[jepsen-0.1.6.jar:na]
    at jepsen.control$exec_STAR_.invokeStatic(control.clj:165) ~[jepsen-0.1.6.jar:na]
    at jepsen.control$exec_STAR_.doInvoke(control.clj:162) ~[jepsen-0.1.6.jar:na]
    at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.8.0.jar:na]
    at clojure.core$apply.invokeStatic(core.clj:646) ~[clojure-1.8.0.jar:na]
    at clojure.core$apply.invoke(core.clj:641) ~[clojure-1.8.0.jar:na]
    at jepsen.control$exec.invokeStatic(control.clj:181) ~[jepsen-0.1.6.jar:na]
    at jepsen.control$exec.doInvoke(control.clj:175) ~[jepsen-0.1.6.jar:na]
    at clojure.lang.RestFn.applyTo(RestFn.java:137) [clojure-1.8.0.jar:na]
    at clojure.core$apply.invokeStatic(core.clj:654) ~[clojure-1.8.0.jar:na]
    at clojure.core$apply.doInvoke(core.clj:641) ~[clojure-1.8.0.jar:na]
    at clojure.lang.RestFn.invoke(RestFn.java:533) [clojure-1.8.0.jar:na]
    at jepsen.os.debian$install.invokeStatic(debian.clj:98) ~[na:na]
    at jepsen.os.debian$install.invoke(debian.clj:78) ~[na:na]
    at jepsen.os.debian$reify__1367$fn__1368.invoke(debian.clj:148) ~[na:na]
    at jepsen.os.debian$reify__1367.setup_BANG_(debian.clj:146) ~[na:na]
    at jepsen.os$fn__1153$G__1147__1157.invoke(os.clj:4) ~[jepsen-0.1.6.jar:na]
    at jepsen.os$fn__1153$G__1146__1162.invoke(os.clj:4) ~[jepsen-0.1.6.jar:na]
    at clojure.core$partial$fn__4759.invoke(core.clj:2516) ~[clojure-1.8.0.jar:na]
    at jepsen.control$on_nodes$fn__1797.invoke(control.clj:352) ~[jepsen-0.1.6.jar:na]
    at clojure.lang.AFn.applyToHelper(AFn.java:154) [clojure-1.8.0.jar:na]
    at clojure.lang.AFn.applyTo(AFn.java:144) [clojure-1.8.0.jar:na]
    at clojure.core$apply.invokeStatic(core.clj:646) ~[clojure-1.8.0.jar:na]
    at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1881) ~[clojure-1.8.0.jar:na]
    at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1881) ~[clojure-1.8.0.jar:na]
    at clojure.lang.RestFn.applyTo(RestFn.java:142) [clojure-1.8.0.jar:na]
    at clojure.core$apply.invokeStatic(core.clj:650) ~[clojure-1.8.0.jar:na]
    at clojure.core$bound_fn_STAR_$fn__4671.doInvoke(core.clj:1911) ~[clojure-1.8.0.jar:na]
    at clojure.lang.RestFn.invoke(RestFn.java:408) [clojure-1.8.0.jar:na]
    at jepsen.util$real_pmap$launcher__950$fn__951.invoke(util.clj:48) ~[jepsen-0.1.6.jar:na]
    at clojure.core$binding_conveyor_fn$fn__4676.invoke(core.clj:1938) ~[clojure-1.8.0.jar:na]
    at clojure.lang.AFn.call(AFn.java:18) [clojure-1.8.0.jar:na]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_222]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_222]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_222]
    at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_222]

这个错误是什么意思?谁能知道如何解决这个错误并指导我解决这个问题提前谢谢。

于 2019-10-30T11:15:14.443 回答