Last active
August 9, 2021 13:46
-
-
Save arj03/f4a0f38f90c204bddbd57aa5d6a18216 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
comment booting | |
enter peer | |
hops peer 1 | |
load peer @TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519 | |
enter server | |
hops server 1 | |
load server @3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=.ed25519 | |
alloffsets server | |
start peer ssb-server | |
start server ssb-server | |
follow peer server | |
follow server peer | |
connect peer server | |
waituntil peer server@latest | |
stop peer |
Then I'm getting:
not ok 14 - has peer peer@0 # expected: @TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519 at sequence 0 # was: @TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519 at sequence 2064: sequences didn't match
hmmmmmmm that test works for me!! and no matter how many times i re-run it; dang it
Is it because I already ran one test before, so that the peer db already has data?
netsim clears out the puppets
directory on startup, so that should not be the case
4000:
TAP version 13
## Start test file
# 1 comment booting
# 2 enter peer
# 3 hops peer 1
# 4 load peer @TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519
# 5 skipoffset peer
# 6 enter server
# 7 hops server 1
# 8 load server @3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=.ed25519
# 9 alloffsets server
# 10 start server ssb-server
# 11 start peer ssb-server
# 12 connect peer server
# 13 waituntil peer peer@latest
# 14 stop peer
## End test file
ok 1 - comment booting
ok 2 - enter peer
ok 3 - hops peer 1
ok 4 - load peer @TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519
ok 5 - skipoffset peer
ok 6 - enter server
ok 7 - hops server 1
ok 8 - load server @3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=.ed25519
ok 9 - alloffsets server
caps is set to 1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=
hops is set to 1
gossip port: 18888
ws port: 18889
puppet lives in /home/arj/dev/netsim/arj-care-package/puppets/ssb-server-server
using log offset from fixtures-output/puppet-all/flume/log.offset
using secret from fixtures-output/puppet-00012/secret
starting as DEBUG=* exec "$SCRIPTPATH"/bin.js start -- --friends.hops "$HOPS" --caps.shs "$CAPS" --path "$DIR" --port "$PORT" --ws.port "$WS_PORT"
ssb-server 16.0.1 /home/arj/dev/netsim/arj-care-package/puppets/ssb-server-server logging.level:notice
my key ID: 3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=.ed25519
2021-08-09T12:57:51.134Z secret-stack Adding transport net
2021-08-09T12:57:51.137Z secret-stack Adding transform shs
2021-08-09T12:57:51.165Z ssb:conn-db Created new conn.json because there was no existing conn.json nor gossip.json
2021-08-09T12:57:51.171Z ssb:conn:scheduler Warning: ssb-db2 is missing, scheduling will miss some info
2021-08-09T12:57:51.174Z secret-stack net plugin creating transport host=127.0.0.1 port=18888 scope=[ 'device' ]
2021-08-09T12:57:51.176Z secret-stack creating server net shs host=127.0.0.1 port=18888 scope=[ 'device' ]
2021-08-09T12:57:51.176Z secret-stack net plugin creating transport host=127.0.0.1 port=18888 scope=[ 'device' ]
2021-08-09T12:57:51.177Z secret-stack net plugin creating transport host=::1 port=18888 scope=[ 'device' ]
2021-08-09T12:57:51.177Z secret-stack creating server net shs host=::1 port=18888 scope=[ 'device' ]
2021-08-09T12:57:51.177Z secret-stack net plugin creating transport host=::1 port=18888 scope=[ 'device' ]
2021-08-09T12:57:51.177Z secret-stack net plugin creating transport host=192.168.10.125 port=18888 scope=[ 'local' ]
2021-08-09T12:57:51.177Z secret-stack creating server net shs host=192.168.10.125 port=18888 scope=[ 'local' ]
2021-08-09T12:57:51.177Z secret-stack net plugin creating transport host=192.168.10.125 port=18888 scope=[ 'local' ]
2021-08-09T12:57:51.177Z secret-stack net plugin creating transport host=undefined port=NaN scope=undefined
2021-08-09T12:57:51.178Z multiserver:net Listening on 127.0.0.1:18888
2021-08-09T12:57:51.179Z multiserver:net Listening on ::1:18888
2021-08-09T12:57:51.180Z multiserver:net Listening on 192.168.10.125:18888
2021-08-09T12:57:51.183Z ssb:conn:scheduler Warning: ssb-bluetooth is missing, scheduling will miss some info
ssb-friends: stream legacy api used
ok 10 - start server ssb-server
# server (6167 messages) has id @3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=.ed25519
# logging to server.txt
caps is set to 1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=
hops is set to 1
gossip port: 18890
ws port: 18891
puppet lives in /home/arj/dev/netsim/arj-care-package/puppets/ssb-server-peer
using secret from fixtures-output/puppet-00000/secret
starting as DEBUG=* exec "$SCRIPTPATH"/bin.js start -- --friends.hops "$HOPS" --caps.shs "$CAPS" --path "$DIR" --port "$PORT" --ws.port "$WS_PORT"
ssb-server 16.0.1 /home/arj/dev/netsim/arj-care-package/puppets/ssb-server-peer logging.level:notice
my key ID: TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519
2021-08-09T12:57:54.279Z secret-stack Adding transport net
2021-08-09T12:57:54.281Z secret-stack Adding transform shs
2021-08-09T12:57:54.309Z ssb:conn-db Created new conn.json because there was no existing conn.json nor gossip.json
2021-08-09T12:57:54.314Z ssb:conn:scheduler Warning: ssb-db2 is missing, scheduling will miss some info
2021-08-09T12:57:54.316Z secret-stack net plugin creating transport host=127.0.0.1 port=18890 scope=[ 'device' ]
2021-08-09T12:57:54.318Z secret-stack creating server net shs host=127.0.0.1 port=18890 scope=[ 'device' ]
2021-08-09T12:57:54.318Z secret-stack net plugin creating transport host=127.0.0.1 port=18890 scope=[ 'device' ]
2021-08-09T12:57:54.319Z secret-stack net plugin creating transport host=::1 port=18890 scope=[ 'device' ]
2021-08-09T12:57:54.319Z secret-stack creating server net shs host=::1 port=18890 scope=[ 'device' ]
2021-08-09T12:57:54.319Z secret-stack net plugin creating transport host=::1 port=18890 scope=[ 'device' ]
2021-08-09T12:57:54.319Z secret-stack net plugin creating transport host=192.168.10.125 port=18890 scope=[ 'local' ]
2021-08-09T12:57:54.319Z secret-stack creating server net shs host=192.168.10.125 port=18890 scope=[ 'local' ]
2021-08-09T12:57:54.319Z secret-stack net plugin creating transport host=192.168.10.125 port=18890 scope=[ 'local' ]
2021-08-09T12:57:54.319Z secret-stack net plugin creating transport host=undefined port=NaN scope=undefined
2021-08-09T12:57:54.320Z multiserver:net Listening on 127.0.0.1:18890
2021-08-09T12:57:54.321Z multiserver:net Listening on ::1:18890
2021-08-09T12:57:54.322Z multiserver:net Listening on 192.168.10.125:18890
2021-08-09T12:57:54.324Z ssb:conn:scheduler Warning: ssb-bluetooth is missing, scheduling will miss some info
2021-08-09T12:57:54.333Z ssb:conn-hub connecting to net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
ssb-friends: stream legacy api used
2021-08-09T12:57:54.359Z ssb:conn-hub connected to net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
2021-08-09T12:57:54.360Z ssb:conn-hub peer @3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=.ed25519 initiated an RPC connection with us
2021-08-09T12:57:54.361Z ssb:conn-hub connected to net:192.168.10.125:49026~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
2021-08-09T12:57:56.518Z ssb:conn-hub connecting to net:192.168.10.125:18888~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
2021-08-09T12:57:56.800Z ssb:conn-hub connected to net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
2021-08-09T12:57:56.882Z ssb:conn-hub connected to net:192.168.10.125:49026~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
2021-08-09T12:57:56.883Z ssb:conn-hub connected to net:192.168.10.125:18888~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
ok 11 - start peer ssb-server
# peer (4246 messages) has id @TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519
# logging to peer.txt
2021-08-09T12:57:57.317Z ssb:conn-hub connecting to net:localhost:18888~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
2021-08-09T12:57:57.417Z ssb:conn-hub connected to net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
2021-08-09T12:57:57.489Z ssb:conn-hub connected to net:192.168.10.125:49026~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
2021-08-09T12:57:57.490Z ssb:conn-hub connected to net:localhost:18888~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
ok 12 - connect peer server
ok 13 - waituntil peer peer@latest
# assuming peer@latest => peer@2064
# stopping peer (@TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519)
sig int received
2021-08-09T12:57:58.051Z ssb:conn-hub disconnected from net:192.168.10.125:49026~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
2021-08-09T12:57:58.052Z ssb:conn-hub disconnected from net:192.168.10.125:49026~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
2021-08-09T12:57:58.052Z ssb:conn-db Begun serializing and writing ConnDB into conn.json
2021-08-09T12:57:58.053Z ssb:conn-hub disconnected from net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
2021-08-09T12:57:58.053Z ssb:conn-db Closed the ConnDB instance
2021-08-09T12:57:58.053Z ssb:conn-hub closed the ConnHub instance
2021-08-09T12:57:58.053Z ssb:conn-staging closed the ConnStaging instance
2021-08-09T12:57:58.092Z ssb:conn-hub disconnected from net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
2021-08-09T12:57:58.158Z ssb:conn-db Done serializing and writing ConnDB into conn.json
fallback to close
2021-08-09T12:57:58.278Z multiserver:net Closing server on 127.0.0.1:18890
2021-08-09T12:57:58.278Z multiserver:net Closing server on ::1:18890
2021-08-09T12:57:58.278Z multiserver:net Closing server on 192.168.10.125:18890
2021-08-09T12:57:58.279Z multiserver:net No longer listening on 127.0.0.1:18890
2021-08-09T12:57:58.279Z multiserver:net No longer listening on ::1:18890
2021-08-09T12:57:58.279Z multiserver:net No longer listening on 192.168.10.125:18890
exiting
ok 14 - stop peer
# peer has been stopped
1..14
# End of simulation
# Total time: 7.577306188s
# Active time: 5.077306188s
# Puppet count: 2
# Puppet Total time Active time # messages
Error replicating with @TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519:
Error: stream ended with:4 but wanted:34
at drain (/home/arj/dev/netsim/arj-care-package/ssb-server/node_modules/pull-reader/index.js:43:26)
at /home/arj/dev/netsim/arj-care-package/ssb-server/node_modules/pull-reader/index.js:63:18
at /home/arj/dev/netsim/arj-care-package/ssb-server/node_modules/pull-reader/index.js:114:13
at drain (/home/arj/dev/netsim/arj-care-package/ssb-server/node_modules/stream-to-pull-stream/index.js:126:18)
at Socket.<anonymous> (/home/arj/dev/netsim/arj-care-package/ssb-server/node_modules/stream-to-pull-stream/index.js:143:5)
at Socket.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1244:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
2021-08-09T12:57:58.303Z ssb:conn-hub disconnected from net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
# server 7.573s 5.073s 6167
# peer 4.393s 2.893s 4971
# Closing all puppets
2000:
TAP version 13
## Start test file
# 1 comment booting
# 2 enter peer
# 3 hops peer 1
# 4 load peer @TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519
# 5 skipoffset peer
# 6 enter server
# 7 hops server 1
# 8 load server @3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=.ed25519
# 9 alloffsets server
# 10 start server ssb-server
# 11 start peer ssb-server
# 12 connect peer server
# 13 waituntil peer peer@latest
# 14 stop peer
## End test file
ok 1 - comment booting
ok 2 - enter peer
ok 3 - hops peer 1
ok 4 - load peer @TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519
ok 5 - skipoffset peer
ok 6 - enter server
ok 7 - hops server 1
ok 8 - load server @3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=.ed25519
ok 9 - alloffsets server
caps is set to 1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=
hops is set to 1
gossip port: 18888
ws port: 18889
puppet lives in /home/arj/dev/netsim/arj-care-package/puppets/ssb-server-server
using log offset from fixtures-output/puppet-all/flume/log.offset
using secret from fixtures-output/puppet-00012/secret
starting as DEBUG=* exec "$SCRIPTPATH"/bin.js start -- --friends.hops "$HOPS" --caps.shs "$CAPS" --path "$DIR" --port "$PORT" --ws.port "$WS_PORT"
ssb-server 16.0.1 /home/arj/dev/netsim/arj-care-package/puppets/ssb-server-server logging.level:notice
my key ID: 3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=.ed25519
2021-08-09T12:57:04.972Z secret-stack Adding transport net
2021-08-09T12:57:04.974Z secret-stack Adding transform shs
2021-08-09T12:57:05.003Z ssb:conn-db Created new conn.json because there was no existing conn.json nor gossip.json
2021-08-09T12:57:05.008Z ssb:conn:scheduler Warning: ssb-db2 is missing, scheduling will miss some info
2021-08-09T12:57:05.010Z secret-stack net plugin creating transport host=127.0.0.1 port=18888 scope=[ 'device' ]
2021-08-09T12:57:05.013Z secret-stack creating server net shs host=127.0.0.1 port=18888 scope=[ 'device' ]
2021-08-09T12:57:05.013Z secret-stack net plugin creating transport host=127.0.0.1 port=18888 scope=[ 'device' ]
2021-08-09T12:57:05.013Z secret-stack net plugin creating transport host=::1 port=18888 scope=[ 'device' ]
2021-08-09T12:57:05.013Z secret-stack creating server net shs host=::1 port=18888 scope=[ 'device' ]
2021-08-09T12:57:05.013Z secret-stack net plugin creating transport host=::1 port=18888 scope=[ 'device' ]
2021-08-09T12:57:05.013Z secret-stack net plugin creating transport host=192.168.10.125 port=18888 scope=[ 'local' ]
2021-08-09T12:57:05.013Z secret-stack creating server net shs host=192.168.10.125 port=18888 scope=[ 'local' ]
2021-08-09T12:57:05.014Z secret-stack net plugin creating transport host=192.168.10.125 port=18888 scope=[ 'local' ]
2021-08-09T12:57:05.014Z secret-stack net plugin creating transport host=undefined port=NaN scope=undefined
2021-08-09T12:57:05.014Z multiserver:net Listening on 127.0.0.1:18888
2021-08-09T12:57:05.015Z multiserver:net Listening on ::1:18888
2021-08-09T12:57:05.016Z multiserver:net Listening on 192.168.10.125:18888
2021-08-09T12:57:05.019Z ssb:conn:scheduler Warning: ssb-bluetooth is missing, scheduling will miss some info
ssb-friends: stream legacy api used
ok 10 - start server ssb-server
# server (6167 messages) has id @3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=.ed25519
# logging to server.txt
caps is set to 1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=
hops is set to 1
gossip port: 18890
ws port: 18891
puppet lives in /home/arj/dev/netsim/arj-care-package/puppets/ssb-server-peer
using secret from fixtures-output/puppet-00000/secret
starting as DEBUG=* exec "$SCRIPTPATH"/bin.js start -- --friends.hops "$HOPS" --caps.shs "$CAPS" --path "$DIR" --port "$PORT" --ws.port "$WS_PORT"
ssb-server 16.0.1 /home/arj/dev/netsim/arj-care-package/puppets/ssb-server-peer logging.level:notice
my key ID: TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519
2021-08-09T12:57:08.074Z secret-stack Adding transport net
2021-08-09T12:57:08.076Z secret-stack Adding transform shs
2021-08-09T12:57:08.105Z ssb:conn-db Created new conn.json because there was no existing conn.json nor gossip.json
2021-08-09T12:57:08.109Z ssb:conn:scheduler Warning: ssb-db2 is missing, scheduling will miss some info
2021-08-09T12:57:08.111Z secret-stack net plugin creating transport host=127.0.0.1 port=18890 scope=[ 'device' ]
2021-08-09T12:57:08.113Z secret-stack creating server net shs host=127.0.0.1 port=18890 scope=[ 'device' ]
2021-08-09T12:57:08.114Z secret-stack net plugin creating transport host=127.0.0.1 port=18890 scope=[ 'device' ]
2021-08-09T12:57:08.114Z secret-stack net plugin creating transport host=::1 port=18890 scope=[ 'device' ]
2021-08-09T12:57:08.114Z secret-stack creating server net shs host=::1 port=18890 scope=[ 'device' ]
2021-08-09T12:57:08.114Z secret-stack net plugin creating transport host=::1 port=18890 scope=[ 'device' ]
2021-08-09T12:57:08.114Z secret-stack net plugin creating transport host=192.168.10.125 port=18890 scope=[ 'local' ]
2021-08-09T12:57:08.114Z secret-stack creating server net shs host=192.168.10.125 port=18890 scope=[ 'local' ]
2021-08-09T12:57:08.114Z secret-stack net plugin creating transport host=192.168.10.125 port=18890 scope=[ 'local' ]
2021-08-09T12:57:08.114Z secret-stack net plugin creating transport host=undefined port=NaN scope=undefined
2021-08-09T12:57:08.115Z multiserver:net Listening on 127.0.0.1:18890
2021-08-09T12:57:08.116Z multiserver:net Listening on ::1:18890
2021-08-09T12:57:08.117Z multiserver:net Listening on 192.168.10.125:18890
2021-08-09T12:57:08.120Z ssb:conn:scheduler Warning: ssb-bluetooth is missing, scheduling will miss some info
2021-08-09T12:57:08.128Z ssb:conn-hub connecting to net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
ssb-friends: stream legacy api used
2021-08-09T12:57:08.155Z ssb:conn-hub connected to net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
2021-08-09T12:57:08.156Z ssb:conn-hub peer @3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=.ed25519 initiated an RPC connection with us
2021-08-09T12:57:08.156Z ssb:conn-hub connected to net:192.168.10.125:49006~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
ok 11 - start peer ssb-server
# peer (2064 messages) has id @TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519
# logging to peer.txt
2021-08-09T12:57:10.088Z ssb:conn-hub connecting to net:localhost:18888~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
2021-08-09T12:57:10.108Z ssb:conn-hub connected to net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
2021-08-09T12:57:10.116Z ssb:conn-hub connected to net:192.168.10.125:49006~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
2021-08-09T12:57:10.117Z ssb:conn-hub connected to net:localhost:18888~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
ok 12 - connect peer server
2021-08-09T12:57:11.182Z ssb:conn-hub connecting to net:192.168.10.125:18888~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
2021-08-09T12:57:11.344Z ssb:conn-hub connected to net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
2021-08-09T12:57:11.415Z ssb:conn-hub connected to net:192.168.10.125:49006~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
2021-08-09T12:57:11.416Z ssb:conn-hub connected to net:192.168.10.125:18888~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
ok 13 - waituntil peer peer@latest
# assuming peer@latest => peer@2064
# stopping peer (@TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519)
sig int received
2021-08-09T12:57:11.644Z ssb:conn-hub disconnected from net:192.168.10.125:49006~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
2021-08-09T12:57:11.645Z ssb:conn-hub disconnected from net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
2021-08-09T12:57:11.645Z ssb:conn-hub disconnected from net:192.168.10.125:49006~shs:3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=
2021-08-09T12:57:11.645Z ssb:conn-db Begun serializing and writing ConnDB into conn.json
2021-08-09T12:57:11.646Z ssb:conn-db Closed the ConnDB instance
2021-08-09T12:57:11.646Z ssb:conn-hub closed the ConnHub instance
2021-08-09T12:57:11.646Z ssb:conn-staging closed the ConnStaging instance
2021-08-09T12:57:11.646Z ssb:conn-hub disconnected from net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
2021-08-09T12:57:11.664Z ssb:conn-db Done serializing and writing ConnDB into conn.json
fallback to close
2021-08-09T12:57:12.045Z multiserver:net Closing server on 127.0.0.1:18890
2021-08-09T12:57:12.046Z multiserver:net Closing server on ::1:18890
2021-08-09T12:57:12.046Z multiserver:net Closing server on 192.168.10.125:18890
2021-08-09T12:57:12.046Z multiserver:net No longer listening on 127.0.0.1:18890
2021-08-09T12:57:12.046Z multiserver:net No longer listening on ::1:18890
2021-08-09T12:57:12.046Z multiserver:net No longer listening on 192.168.10.125:18890
exiting
ok 14 - stop peer
# peer has been stopped
1..14
# End of simulation
# Total time: 7.484448211s
# Active time: 4.984448211s
# Puppet count: 2
# Puppet Total time Active time # messages
Error replicating with @TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519:
Error: stream ended with:4 but wanted:34
at drain (/home/arj/dev/netsim/arj-care-package/ssb-server/node_modules/pull-reader/index.js:43:26)
at /home/arj/dev/netsim/arj-care-package/ssb-server/node_modules/pull-reader/index.js:63:18
at /home/arj/dev/netsim/arj-care-package/ssb-server/node_modules/pull-reader/index.js:114:13
at drain (/home/arj/dev/netsim/arj-care-package/ssb-server/node_modules/stream-to-pull-stream/index.js:126:18)
at Socket.<anonymous> (/home/arj/dev/netsim/arj-care-package/ssb-server/node_modules/stream-to-pull-stream/index.js:143:5)
at Socket.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1244:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
2021-08-09T12:57:12.055Z ssb:conn-hub disconnected from net:192.168.10.125:18890~shs:TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=
# server 7.482s 4.982s 6167
# peer 4.356s 2.856s 4829
# Closing all puppets
Latest go-sbot test script:
comment booting
enter peer
hops peer 1
load peer @TWKY4Bq5ezVqbXV2D7NyODxCXgu8o4rgp/sf1GdHbCw=.ed25519
enter server
hops server 1
load server @3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=.ed25519
alloffsets server
start server go-sbot
start peer ssb-server
connect peer server
waituntil peer peer@latest
stop peer
go error:
puppet lives in /home/arj/dev/netsim/arj-care-package/puppets/go-sbot-server
2021/08/09 15:45:30 [margaret/indexes/badger] overwrote batch limit 0
t=147.919µs starting=metrics addr=localhost:6078
level=info t=9.917316ms event="waiting for indexes to catch up"
not ok 9 - start server go-sbot
# error dialing: dial tcp 127.0.0.1:18888: connect: connection refused
....
level=info t=1.519753057s event="repo open" feeds=20 msgs=9001
level=info t=1.519796709s event=serving ID="@3eIPXptMcbrFPw8seKbywmPbRogERylNuoFVaZ9AlOg=.ed25519" addr=:18888 version=snapshot build=
so not waiting for the indexes to be ready, so getting the number of messages fails it seems
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and for a smaller diff from your original test: