jepsen-io / maelstrom

A workbench for writing toy implementations of distributed systems.
Eclipse Public License 1.0
3.05k stars 189 forks source link

Runing the demo js script does not work on Mac OS #85

Open Guru107 opened 11 months ago

Guru107 commented 11 months ago

Run Command: ./maelstrom test -w echo --bin demo/js/echo.js --time-limit 5

Error:

WARN [2023-12-05 15:35:38,456] jepsen test runner - jepsen.core Test crashed!
java.io.IOException: Cannot run program "/Users/user1/Workspace/maelstrom/demo/js/echo.js" (in directory "/var/folders/x5/jmppkfcx71zd921s1dtytdyw0000gn/T"): error=2, No such file or directory
    at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
    at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
    at maelstrom.process$start_node_BANG_.invokeStatic(process.clj:199)
    at maelstrom.process$start_node_BANG_.invoke(process.clj:168)
    at maelstrom.db$db$reify__16142.setup_BANG_(db.clj:34)
    at jepsen.db$fn__8729$G__8723__8733.invoke(db.clj:12)
    at jepsen.db$fn__8729$G__8722__8738.invoke(db.clj:12)
    at clojure.core$partial$fn__5908.invoke(core.clj:2642)
    at jepsen.control$on_nodes$fn__8599.invoke(control.clj:314)
    at clojure.lang.AFn.applyToHelper(AFn.java:154)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1990)
    at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1990)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invokeStatic(core.clj:671)
    at clojure.core$bound_fn_STAR_$fn__5818.doInvoke(core.clj:2020)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at dom_top.core$real_pmap_helper$build_thread__211$fn__212.invoke(core.clj:163)
    at clojure.lang.AFn.applyToHelper(AFn.java:152)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1990)
    at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1990)
    at clojure.lang.RestFn.invoke(RestFn.java:425)
    at clojure.lang.AFn.applyToHelper(AFn.java:156)
    at clojure.lang.RestFn.applyTo(RestFn.java:132)
    at clojure.core$apply.invokeStatic(core.clj:671)
    at clojure.core$bound_fn_STAR_$fn__5818.doInvoke(core.clj:2020)
    at clojure.lang.RestFn.invoke(RestFn.java:397)
    at clojure.lang.AFn.run(AFn.java:22)
    at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.io.IOException: error=2, No such file or directory
    at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
    at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
    at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
    at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
    ... 31 common frames omitted
ERROR [2023-12-05 15:35:38,461] main - jepsen.cli Oh jeez, I'm sorry, Jepsen broke. Here's why:
java.io.IOException: Cannot run program "/Users/user1/Workspace/maelstrom/demo/js/echo.js" (in directory "/var/folders/x5/jmppkfcx71zd921s1dtytdyw0000gn/T"): error=2, No such file or directory
    at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
    at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
    at maelstrom.process$start_node_BANG_.invokeStatic(process.clj:199)
    at maelstrom.process$start_node_BANG_.invoke(process.clj:168)
    at maelstrom.db$db$reify__16142.setup_BANG_(db.clj:34)
    at jepsen.db$fn__8729$G__8723__8733.invoke(db.clj:12)
    at jepsen.db$fn__8729$G__8722__8738.invoke(db.clj:12)
    at clojure.core$partial$fn__5908.invoke(core.clj:2642)
    at jepsen.control$on_nodes$fn__8599.invoke(control.clj:314)
    at clojure.lang.AFn.applyToHelper(AFn.java:154)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1990)
    at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1990)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invokeStatic(core.clj:671)
    at clojure.core$bound_fn_STAR_$fn__5818.doInvoke(core.clj:2020)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at dom_top.core$real_pmap_helper$build_thread__211$fn__212.invoke(core.clj:163)
    at clojure.lang.AFn.applyToHelper(AFn.java:152)
    at clojure.lang.AFn.applyTo(AFn.java:144)
    at clojure.core$apply.invokeStatic(core.clj:667)
    at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1990)
    at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1990)
    at clojure.lang.RestFn.invoke(RestFn.java:425)
    at clojure.lang.AFn.applyToHelper(AFn.java:156)
    at clojure.lang.RestFn.applyTo(RestFn.java:132)
    at clojure.core$apply.invokeStatic(core.clj:671)
    at clojure.core$bound_fn_STAR_$fn__5818.doInvoke(core.clj:2020)
    at clojure.lang.RestFn.invoke(RestFn.java:397)
    at clojure.lang.AFn.run(AFn.java:22)
    at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.io.IOException: error=2, No such file or directory
    at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
    at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
    at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
    at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
    ... 31 common frames omitted