ISSUE: 

Data is not uploaded on MPPCB server with linux DAS.


Reason:

Below mention error is showing MPPCBGlensDebugger log file.

LANInternetConnection::sendRequest2() - curl error while sending file - Could not resolve host: esc.mp.gov.in. Error code 6 


Solution:

It is a network related error to resolve this error follow below mention steps.


Step 1:

First of all check DATCon and Laptop in same network and having internet connection (ping 8.8.8.8).

When you getting internet to the DATCon after that open putty with USB serial port.

When putty is open after that put command (vi /etc/network/interfaces) and check below mentioned points are correct.


For example:

address 10.6.10.105

netmask 255.255.255.0

network 10.6.10.2

gateway 10.6.10.254


Step 2:

Open Winscp through IP address and check script  is present in below mention paths.


*Path:

/etc/init.d/RTDAS

/etc/rcS.d/S57RTDAS.sh


*For example script:

#!/bin/bash

echo "RTDAS run"

cd /home/root/DATCon

nohup ./RTDASManager.bin > /dev/null&

echo nameserver 10.6.10.254 > /etc/resolv.conf


Note :10.6.10.254 Its default gateway of DATCon, It's need to be present in the script.

When you not getting default gateway try with  "echo nameserver 8.8.8.8 > /etc/resolv.conf"



Step 3:

We need to put default gateway in below mentioned path.


Path: /etc/resolv.conf


For example: nameserver 10.6.10.254




After above mentioned steps are done then restart the DATCon & check data is start uploading to MPPCB server. Above error is not showing in log file.