P25Gateway Log Question


Mike AE4ML
 

I decided to look at the log files.

Everything appears to be working. DNS is resolving I don't understand the "Cannot find address" lines I did a ping by name and they resolve. 
what are the "Error returned from sendto, err: 101" ?

Mike

E: 2018-05-02 13:39:42.080 Error returned from sendto, err: 101
I: 2018-05-02 13:39:43.911 Opening P25 network connection
I: 2018-05-02 13:39:43.912 Opening P25 network connection
E: 2018-05-02 13:39:43.915 Cannot find address for host dvswitch.org
E: 2018-05-02 13:39:43.916 Cannot find address for host dvswitch.org
E: 2018-05-02 13:39:43.917 Cannot find address for host ea5gvk.duckdns.org
E: 2018-05-02 13:39:43.918 Cannot find address for host pacificp25.repeaters.info
E: 2018-05-02 13:39:43.918 Cannot find address for host pacifictac1.repeaters.info
E: 2018-05-02 13:39:43.919 Cannot find address for host p25.alabamalink.info
E: 2018-05-02 13:39:43.920 Cannot find address for host w1msg.trianglenc.net
I: 2018-05-02 13:39:43.920 Loaded 6 P25 reflectors
I: 2018-05-02 13:39:43.920 Loaded P25 parrot (TG10)
I: 2018-05-02 13:39:44.196 Loaded 89798 Ids to the callsign lookup table
M: 2018-05-02 13:39:44.196 Starting P25Gateway-20180409
I: 2018-05-02 13:39:44.196 Started the DMR Id lookup reload thread
E: 2018-05-02 13:39:44.197 Error returned from sendto, err: 101
E: 2018-05-02 13:39:44.197 Error returned from sendto, err: 101
E: 2018-05-02 13:39:44.197 Error returned from sendto, err: 101
M: 2018-05-02 13:39:44.197 Linked at startup to reflector 10282
E: 2018-05-02 13:39:47.082 Error returned from sendto, err: 101
E: 2018-05-02 13:39:49.199 Error returned from sendto, err: 101
E: 2018-05-02 13:39:52.083 Error returned from sendto, err: 101
I: 2018-05-02 13:40:02.411 Opening P25 network connection
I: 2018-05-02 13:40:02.412 Opening P25 network connection
I: 2018-05-02 13:40:08.226 Loaded 13 P25 reflectors
I: 2018-05-02 13:40:08.226 Loaded P25 parrot (TG10)
I: 2018-05-02 13:40:08.506 Loaded 89798 Ids to the callsign lookup table
M: 2018-05-02 13:40:08.506 Starting P25Gateway-20180409
I: 2018-05-02 13:40:08.506 Started the DMR Id lookup reload thread
M: 2018-05-02 13:40:08.506 Linked at startup to reflector 10282


Mike Zingman - N4IRR
 

The ini file parser in the MMDVM code is not very robust and I would bet that you have an unprintable character or space in the ini file.  Yes, I know....


Steve N4IRS
 

Mike,
How are you starting up the program? manual? rc.local? systemd?
I think I know what is going on depending on how you run it.

On 5/2/2018 10:22 AM, Mike AE4ML wrote:
I decided to look at the log files.

Everything appears to be working. DNS is resolving I don't understand the "Cannot find address" lines I did a ping by name and they resolve. 
what are the "Error returned from sendto, err: 101" ?

Mike

