freifunk / meshkit-firmware

Openwrt Imagebuilding for Usage with Freifunk Meshkit
http://meshkit.freifunk.net
5 stars 2 forks source link

OLSR stürzt ab. memory problem? #17

Closed FreifunkUFO closed 9 years ago

FreifunkUFO commented 10 years ago

OLSR stürzt ab, zb wenn ich via luci auf die Netzwerkinterface Seite gehe:

Bad Gateway

The process did not produce any response

then olsr is gone... batman-adv is still working :-)

837 root 1160 S /usr/sbin/odhcpd 869 root 1100 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 936 root 1516 S /usr/sbin/uhttpd -f -h /www -r similde41 -x /cgi-bin -u /ubus -t 60 -T 30 -k 20 -A 1 -n 3 -N 100 -p 0.0.0 937 root 1124 S /usr/sbin/uhttpd -f -h /www/cgi-bin/splash/ -r similde41 -k 0 -E /splash.sh -n 3 -p 8082 -i .sh=/bin/ash 939 root 0 SW [kworker/0:3] 1151 root 1484 S /usr/sbin/hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf 1174 root 0 SW [kworker/u2:3] 1208 root 1360 S udhcpc -p /var/run/udhcpc-br-mesh14.pid -s /lib/netifd/dhcp.script -f -t 0 -i br-mesh14 -H similde41-batm 1225 root 1132 S /usr/sbin/ffwatchd 1356 root 1364 S /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.open 1415 root 1364 S /usr/sbin/crond -f -c /etc/crontabs -l 9 1604 root 1168 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 2031 root 1368 S -ash 2220 nobody 944 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k 2280 root 1168 R /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 2283 root 1368 S -ash 2332 root 1360 R ps w root@similde41:~# neigh.sh nc: can't connect to remote host (127.0.0.1): Connection refused Failed to parse message data

nc: can't connect to remote host: Connection refused Failed to parse message data

root@similde41:~# ls -la /var/run/ drwxr-xr-x 3 root root 420 Jul 18 14:57 . drwxrwxrwt 15 root root 420 Jul 18 15:00 .. -rw-r--r-- 1 root root 1481 Jul 18 14:44 config.md5 -rw-r--r-- 1 root root 5 Jul 18 14:45 crond.pid -rw-r--r-- 1 root root 2 Jul 18 14:45 dnsmasq.eth1.dhcp -rw-r--r-- 1 root root 5 Jul 18 14:57 dnsmasq.pid -rw-r--r-- 1 root root 4 Jul 18 14:44 dropbear.1.pid -rw-r--r-- 1 root root 5 Jul 18 14:45 ffwatchd.pid -rw-r--r-- 1 root root 1054 Jul 18 14:45 fw3.state drwxr-x--- 2 root root 80 Jul 18 14:45 hostapd -rw-r--r-- 1 root root 627 Jul 18 14:45 hostapd-phy0.conf prw-r--r-- 1 root root 0 Jul 18 14:45 latlon.js -rw-r--r-- 1 root root 115 Jul 18 14:45 macs_olsr -rw-r--r-- 1 root root 5 Jul 18 14:45 ntpd.pid -rwx------ 1 root root 0 Jul 18 14:45 olsrd-ipv4.lock -rw-r--r-- 1 root root 11 Jul 18 14:59 olsrd.watchdog -rw-r--r-- 1 root root 5 Jul 18 14:45 olsrd4.pid -rw-r--r-- 1 root root 115 Jul 18 14:45 services_olsr srw------- 1 root root 0 Jan 1 1970 ubus.sock -rw-r--r-- 1 root root 5 Jul 18 14:45 udhcpc-br-mesh14.pid -rw-r--r-- 1 root root 5 Jul 18 14:45 wifi-phy0.pid root@similde41:~#

FreifunkUFO commented 10 years ago

maybe killing luci-splash for more memory?

root@similde41:~# uci delete uhttpd.splash root@similde41:~# uci commit root@similde41:~#

FreifunkUFO commented 10 years ago

whats that in /tmp?

root@similde41:/tmp# du -sh * 4.0K TZ 0 dhcp.leases 0 dnsmasq.d 28.0K etc 4.0K hosts 0 lock 0 log 92.0K luci-indexcache 364.0K luci-modulecache 4.0K luci-sessions 416.0K olsrd.1902.11.1405688368.core 0 overlay 4.0K resolv.conf 4.0K resolv.conf.auto 64.0K run 0 spool 8.0K state 8.0K sysinfo

stargieg commented 10 years ago

Hi Hatte ich auch. Probiere mal https://github.com/freifunk/firmware-berlin/blob/master/patches/routing-olsrd-json-bind-v6-only.patch

