Sometimes, the device connection status will be flapping UP/DOWN. Due to which the device will keep synchronising. You will see an error below in server.log under /var/log/jboss/servers/server1
Error : Error while reading config from device: DEVICE_NAME
Detail : Failed while executing the following RPC:<get-configuration inherit="inherit" groups="groups" database="committed"><configuration></configuration></get-configuration>
To identify the issue, please watch the device connection using the command below:
watch netstat -anep | grep <DeviceIP>
If the netstat connection is flapping, there should be a connection issue between the Junos Space and the Device. The customer/client needs to work with the Network Team and sort out this issue