Isn't time travel fun. :) Some time ago I noticed my systems had not received the extnodes file in a very long time because the rc.updatenodelist script was hung up on one of the servers that was having a problem. So I modified the wget line in the /etc/rc.d/rc.updatenodelist script. I added the "-t 2 -T 8" to the line and that seems to let it more easily skip over the server that is not working correctly. $WGET -q -t 2 -T 8 -O /tmp/rpt_extnodes-temp http://$i.$TOPDOMAIN/cgi-bin/ nodes.pl Seems to be lots better since then. Even when there were 2 of the 4 servers that were having issues, my system with the modified script still kept getting the updated extnodes file, while my friends system without the change was not getting the updated extnodes file. Chuck, WB9UUS On Sat, Dec 7, 2013 at 12:16 PM, Tim Sawyer <tim.sawyer@mac.com> wrote:
Corey,
Your wget command puts the Allstar node list file in a temporary staging area/name. So it won’t actually update your node list immediately, if at all. The actual nodes list lives at /var/lib/asterisk/rpt_extnodes.
Normally the script rc.updatesnodelist will always be running (ps aux | grep updatenodelist) so it shouldn’t be necessary to use the script below. But for troubleshooting it may be useful.
Here is a modified version of rc.updatesnodelist. Put this in a file, mark it executable and run it.
#! /bin/sh
TOPDOMAIN=allstarlink.org SUBDOMAINS="nodes1 nodes2 nodes3" FILEPATH=/var/lib/asterisk WGET=`which wget`
for i in $SUBDOMAINS; do res=0 while [ $res -eq 0 ]; do $WGET -O $FILEPATH/rpt_extnodes-temp http://$i.$TOPDOMAIN/cgi-bin/nodes.pl res=$? if [ $res -eq 0 ]; then /bin/chmod 700 $FILEPATH/rpt_extnodes-temp /bin/mv -f $FILEPATH/rpt_extnodes-temp $FILEPATH/rpt_extnodes echo "Retrieved node list from $i.$TOPDOMAIN" date #sleep 600 exit 0 else echo "Problem retrieving node list from $i.$TOPDOMAIN, trying another server"; sleep 30 fi done done
Or you could just issue the following wget command. Note the host is nodes1 where the above script will try nodes1, nodes2 and nodes3. /usr/bin/wget -O /var/lib/asterisk/rpt_extnodes http://nodes1.allstarlink.org/cgi-bin/nodes.pl
-- Tim :wq
On Apr 4, 2011, at 1:24 PM, Corey Dean <n3fe@repeater.net> wrote:
TO add to this I can see my node trying to register. I will look at another node 27362 after it has downloaded the rpt-extnodes file and my 2340 does not show up… This just started today… Any clues? Sorry about all the emails… I am just trying to figure this out…
*From:* app_rpt-users-bounces@ohnosec.org [ mailto:app_rpt-users-bounces@ohnosec.org<app_rpt-users-bounces@ohnosec.org> ] *On Behalf Of *Corey Dean *Sent:* Monday, April 04, 2011 3:36 PM *To:* app_rpt-users@ohnosec.org *Subject:* Re: [App_rpt-users] Registration issues
Same here. My node hasn’t been able to get the updated list for hours now. I manually issued the command on my node (which is registered to the system). An hour later it is still sitting here…
/usr/bin/wget -q -O /tmp/rpt_extnodes-temp http://nodes3.allstarlink.org/cgi-bin/nodes.pl
I have also seen this on at least 2 other nodes in the last month or so as well… The only way we can get by it is to add the info into rpt.conf
Corey N3FE
*From:* app_rpt-users-bounces@ohnosec.org [ mailto:app_rpt-users-bounces@ohnosec.org<app_rpt-users-bounces@ohnosec.org> ] *On Behalf Of *Randy Ballard *Sent:* Monday, April 04, 2011 3:16 PM *To:* app_rpt-users@ohnosec.org *Subject:* [App_rpt-users] Registration issues
My nodes 27365 and 27751 both on same server is showing on the status page but not showing in the rpt_extnodes on other nodes im using standard port 4569.
we have been seeing this with several nodes in our group over past month or so of coarse if we define in the rpt file we can connect but would be nice if it was registering.
sometimes it may show up in a few hours or a day generally a reboot and its gone again
Thanks for any help in advance
73 Randy KB3HJC
-- This message was scanned and is believed to be clean. Click here to report this message as spam.
-- This message was scanned and is believed to be clean. Click here to report this message as spam. _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
_______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users