Am 18.07.2014 um 15:30 schrieb FreifunkUFO notifications@github.com:

whats that in /tmp?

root@similde41:/tmp# du -sh * 4.0K TZ 0 dhcp.leases 0 dnsmasq.d 28.0K etc 4.0K hosts 0 lock 0 log 92.0K luci-indexcache 364.0K luci-modulecache 4.0K luci-sessions 416.0K olsrd.1902.11.1405688368.core 0 overlay 4.0K resolv.conf 4.0K resolv.conf.auto 64.0K run 0 spool 8.0K state 8.0K sysinfo

— Reply to this email directly or view it on GitHub https://github.com/freifunk/firmware-leipzig/issues/17#issuecomment-49430452 .

FreifunkUFO commented 10 years ago

nach 18 minuten siehts zb so hier aus, Load auf 8....

806 root 1476 S /sbin/netifd 835 root 1160 D /usr/sbin/odhcpd 870 root 1100 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 902 root 1512 S /usr/sbin/uhttpd -f -h /www -r similde41 -x /cgi-bin -u /ubus -t 60 -T 30 -k 20 -A 1 -n 3 -N 100 -p 0.0.0 1118 root 1364 S /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.open 1199 root 1132 S /usr/sbin/ffwatchd 1216 root 1484 S /usr/sbin/hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf 1245 root 1364 S /usr/sbin/crond -f -c /etc/crontabs -l 9 1258 root 1360 S udhcpc -p /var/run/udhcpc-br-mesh14.pid -s /lib/netifd/dhcp.script -f -t 0 -i br-mesh14 -H similde41-batm 1261 root 1360 S udhcpc -p /var/run/udhcpc-br-mesh12.pid -s /lib/netifd/dhcp.script -f -t 0 -i br-mesh12 -H similde41-batm 1323 nobody 944 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k 1327 root 0 SW< [kworker/0:1H] 1723 root 1384 S {hotplug-call} /bin/sh /sbin/hotplug-call iface 1845 root 1388 S {hotplug-call} /bin/sh /sbin/hotplug-call iface 1849 root 1388 S {hotplug-call} /bin/sh /sbin/hotplug-call iface 1854 root 972 D uci -q get olsrd @Interface[2] interface 1855 root 1360 S /bin/sh -c /usr/sbin/ff_olsr_test_gw.sh 1856 root 1396 S {ff_olsr_test_gw} /bin/sh /usr/sbin/ff_olsr_test_gw.sh 1866 root 1384 S {hotplug-call} /bin/sh /sbin/hotplug-call net 1885 root 972 D /sbin/uci -P /var/state -S -n export olsrd 1919 root 1404 S {hotplug-call} /bin/sh /sbin/hotplug-call net 1920 root 972 D /sbin/uci -P /var/state -S -n export batman-adv 1946 root 0 SW [kworker/u2:1] 1968 root 0 SW [kworker/u2:0] 1969 root 1360 S /bin/sh -c /usr/sbin/ff_olsr_test_gw.sh 1971 root 1396 S {ff_olsr_test_gw} /bin/sh /usr/sbin/ff_olsr_test_gw.sh 1973 root 972 D /sbin/uci -P /var/state -S -n export olsrd 1991 root 2024 D {luci} /usr/bin/lua /www/cgi-bin/luci 1992 root 0 SW [kworker/0:1] 1993 root 0 SW [kworker/u2:3] 1996 root 2024 D {luci} /usr/bin/lua /www/cgi-bin/luci 1997 root 2024 D {luci} /usr/bin/lua /www/cgi-bin/luci 2000 root 1168 R /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 2001 root 1368 S -ash 2023 root 0 Z [sh] 2024 root 0 Z [sh] 2026 root 0 Z [sh] 2027 root 0 Z [sh] 2037 root 1360 R ps w root@similde41:~# neigh.sh nc: can't connect to remote host (127.0.0.1): Connection refused Failed to parse message data

nc: can't connect to remote host: Connection refused Failed to parse message data

root@similde41:~# uptime 16:20:16 up 19 min, load average: 7.90, 6.13, 3.75

FreifunkUFO commented 10 years ago

stargieg: interessant.. und das, obwohl ihr noch ein altes openwrt fahrt?

bei uns müsste der patch so ähnlich auch schon mit drin sein, soweit ich das vermuten kann:

root@similde41:~# olsrd -v

* olsr.org - 0.6.6.2-git_c48a165-hash_661d0772de00e0d05e6b0b63b5948bfe *

Build date: 2014-07-15 04:00:59 on gates

