[arm-allstar] /var/log/messages WARNINGS

ron at morell.us ron at morell.us
Sun Mar 6 23:28:06 EST 2016


Doug,
Yes it is the version from hamvoip.org, RPi2_V1.0_Allstar.img. I
downloaded the file from
"https://config.allstarlink.org/config/start.sh" just to see what the
warning was referring to. I posted the contents of that file to help to
sort out why AllStar is trying to get it. So if pbx_config.c is not
altered by you then the missing parenthesis is a mystery. I did not see
in pbx_config.c where it would ask for the file to be downloaded, so
perhaps one of the libraries pbx_config.c lists in the headers makes the
download and write request, or perhaps pbx_config.c does the error
checking that discovers the problem code and logs it to messages. 

I take it you looked in your /var/log/messages and don't have this
particular warning?
Ron Morell
KA7U



-------- Original Message --------
Subject: Re: [arm-allstar] /var/log/messages WARNINGS
From: Doug Crompton via arm-allstar <arm-allstar at hamvoip.org>
Date: Sun, March 06, 2016 8:20 pm
To: ARM Allstar <arm-allstar at hamvoip.org>
Cc: Doug Crompton <doug at crompton.com>

  Are you talking about the hamvoip.org distribution? We do NO do any
portal configuration. pbx_config.c is not altered by us and does not
appear to contain the code you mentioned? 

73 Doug
WA3DSP
http://www.crompton.com/hamradio


> To: arm-allstar at hamvoip.org
> Date: Sun, 6 Mar 2016 17:18:03 -0700
> Subject: [arm-allstar] /var/log/messages WARNINGS
> From: arm-allstar at hamvoip.org
> CC: ron at morell.us
> 
> Looking at the messages log today and noticed several things but two
> caught my eye as interesting.
> 
> [Mar 3 20:04:37] WARNING[240] pbx_config.c: No closing parenthesis
> found? 'System(rm -rf /tmp/allstar-config\; mkdir -p
> /tmp/allstar-config\;curl -sk -m 20 --retry 1
> https://config.allstarlink.org/config/start.sh >
> /tmp/allstar-config/start.sh'
> 
> [Mar 3 20:04:37] WARNING[240] pbx_config.c: No closing parenthesis
> found? 'System(rm -rf /tmp/allstar-config\; mkdir -p
> /tmp/allstar-config\;curl -sk -m 20 --retry 1
> https://config.allstarlink.org/config/start.sh >
> /tmp/allstar-config/start.'
> 
> Easy enough to see that there isn't a closing parenthesis, but not as
> easy to find out why. I downloaded the file start.sh
> 
> #! /bin/bash
> 
> LOGFILE=/var/log/allstar-config.log
> TMPDIR=/tmp/allstar-config
> 
> mkdir -p $TMPDIR > /dev/null 2>&1
> rm -f $TMPDIR/auto-config.sh > /dev/null 2>&1
> 
> curl -sk -m 15 --retry 1
> https://config.allstarlink.org/config/auto-config.sh >
> $TMPDIR/auto-config.sh
> if [ $? -ne 0 ]
> then
> touch $LOGFILE
> echo `date`" config: unable to download portal config script" >>
> $LOGFILE
> rm -rf $TMPDIR > /dev/null 2>&1
> exit
> fi
> 
> bash $TMPDIR/auto-config.sh $1
> if [ $? -ne 0 ]
> then
> touch $LOGFILE
> echo `date`" config: unable to download and implement portal config" >>
> $LOGFILE
> rm -rf $TMPDIR > /dev/null 2>&1
> exit
> fi
> 
> touch $LOGFILE
> echo `date`" config: portal config downloaded and implemented and
> Asterisk restarted" >> $LOGFILE
> rm -rf $TMPDIR > /dev/null 2>&1
> exit
> 
> So what??? I just would like to know what this is for and if it should
> be a process in use. It looks like it could be used as an agent for
> change, better or worse.
> Ron Morell
> KA7U
> 
> 
> _______________________________________________
> 
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> 
> Visit the BBB and RPi2 web page - http://hamvoip.org
> 


_______________________________________________

arm-allstar mailing list
arm-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2 web page - http://hamvoip.org


More information about the arm-allstar mailing list