adulau / Forban

Forban is a p2p application for link-local and local area networks. Forban works independently from the Internet and uses only the local area capabilities to announce, discover, search or share files. Forban relies on HTTP and it is "opportunistic".
http://www.foo.be/forban/
134 stars 24 forks source link

No announcement anymore after 3h #11

Closed MaStr closed 12 years ago

MaStr commented 12 years ago

3h hours after started Forban, It doesn't discover itself anymore. There are no announcement sent through set network either.

Logfile still shows up a working forban_announce thread:

1970-01-01 03:58:53,567 - forban_announce - DEBUG - Index rebuilt 1970-01-01 03:58:54,648 - forban_announce - DEBUG - forban;name;piratebox.lan;uuid;a2690654-6187-4ab9-9995-bf24c59b6e4e;hmac;880521dc5ca02b3beb9266168d19ab2bf336560d 1970-01-01 03:59:54,990 - forban_announce - DEBUG - forban;name;piratebox.lan;uuid;a2690654-6187-4ab9-9995-bf24c59b6e4e;hmac;880521dc5ca02b3beb9266168d19ab2bf336560d

The following threads are running (shared mode): 2078 root 8288 S python /opt/forban/bin/forban_discover.py 2079 root 9584 S python /opt/forban/bin/forban_announce.py 2080 root 38812 S python /opt/forban/bin/forban_share.py

Interfaces:

root@piratebox:/opt/forban/var/log# ifconfig br-lan Link encap:Ethernet HWaddr F8:D1:11:BD:57:5C inet addr:192.168.56.10 Bcast:192.168.56.255 Mask:255.255.255.0 inet6 addr: fe80::fad1:11ff:febd:575c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5610 errors:0 dropped:46 overruns:0 frame:0 TX packets:3354 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:584295 (570.6 KiB) TX bytes:608845 (594.5 KiB)

eth0 Link encap:Ethernet HWaddr F8:D1:11:BD:57:5C UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6053 errors:0 dropped:443 overruns:0 frame:0 TX packets:3350 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:689415 (673.2 KiB) TX bytes:608437 (594.1 KiB) Interrupt:4

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2006 errors:0 dropped:0 overruns:0 frame:0 TX packets:2006 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:148644 (145.1 KiB) TX bytes:148644 (145.1 KiB)

Restart didn't work.

adulau commented 12 years ago

I'm not sure this is directly related to Forban.

Do you see something specials in your logs? especially kernel logs (dmesg)? do you see the announce sent on the interface where Python is binding too? I remember a case with two PCs where the "power saving mode" of the wireless disliked the "regular announce interval" and decided to shut-down the PHY layer of the 802.11.

MaStr commented 12 years ago

No entry in kernel logs. No entry in forban_announce log I installed tcpdump on the MR3020 for this bug. .. no announcement packages on br-lan or eth0 direct. Wireless was offline all the time. The router is connected vie wire.

adulau commented 12 years ago

Interesting. If you check with "ss -a" do you some entries for the port 12555 (with Forban started and stopped)?

MaStr commented 12 years ago

"ss -a" ? Restart forban didn't work either

adulau commented 12 years ago

"ss" is another utility to investigate sockets and part of the iproute2 package. I don't know if OpenWRT includes it by default. "netstat -an" could do the job too. thanks.

I find it strange that the "restart" is not brining back the announce again. I have the impression that the "sockets" are still bind or something like that.

MaStr commented 12 years ago

Ok, I can't reproduce it. Next time, I'll backup the image and send it to you.