RUT956 router stuck due to a custom script that runs out all the available free space

Hi,

I have 2 routers RUT956 running a custom script that periodically saves the GPS coordinates in a permanent file. The script is launched automatically at boot. Unfortunately, I set a wrong maximum size of the file and, consequently, I think the devices have run out of space. The last time I saw the storage usage of the two devices it was dangerously high. However, from that moment on the two routers have not become available through the RMS platform.

The first router, even if is not able to correctly connect to the RMS platform, continues behaving as a router and forwarding to our server data packets generated by other sensors that are directly connected with him. However, if I look at the " Latest connection attempts" of the device in the RMS platform I see that the device rarely tries to connect to the RMS. Due to the correct behaviour with sensor data, I think the problem is not related to a poor/absent internet connection. In fact, I don’t understand why the router is able to send data packets correctly when needed but is not able to retry periodically to connect to the RMS.

The second one, instead, seems to be completely dead since the moment I saw that the size of the file was reaching a very high value.

The problem is that at the moment I cannot access to the admin web page of the two routers from the local area network because they are installed in a location far from me. So, I would prefer doing that only as the last attempt to fix the problem.

Are there some additional ways to connect to the CLI of the two routers? Are there some ways to upload asynchronously a backup image to “reset” the two routers? If this would be possible, would the backup image reset the whole storage to a previous situation (consequently, deleting this heavy file) or it would affect only the partitions related to the OS?

Routers firmware version: RUT9M_R_00.07.09.1

Best regards,
Federico

Hello,

It is possible to connect to a router’s CLI and WebUI remotely without using RMS, as long as your device has a public IP. More information can be found here: Remote Device Access.

Additionally, you can try sending an SMS to the router’s mobile number with the following syntax:
<admin router password> rms_connect
This will reconnect the device to the server. You can find more information about SMS Utilities here: SMS Utilities.

Please let me know how it goes!

Best regards,

Hi Marija,
Thank you for the reply. I was not able to force the devices to connect to the rms by means of the alternatives suggested by you. Probably, the devices are in critical states. Consequently, we decided to replace them with new ones.

Now, my question is: is it possible that writing the gps coordinates on the internal flash memory every second is too excessive for the device? I am wondering about this because in these last few days we lost other devices. However, those devices were running an improved version of the software that fixes the bug related to the excessive memory usage. So, now I think the problem could be related to an excessive number of write operations to the little flash memory inside the router.
Would it be better to connect a usb device with the router and write the gps coordinates inside this peripherical? In this way we would not do any harm to the devices’s internal flash.

Best regards,
Federico

Hello,

Thank you for informing me that you have replaced the devices.

Regarding your other questions, I kindly ask you to create a separate topic on the forum. Thank you for your understanding.

Best regards,

This topic was automatically closed after 15 days. New replies are no longer allowed.