E: 2018-05-02 13:39:42.080 Error returned from sendto, err: 101
I: 2018-05-02 13:39:43.911 Opening P25 network connection
I: 2018-05-02 13:39:43.912 Opening P25 network connection
E: 2018-05-02 13:39:43.915 Cannot find address for host dvswitch.org
E: 2018-05-02 13:39:43.916 Cannot find address for host dvswitch.org
E: 2018-05-02 13:39:43.917 Cannot find address for host ea5gvk.duckdns.org
E: 2018-05-02 13:39:43.918 Cannot find address for host pacificp25.repeaters.info
E: 2018-05-02 13:39:43.918 Cannot find address for host pacifictac1.repeaters.info
E: 2018-05-02 13:39:43.919 Cannot find address for host p25.alabamalink.info
E: 2018-05-02 13:39:43.920 Cannot find address for host w1msg.trianglenc.net
I: 2018-05-02 13:39:43.920 Loaded 6 P25 reflectors
I: 2018-05-02 13:39:43.920 Loaded P25 parrot (TG10)
I: 2018-05-02 13:39:44.196 Loaded 89798 Ids to the callsign lookup table
M: 2018-05-02 13:39:44.196 Starting P25Gateway-20180409
I: 2018-05-02 13:39:44.196 Started the DMR Id lookup reload thread
E: 2018-05-02 13:39:44.197 Error returned from sendto, err: 101
E: 2018-05-02 13:39:44.197 Error returned from sendto, err: 101
E: 2018-05-02 13:39:44.197 Error returned from sendto, err: 101
M: 2018-05-02 13:39:44.197 Linked at startup to reflector 10282
E: 2018-05-02 13:39:47.082 Error returned from sendto, err: 101
E: 2018-05-02 13:39:49.199 Error returned from sendto, err: 101
E: 2018-05-02 13:39:52.083 Error returned from sendto, err: 101
I: 2018-05-02 13:40:02.411 Opening P25 network connection
I: 2018-05-02 13:40:02.412 Opening P25 network connection
I: 2018-05-02 13:40:08.226 Loaded 13 P25 reflectors
I: 2018-05-02 13:40:08.226 Loaded P25 parrot (TG10)
I: 2018-05-02 13:40:08.506 Loaded 89798 Ids to the callsign lookup table
M: 2018-05-02 13:40:08.506 Starting P25Gateway-20180409
I: 2018-05-02 13:40:08.506 Started the DMR Id lookup reload thread
M: 2018-05-02 13:40:08.506 Linked at startup to reflector 10282


Mike AE4ML
 

good morning,

The programs are run from a script in the /etc/init.d directory.

Here is the script that runs ::

echo" THIS SCRIPT MUST BE RUN AS ROOT "
echo " Launching Quantar Bridge"
cd /opt/Quantar_Bridge
./Quantar_Bridge &
echo "Step 1 of  5 Completed"
sleep 3
echo " Launching MMDVM Bridge"
cd ../MMDVM_Bridge
./MMDVM_Bridge P25.ini &
echo " Step 2 of 5 completed"
sleep 3
echo "Launching P25 Gateway"
cd ../P25Gateway
./P25Gateway P25Gateway.ini &
echo " Step 3 of 5 Completed"
sleep 3
echo "Launching Parrot Application"
cd ../parrot
./P25Parrot 42011 &
echo "Step 4 of 5 Completed"
sleep 3
echo "Launching Reflector"
cd ../P25Reflector
./P25Reflector /etc/P25Reflector.ini &
echo "Step 5 of 5 completed"
sleep 3
echo "Script completed"


Steve N4IRS
 

After step 2 of 5 add a ping google.com or 8.8.8.8 I'm betting that your internet on the host is not yet up. you need a timed wait or a wait on the internet available.
You might be able to get away with moving p25gateway to the end of the script.

Steve

On 5/4/2018 10:47 AM, Mike AE4ML wrote:
good morning,

The programs are run from a script in the /etc/init.d directory.

Here is the script that runs ::

echo" THIS SCRIPT MUST BE RUN AS ROOT "
echo " Launching Quantar Bridge"
cd /opt/Quantar_Bridge
./Quantar_Bridge &
echo "Step 1 of  5 Completed"
sleep 3
echo " Launching MMDVM Bridge"
cd ../MMDVM_Bridge
./MMDVM_Bridge P25.ini &
echo " Step 2 of 5 completed"
sleep 3
echo "Launching P25 Gateway"
cd ../P25Gateway
./P25Gateway P25Gateway.ini &
echo " Step 3 of 5 Completed"
sleep 3
echo "Launching Parrot Application"
cd ../parrot
./P25Parrot 42011 &
echo "Step 4 of 5 Completed"
sleep 3
echo "Launching Reflector"
cd ../P25Reflector
./P25Reflector /etc/P25Reflector.ini &
echo "Step 5 of 5 completed"
sleep 3
echo "Script completed"