http://olsr.org/git/?p=olsrd.git;a=shortlog

FreifunkUFO commented 9 years ago

analyzing that core-file:

(gdb) core-file /o/olsrd.2029.4.1406253279.core [New LWP 2029] Core was generated by `/usr/sbin/olsrd -f /var/etc/olsrd.conf -nofork'. Program terminated with signal 4, Illegal instruction.

0 0x0044c2a0 in reverse_mid_set ()

FreifunkUFO commented 9 years ago

soweit mit openwrt cc auch noch nie wieder beobachtet..

FreifunkUFO commented 9 years ago

hm, ausnahmen bestätigen die regel.. sicher schon das nächste problem, hier mit openwrt cc...

[53861.980000] ------------[ cut here ]------------ [53861.990000] WARNING: CPU: 0 PID: 2047 at net/ipv4/af_inet.c:153 inet_sock_destruct+0x1a4/0x1d0() [53862.000000] Modules linked in: ath9k ath9k_common iptable_nat ath9k_hw ath nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY ts_kmp ts_fsm ts_bm nf_reject_ipv4 nf_nat_masquerade_ipv4 nf_nat_irc nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_irc nf_conntrack_ftp iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat em_nbyte sch_tbf sch_gred em_meta sch_dsmark sch_teql cls_basic act_ipt sch_red sch_prio sch_codel em_text sch_htb sch_sfq act_police em_cmp act_connmark nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress batman_adv libcrc32c crc16 ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ifb sit tunnel4 ip_tunnel tun ipv6 arc4 crypto_blkcipher gpio_button_hotplug crc32c_generic crypto_hash [53862.110000] CPU: 0 PID: 2047 Comm: olsrd Not tainted 3.18.9 #22 [53862.120000] Stack : 00000000 00000000 00000000 00000000 8039cd32 00000033 00000000 8016a6f0 [53862.120000] 00000001 81bbfaa8 802ef3f8 803296a3 000007ff 80393b5c 818d95a8 81bbfaa8 [53862.120000] 80330000 80320000 802f1748 80293de4 00000003 801f7d44 00000099 81bbfaa8 [53862.120000] 802f2500 816f3c1c 00000000 00000000 00000000 00000000 00000000 00000000 [53862.120000] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [53862.120000] ... [53862.160000] Call Trace: [53862.160000] [<80239e28>] show_stack+0x48/0x70 [53862.160000] [<802a3b84>] warn_slowpath_common+0x84/0xb4 [53862.170000] [<802a3c3c>] warn_slowpath_null+0x18/0x24 [53862.180000] [<8016a6f0>] inet_sock_destruct+0x1a4/0x1d0 [53862.180000] [<800aa4ac>] sk_free+0x24/0xf0 [53862.190000] [<80169490>] inet_release+0x60/0x78 [53862.190000] [<80248444>] sock_release+0x2c/0xcc [53862.200000] [<80246568>] sock_close+0x10/0x20 [53862.200000] [<800919f4>] fput+0xf8/0x1e8 [53862.200000] [<8025ad64>] task_work_run+0x8c/0xb8 [53862.210000] [<80119f94>] do_exit+0x308/0x764 [53862.210000] [<8011b9f0>] do_group_exit+0x48/0xac [53862.220000] [<80154688>] get_signal+0x468/0x4b0 [53862.220000] [<80125260>] do_signal+0x18/0x1a4 [53862.230000] [<8012097c>] do_notify_resume+0x2c/0x78 [53862.230000] [<800609ac>] work_notifysig+0x10/0x18 [53862.240000] [53862.240000] ---[ end trace 9c1e60abd13adf06 ]--- [261121.140000] ath: phy0: Failed to stop TX DMA, queues=0x003! root@westwerkdach:~# root@westwerkdach:~# olsrd -v

* olsr.org - 0.6.8-git_e64c807-hash_0060b4579ccee322dc551d3243878021 * Build date: 2015-03-24 04:33:15 on box http://www.olsr.org

root@westwerkdach:~# uname -a Linux westwerkdach 3.18.9 #22 Wed Mar 25 00:36:38 CET 2015 mips GNU/Linux root@westwerkdach:~# cat /etc/openwrt_* DISTRIB_ID='OpenWrt' DISTRIB_RELEASE='Bleeding Edge' DISTRIB_REVISION='r44970' DISTRIB_CODENAME='chaos_calmer' DISTRIB_TARGET='ar71xx/generic' DISTRIB_DESCRIPTION='OpenWrt Chaos Calmer r44970' DISTRIB_TAINTS='no-all mklibs' r44970 root@westwerkdach:~#