Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peer sends message with sequence 16 as the first message #172

Open
boreq opened this issue Jan 17, 2023 · 5 comments
Open

Peer sends message with sequence 16 as the first message #172

boreq opened this issue Jan 17, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@boreq
Copy link
Contributor

boreq commented Jan 17, 2023

I just noticed the following sequence of messages exchanged with a peer (irrelevant payload redacted):

level=debug 
ts="2023-01-17 22:33:29.5185650 (UTC)" 
source=golang 
id="@CIlwTOK+m6v1hT2zUVOCJvvZq7KE/65ErN6yA2yrURY=.ed25519" 
header.flags="<stream=true endOrError=false bodyType={json}>" 
header.number=3 
header.bodyLength=14020 
body="{\"@3PGWnoMIY5ebs6sJjkwc7DKjxrgcrOeIUC2YegkMtIY=.ed25519\":0}" 
name=gossb.peer-2188669348362399538.raw 
message="sending a message"

level=debug 
ts="2023-01-17 22:33:29.8222370 (UTC)" 
source=golang 
id="@CIlwTOK+m6v1hT2zUVOCJvvZq7KE/65ErN6yA2yrURY=.ed25519" 
header.flags="<stream=true endOrError=false bodyType={json}>" 
header.number=-3 header.bodyLength=438 
body="{\"previous\":\"%MXYkWNlD73IZUpEgIZvTyShNR0Eb0JsfRbBXfB2v6Qw=.sha256\",\"author\":\"@3PGWnoMIY5ebs6sJjkwc7DKjxrgcrOeIUC2YegkMtIY=.ed25519\",\"sequence\":16,\"timestamp\":1494275440982,\"hash\":\"sha256\",\"content\":{\"type\":\"pub\",\"address\":{\"host\":\"ssb.nootch.net\",\"port\":8008,\"key\":\"@1ZCF+Z9cUjcXGHkOPd5jNnoiuu3VJn+o6L8XEliV6Cs=.ed25519\"}},\"signature\":\"EFtsPPoYb2kl3U62Qt8dNRQ/taix+bBttlN0yMCjlUYiweEAhUsMZGpYDGnxk9S4i7VBUi40CKX+odSQ3wfxBw==.sig.ed25519\"}" name=gossb.peer-2188669348362399538.raw 
message="received a message"

...

level=debug
ts="2023-01-17 22:33:30.5232780 (UTC)" source=golang
feed="@3PGWnoMIY5ebs6sJjkwc7DKjxrgcrOeIUC2YegkMtIY=.ed25519"
sequence_in_database=nil
sequences_in_buffer="16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27"
messages_that_can_be_persisted=0
name=gossb.message_buffer
message="persisting messages"

Log gobot-2023-01-17_22-33.log. The peer is Planetary System Pub 1.

Related issues:

@boreq boreq added the bug Something isn't working label Jan 17, 2023
@boreq boreq added this to the Use scuttlego in Planetary milestone Jan 17, 2023
@boreq boreq self-assigned this Jan 17, 2023
@boreq
Copy link
Contributor Author

boreq commented Feb 14, 2023

I feel like this is a nonetheless a bug with the way the JS stack caches some things.

@boreq
Copy link
Contributor Author

boreq commented Feb 27, 2023

I am letting this go all the way back to "backlog" as I don't know what to do with this right now. It probably requires fixes to the JS stack and I haven't seen this in a while.

@boreq
Copy link
Contributor Author

boreq commented Feb 27, 2023

Findings:

docker logs 88c16dbabfac 2>&1 | head 

> ssb-server@15.3.0 start

@boreq
Copy link
Contributor Author

boreq commented Feb 27, 2023

Easy fix: run $ rm ssb-pub-data/ebt/* every couple of minutes. 😩

@boreq
Copy link
Contributor Author

boreq commented Feb 28, 2023

Other solutions:

  • update the pubs (we failed to do this due to some kind of a bootloop)
  • set up an extra node running scuttlego that is not even a pub just caches messes (works out of the box)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants