Hi,
I have a Yun (image as of November 2014, ex-rooted as instructed) running as a webserver and gateway to some home automation, on two networks (eth0 and wlan1).
Everything "south of the bridge" (on the MCU side) works flawlessly (controlling other Arduinos via an nRF24xx network), continuously, no need to reset / memory leakage / etc...
Everything "north of the bridge" (on the openWrt side) works flawlessly:
- communicating with the MCU through the bridge,
- controlling Kankun - outlets on my WiFi network,
- serving the Yun / luci interface on port 80 on both networks (192.xxx and 10.xxx),
- serving my python flask web interface on port 5000 on both networks (192.xxx and 10.xxx)).
I watch my processes on the linux side through the bridge and restart them as necessary, if they fail, and log all that into a database - I have quite good insight into the stability of my sketch and the scripts running on both processors. They are stable, at least for weeks.
Problem is that after a few hours or days, some of the services can't access anymore the www.
Namely those are "yalertunnel":
Apr 25 10:07:26 webserver user.info sysinit: 2015-04-25'T'14:07:26'Z':connection failure:148:No route to 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 to 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 to 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 to host:try.yaler.net:80@yalertunnel.c:1036
And one of my python processes:
import urllib2
f = urllib2.urlopen('some .json out on the 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 is logged into two different networks, both have access to the www:
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 I open a shell, I may or may not get pingbacks:
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 from 64.233.168.104: seq=0 ttl=42 time=69.098 ms
64 bytes from 64.233.168.104: seq=1 ttl=42 time=77.026 ms
64 bytes from 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 do have a second, identical (!) setup (same code, but fewer devices controlled) somewhere else (same internet service provider), that just works (up for 3 weeks now, and running strong).
Any suggestions?
Thanks,
jafrei