[nos-bbs] Raspberry Pi Jnos exiting every 15 minutes or less

Ray Quinn w6ray at sbcglobal.net
Thu Feb 13 23:30:12 EST 2014


Jose,

On my Pi running JNOS, I have the line in /etc/inittab like this:

8:2345:respawn:/jnos/startnos


 
73 de Ray W6RAY
Visalia, CA DM06ih


________________________________
 From: Jose Ng Lee <hp2cwb at cwpanama.net>
To: TAPR xNOS Mailing List <nos-bbs at tapr.org> 
Sent: Thursday, February 13, 2014 6:37 PM
Subject: Re: [nos-bbs] Raspberry Pi Jnos exiting every 15 minutes or less
 


Thanks Bob for your help.
 
I disable the Respawn and run it from the shell.  
This afternoon tested it in the office and Jnos stay alive for 4 hours without 
exiting until I exit and went home.  At home now, the status command show 
is up for 2 hours, 19 minutes, and 30 sec.
 
Something is wrong with the way I automatically restart 
routine in case of crash.
 
In /etc/inittab added this line:
 
##Start Jnos on bootup and respawn it should it 
crash
JNOS:2345:respawn:/jnos/startnos
 
My startnos:

#!/bin/sh
# Script to invoke the Linux Jnos.  
Usage: dojnos [optional_args]
# User should edit definitions for jnosroot and 
autoexec, and edit the
# $local and $remote addresses, and $mtu value in the 
DIP script below:
#
rm -f /jnos/spool/mqueue/*.lck 2>/dev/null
rm -f 
/jnos/spool/mail/*.lck 2>/dev/null
#
exec /jnos/jnos -d /jnos -v 
</dev/tty8>/dev/tty8 2>&1
#

So maybe something wrong with tty8 or should I try another 
tty?
 
Or if there is another way to autostart Jnos in the 
RPI?
 
Now, that I monitor my log more frecuently to try to solve 
my problem.  I see that hackers are trying to hack into my 
Jnos.
 
14:59:20  89.106.101.23:39439 - MBOX (root) bad 
login
14:59:32  89.106.101.23:39580 - MBOX (root) bad 
login
14:59:44  89.106.101.23:39753 - MBOX (admin) bad 
login
14:59:55  89.106.101.23:39905 - MBOX (admin) bad 
login
15:00:07  89.106.101.23:40024 - MBOX (admin) bad 
login
15:00:18  89.106.101.23:40139 - MBOX (admin) bad 
login
15:00:30  89.106.101.23:40252 - MBOX (admin) bad 
login
15:00:41  89.106.101.23:40369 - MBOX (admin) bad 
login
15:00:53  89.106.101.23:40491 - MBOX (admin) bad 
login
15:01:04  89.106.101.23:40606 - MBOX (cusadmin) bad 
login
15:01:15  89.106.101.23:40728 - MBOX (cusadmin) bad 
login
19:29:05  121.34.217.118:47267 - MBOX (root) bad 
login
21:06:05  110.184.235.100:45981 - MBOX (root) bad 
login
21:13:40  109.166.175.86:54030 - MBOX (root) bad 
login

Thanks,
José / HP2AT
----- Original Message ----- 
>From: Bob Tenty 
>To: TAPR xNOS Mailing List 
>Sent: Wednesday, February 12, 2014 6:23  PM
>Subject: Re: [nos-bbs] Raspberry Pi Jnos  exiting every 15 minutes or less
>
>
>Check or /var/log/syslog gives you a clue just  before the time it restarts.
>
>Run jnos from the shell prompt instead of 
  in a pseudo tty  and let it run for a while
>and see or it doesn't 
  crash or whatever.
>
>It may be how you start jnos in a pseudo tty if it 
  keeps running from the shell.
>
>73,
>
>Bob (Boudewijn) 
  VE3TOK
>
>
>On 14-02-12 11:20 AM, Jose Ng Lee wrote:
>
>I am using the F6BVP image with AX25, DXSpider, Fbb,  Fpac preintalled burned into a 32GB SD card.  Later installed Jnos,  APRX, and LinBPQ.  All the other software are working OK.  My only  problem is Jnos that is keep exiting in every 15 minutes or  less.  I set it to respawn automatically.   I tried  jnos2f and jnos2fx4 compiled from the source OK but still exiting.  The  logs doesn't show me why it is exiting.
>> 
>>JNOS LOG:
>>09:54:25  - allocating maximum of 24 
    Axip (axudp + axip) devices
>>09:54:25  - allocating maximum of 24 
    dynamic gateways for routes
>>09:54:26  - using new [tun0] 
    device
>>09:54:26  - tun_rx - listening for packets
>>09:55:07  
    - JNOS 2.0j.4 (Linux) was started
>>10:09:51  - allocating maximum of 
    24 Axip (axudp + axip) devices
>>10:09:51  - allocating maximum of 24 
    dynamic gateways for routes
>>10:09:51  - using new [tun0] 
    device
>>10:09:51  - tun_rx - listening for packets
>>10:10:33  
    - JNOS 2.0j.4 (Linux) was started
>>10:19:13  - allocating maximum of 
    24 Axip (axudp + axip) devices
>>10:19:13  - allocating maximum of 24 
    dynamic gateways for routes
>>10:19:14  - using new [tun0] 
    device
>>10:19:14  - tun_rx - listening for packets
>>10:19:55  
    - JNOS 2.0j.4 (Linux) was started
>>10:20:10  - allocating maximum of 
    24 Axip (axudp + axip) devices
>>10:20:10  - allocating maximum of 24 
    dynamic gateways for routes
>>10:20:10  - using new [tun0] 
    device
>>10:20:10  - tun_rx - listening for packets
>>10:20:51  
    - JNOS 2.0j.4 (Linux) was started
>> 
>>SYSLOG:
>>Feb 12 10:19:37 hp2ng netromd[3139]: 
    receiving NODES broadcast on port lan from HP2NG-6
>>Feb 12 10:19:55 hp2ng 
    kernel: [  160.052280] IPv4: martian source 200.46.129.3 from 
    44.163.22.12, on dev tun0
>>Feb 12 10:19:55 hp2ng kernel: [  
    160.076090] IPv4: martian source 200.46.129.3 from 44.163.22.12, on dev 
    tun0
>>Feb 12 10:19:55 hp2ng kernel: [  160.102165] IPv4: martian 
    source 200.46.129.3 from 44.163.22.12, on dev tun0
>>Feb 12 10:20:10 hp2ng 
    LINBPQ[3289]: BPQ32 Heartbeat Buffers 786 APRS Queues 0 0#015
>>Feb 12 
    10:20:10 hp2ng netromd[3139]: receiving NODES broadcast on port bpq from 
    HP2NG-2
>>Feb 12 10:20:10 hp2ng netromd[3139]: netromr: add_node: route to 
    me
>>Feb 12 10:20:10 hp2ng netromd[3139]: netromr: add_node: route to 
    me
>>Feb 12 10:20:10 hp2ng netromd[3139]: netromr: add_node: route to 
    me
>>Feb 12 10:20:10 hp2ng netromd[3139]: netromr: add_node: quality less 
    than worst_qual
>>Feb 12 10:20:10 hp2ng netromd[3139]: netromr: add_node: 
    quality less than worst_qual
>>Feb 12 10:20:10 hp2ng netromd[3139]: 
    netromr: add_node: quality less than worst_qual
>>Feb 12 10:20:10 hp2ng 
    netromd[3139]: netromr: add_node: quality less than worst_qual
>>Feb 12 
    10:20:10 hp2ng NetworkManager[2896]:    SCPlugin-Ifupdown: 
    devices removed (path: /sys/devices/virtual/net/tun0, iface: tun0)
>>Feb 12 
    10:20:10 hp2ng NetworkManager[2896]:    SCPlugin-Ifupdown: 
    devices added (path: /sys/devices/virtual/net/tun0, iface: tun0)
>>Feb 12 
    10:20:10 hp2ng NetworkManager[2896]:    SCPlugin-Ifupdown: 
    device added (path: /sys/devices/virtual/net/tun0, iface: tun0): no ifupdown 
    configuration found.
>>Feb 12 10:20:34 hp2ng netromd[3139]: receiving NODES 
    broadcast on port lan from HP2NG-6
>>Feb 12 10:20:51 hp2ng kernel: [  
    216.684161] IPv4: martian source 200.46.129.3 from 44.163.22.12, on dev 
    tun0
>>Feb 12 10:20:51 hp2ng kernel: [  216.707724] IPv4: martian 
    source 200.46.129.3 from 44.163.22.12, on dev tun0
>>Feb 12 10:20:52 hp2ng 
    kernel: [  216.733542] IPv4: martian source 200.46.129.3 from 
    44.163.22.12, on dev tun0
>>Feb 12 10:21:05 hp2ng LINBPQ[3289]: BPQ32 
    Heartbeat Buffers 786 APRS Queues 0 0#015
>>Feb 12 10:22:00 hp2ng 
    LINBPQ[3289]: BPQ32 Heartbeat Buffers 787 APRS Queues 0 0#015
>>Feb 12 
    10:22:31 hp2ng dbus[2812]: [system] Activating service 
    name='org.freedesktop.ConsoleKit' (using servicehelper)
>>Feb 12 10:22:31 
    hp2ng dbus[2812]: [system] Successfully activated service 
    'org.freedesktop.ConsoleKit'
>>Feb 12 10:22:56 hp2ng LINBPQ[3289]: BPQ32 
    Heartbeat Buffers 787 APRS Queues 0 0#015
>>Feb 12 10:23:31 hp2ng kernel: 
    [  375.843236] Shorewall:net2tun:DROP:IN=eth0 OUT=tun0 
    MAC=b8:27:eb:e1:b2:ee:00:16:17:4d:70:d9:08:00:45:00:00:81:e3:32:00:00:de:5d:66:88 
    SRC=200.46.129.3 DST=200.46.129.4 LEN=129 TOS=0x00 PREC=0x00 TTL=222 
    ID=58162 PROTO=93 
>>Feb 12 10:23:51 hp2ng LINBPQ[3289]: BPQ32 Heartbeat 
    Buffers 787 APRS Queues 0 0#015
>>Feb 12 10:24:46 hp2ng LINBPQ[3289]: BPQ32 
    Heartbeat Buffers 787 APRS Queues 0 0#015
>>Feb 12 10:25:02 hp2ng kernel: 
    [  466.821519] Shorewall:net2tun:DROP:IN=eth0 OUT=tun0 
    MAC=b8:27:eb:e1:b2:ee:88:43:e1:dc:7f:40:08:00:45:00:00:28:01:00:00:00:6a:06:0b:dd 
    SRC=198.40.52.152 DST=200.46.129.4 LEN=40 TOS=0x00 PREC=0x00 TTL=106 ID=256 
    PROTO=TCP SPT=6000 DPT=3389 WINDOW=16384 RES=0x00 SYN URGP=0 
>>Feb 12 
    10:25:42 hp2ng LINBPQ[3289]: BPQ32 Heartbeat Buffers 787 APRS Queues 0 
    0#015
>>Feb 12 10:26:37 hp2ng LINBPQ[3289]: BPQ32 Heartbeat Buffers 787 
    APRS Queues 0 0#015
>>Feb 12 10:27:32 hp2ng LINBPQ[3289]: BPQ32 Heartbeat 
    Buffers 787 APRS Queues 0 0#015
>>Feb 12 10:28:22 hp2ng kernel: [  
    667.562527] Shorewall:net2tun:DROP:IN=eth0 OUT=tun0 
    MAC=b8:27:eb:e1:b2:ee:88:43:e1:dc:7f:40:08:00:45:00:00:30:a1:0a:00:00:68:06:cf:b6 
    SRC=61.129.91.83 DST=200.46.129.4 LEN=48 TOS=0x00 PREC=0x00 TTL=104 ID=41226 
    PROTO=TCP SPT=24397 DPT=22 WINDOW=65535 RES=0x00 SYN URGP=0 
>>Feb 12 
    10:28:27 hp2ng LINBPQ[3289]: BPQ32 Heartbeat Buffers 787 APRS Queues 0 
    0#015
>> I tried gdb but it said no debugging symbols.  I re-compiled the  jnos binary without stripping but still shows the no debugging  symbols.  I tried in the makefile debug static -g3 but does not compile  and exit with Error.
>> 
>>root at hp2ng:/home/hp2at# ps -ef | grep  jnos
>>root      3874     
    1  0 10:47 tty8     00:00:00 /jnos/jnos -d /jnos 
    -v
>>root      3961  3959  0 10:50 
    pts/10   00:00:00 grep jnos
>>root at hp2ng:/home/hp2at# gdb -p 3874
>>GNU gdb 
    (GDB) 7.4.1-debian
>>Copyright (C) 2012 Free Software Foundation, 
    Inc.
>>License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
>>This is 
    free software: you are free to change and redistribute it.
>>There is NO 
    WARRANTY, to the extent permitted by law.  Type "show copying"
>>and 
    "show warranty" for details.
>>This GDB was configured as 
    "arm-linux-gnueabihf".
>>For bug reporting instructions, please 
    see:
>><http://www.gnu.org/software/gdb/bugs/>.
>>Attaching 
    to process 3874
>>Reading symbols from /jnos/jnos...done.
>>Reading 
    symbols from /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so...(no debugging 
    symbols found)...done.
>>Loaded symbols for 
    /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so
>>Reading symbols from 
    /lib/arm-linux-gnueabihf/libncurses.so.5...(no debugging symbols 
    found)...done.
>>Loaded symbols for 
    /lib/arm-linux-gnueabihf/libncurses.so.5
>>Reading symbols from 
    /lib/arm-linux-gnueabihf/libtinfo.so.5...(no debugging symbols 
    found)...done.
>>Loaded symbols for 
    /lib/arm-linux-gnueabihf/libtinfo.so.5
>>Reading symbols from 
    /lib/arm-linux-gnueabihf/libgcc_s.so.1...(no debugging symbols 
    found)...done.
>>Loaded symbols for 
    /lib/arm-linux-gnueabihf/libgcc_s.so.1
>>Reading symbols from 
    /lib/arm-linux-gnueabihf/libc.so.6...Reading symbols from 
    /usr/lib/debug/lib/arm-linux-gnueabihf/libc-2.13.so...done.
>>done.
>>Loaded 
    symbols for /lib/arm-linux-gnueabihf/libc.so.6
>>Reading symbols from 
    /lib/arm-linux-gnueabihf/libdl.so.2...Reading symbols from 
    /usr/lib/debug/lib/arm-linux-gnueabihf/libdl-2.13.so...done.
>>done.
>>Loaded 
    symbols for /lib/arm-linux-gnueabihf/libdl.so.2
>>Reading symbols from 
    /lib/ld-linux-armhf.so.3...(no debugging symbols found)...done.
>>Loaded 
    symbols for /lib/ld-linux-armhf.so.3
>>0xb6e9bd80 in select () at 
    ../sysdeps/unix/syscall-template.S:82
>>82      
    ../sysdeps/unix/syscall-template.S: No such file or 
directory.
>>(gdb)
>> 
>>I tried looking at the autoexec.nos for anything not right, the network  configuration, shorewall firewall configuration, cron jobs, not running the  other software LinBPQ, APRX, etc but still exiting in 15 minutes or  less.
>> 
>>Any help where to look or what to try to make JNOS work.
>> 
>>Thanks, 
>>Jose / HP2AT
>>
>>
>>_______________________________________________
nos-bbs mailing list nos-bbs at tapr.org http://www.tapr.org/mailman/listinfo/nos-bbs 
>
>________________________________
> _______________________________________________
>nos-bbs mailing 
  list
>nos-bbs at tapr.org
>http://www.tapr.org/mailman/listinfo/nos-bbs
>
_______________________________________________
nos-bbs mailing list
nos-bbs at tapr.org
http://www.tapr.org/mailman/listinfo/nos-bbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/nos-bbs_lists.tapr.org/attachments/20140213/d6b94049/attachment.html>


More information about the nos-bbs mailing list