Some Yun processes can access the web, some can't anymore (2.5 days problem?)


hi,
i have yun (image of november 2014, ex-rooted instructed) running webserver , gateway home automation, on 2 networks (eth0 , wlan1).

everything "south of bridge" (on mcu side) works flawlessly (controlling other arduinos via nrf24xx network), continuously, no need reset / memory leakage / etc...

everything "north of bridge" (on openwrt side) works flawlessly:
 - communicating mcu through bridge,
 - controlling kankun - outlets on wifi network,
 - serving yun / luci interface on port 80 on both networks (192.xxx , 10.xxx),
 - serving python flask web interface on port 5000 on both networks (192.xxx , 10.xxx)).

i watch processes on linux side through bridge , restart them necessary, if fail, , log database - have quite insight stability of sketch , scripts running on both processors. stable, @ least weeks.

problem after few hours or days, of services can't access anymore www.

namely "yalertunnel":

code: [select]

apr 25 10:07:26 webserver user.info sysinit: 2015-04-25't'14:07:26'z':connection failure:148:no route host:try.yaler.net:80@yalertunnel.c:1036
apr 25 10:07:26 webserver user.info sysinit: 2015-04-25't'14:07:26'z':connection failure:148:no route host:try.yaler.net:80@yalertunnel.c:1036
apr 25 10:07:26 webserver user.info sysinit: 2015-04-25't'14:07:26'z':connection failure:148:no route host:try.yaler.net:80@yalertunnel.c:1036
apr 25 10:07:26 webserver user.info sysinit: 2015-04-25't'14:07:26'z':connection failure:148:no route host:try.yaler.net:80@yalertunnel.c:1036


and 1 of python processes:

code: [select]

import urllib2
f = urllib2.urlopen('some .json out on web')

traceback (most recent call last):
  file "x.py", line 231, in <module>
    f = urllib2.urlopen('http://api.wunderground.com/api/someprivateinfohere.json')
(...)
  file "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
    raise urlerror(err)
urllib2.urlerror: <urlopen error [errno 145] connection timed out>


the yun logged 2 different networks, both have access www:

code: [select]

kernel ip routing table
destination     gateway         genmask         flags metric ref    use iface
default         10.0.0.1        0.0.0.0         ug    0      0        0 wlan0
default         192.168.1.1     0.0.0.0         ug    0      0        0 eth1
default         10.0.0.1        0.0.0.0         ug    0      0        0 wlan0
10.0.0.0        *               255.255.255.0   u     0      0        0 wlan0
192.168.1.0     *               255.255.255.0   u     10     0        0 eth1


when open shell, may or may not pingbacks:

code: [select]

root@webserver:/mnt/sda1# ping www.arduino.cc

ping www.arduino.cc (107.22.183.212): 56 data bytes
--- www.arduino.cc ping statistics ---
26 packets transmitted, 0 packets received, 100% packet loss

root@webserver:/mnt/sda1# ping www.google.com

ping www.google.com (64.233.168.104): 56 data bytes
64 bytes 64.233.168.104: seq=0 ttl=42 time=69.098 ms
64 bytes 64.233.168.104: seq=1 ttl=42 time=77.026 ms
64 bytes 64.233.168.104: seq=2 ttl=42 time=66.581 ms
^c
--- www.google.com ping statistics ---
4 packets transmitted, 3 packets received, 25% packet loss
round-trip min/avg/max = 66.581/70.901/77.026 ms



i have second, identical (!) setup (same code, fewer devices controlled) somewhere else (same internet service provider), works (up 3 weeks now, , running strong).
 
any suggestions?

thanks,
jafrei

code: [select]
ping www.arduino.cc

is failed since firewall block icmp !

is bad idea firewall block icmp?

http://security.stackexchange.com/questions/22711/is-it-a-bad-idea-for-a-firewall-to-block-icmp








Arduino Forum > Products > Arduino Yún (Moderator: fabioc84) > Some Yun processes can access the web, some can't anymore (2.5 days problem?)


arduino

Comments