OffchainLabs / nitro-testnode

A complete environment for nitro-based service including sequencer, batch-poster, validator, and a coordinator.
Apache License 2.0
23 stars 57 forks source link

[Bug] Init script can't generate network #39

Closed alexfertel closed 1 month ago

alexfertel commented 8 months ago

Problem

After a fresh clone, running ./test-node.bash --init crashes. You can see the entire output here.

At some point it gets to this part, where it crashes:

yarn run v1.22.19
$ ts-node ./scripts/genNetwork.ts
Error: No such container: nitro_sequencer_1
Error: No such container: nitro-sequencer-1
Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.4)
    at Logger.makeError (/workspace/node_modules/@ethersproject/logger/src.ts/index.ts:261:28)
    at Logger.throwError (/workspace/node_modules/@ethersproject/logger/src.ts/index.ts:273:20)
    at JsonRpcProvider.<anonymous> (/workspace/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:431:23)
    at step (/workspace/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
    at Object.throw (/workspace/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
    at rejected (/workspace/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  reason: 'could not detect network',
  code: 'NETWORK_ERROR',
  event: 'noNetwork'
}
Done in 4.62s.
[+] Creating 3/0
 ✔ Container nitro-testnode-geth-1       Created                                                                                                                                                                                                                                                               
 ✔ Container nitro-testnode-redis-1      Running                                                                                                                                                                                                                                                               
 ✔ Container nitro-testnode-sequencer-1  Running                                                                                                                                                                                                                                                               
[+] Running 1/1
 ✔ Container nitro-testnode-geth-1  Started                                                                                                                                                                                                                                                                    
cat: localNetwork.json: No such file or directory

Environment

OS:                  MacOS Sonoma 14.1.1 (23B81)
Docker version:      Desktop 4.27.1 (136059)