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

Discovery fails unless run manually #2

Open
benhylau opened this issue Jul 28, 2018 · 4 comments
Open

Discovery fails unless run manually #2

benhylau opened this issue Jul 28, 2018 · 4 comments

Comments

@benhylau
Copy link
Collaborator

Discovery does not work unless I manually run this in my docker container:

root@bloor:~# docker exec -it ssb sh
/ # sh /root/ssb-web-pi/ssb-broadcast.sh

tcpdump shows some broadcasts like this:

14:38:56.528381 IP 169.254.46.28.47445 > 255.255.255.255.8008: UDP, length 27
A.........U.H.#w.net:169.254.46.28:8008~shs:

I think this needs to be in the loop (and validated) because in the beginning sbot whoami probably returns nothing, leading to the corrupt broadcast.

I see that prototype, and therefore meshstream, tries to address this by a delay... which partially takes care of the problem but I think it's an unreliable way of doing it. No such mechanism exists here.

@darkdrgn2k
Copy link
Owner

I was trying to avoid a delay there but your are right. It failed miserably..

@darkdrgn2k
Copy link
Owner

@benhylau
Copy link
Collaborator Author

This is how I build:

root@christie:~# docker build -t tomeshnet/ssb:0.5 .
root@christie:~# docker save --output tomeshnet-ssb-0.5.tar tomeshnet/ssb:0.5

And run:

root@bloor:~# docker load --input ~/docker/tomeshnet-ssb-0.5.tar
root@bloor:~# docker run --name ssb --network host --detach tomeshnet/ssb:0.5

For reference: https://github.com/benhylau/mesh-workshop#prepare-docker-image-archive

@benhylau
Copy link
Collaborator Author

Ugh... new ways to fail 🤣

/ # sh /root/ssb-web-pi/ssb-broadcast.sh
/root/ssb-web-pi/ssb-broadcast.sh: line 14: sudo: not found
/root/ssb-web-pi/ssb-broadcast.sh: line 14: sudo: not found
/root/ssb-web-pi/ssb-broadcast.sh: line 14: sudo: not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants