Hello,
I have complained about custom scripts blocking rms since version 7.10 and still it is happening. The issue could be resolved using /etc/init.d/rms_mqtt restart, but this time I didn’t use it because on 7.15.1 the issue seemed to be resolved. Now on firmware 7.15.2 the issue is back and I am unable to access my Rut906 that is on the other side of my country.
Will this issue ever be resolved, because it doesn’t look like Teltonika is doing anything to address the issue.
Could you kindly elaborate more on your custom script? What does it do exactly, and if you already know the potential cause, what’s the reasoning behind RMS being blocked by it?
You said you have mentioned this previously, do you perhaps have an old thread number I could check to gather more information?
while true; do
if opkg list-installed | grep -q "^$package_name "; then
echo "Package '$package_name' is already installed."
return 0
fi
echo "Checking internet connectivity..."
while ! check_internet; do
retry_count=$((retry_count + 1))
if [ "$retry_count" -ge "$max_retries" ]; then
echo "No internet connectivity after $max_retries attempts. Exiting for now. Retry later."
exit 1
fi
echo "No internet connection. Retrying in $retry_interval seconds... ($retry_count/$max_retries)"
sleep "$retry_interval"
done
opkg -e /etc/opkg/openwrt/distfeeds.conf update
echo "Attempting to install package '$package_name'..."
if opkg -e /etc/opkg/openwrt/distfeeds.conf install "$package_name"; then
echo "Package '$package_name' installed successfully."
return 0
else
echo "Failed to install package '$package_name'. Retrying in $retry_interval seconds..."
sleep "$retry_interval"
fi
done
}
required_packages=“curl coreutils-timeout mosquitto-client-ssl jq”
for package in $required_packages; do
ensure_package_installed “$package”
done
for i in $(seq 1 $MAX_RETRIES); do
echo “Attempting to connect to MQTT broker (Attempt $i)…”
if [ $? -ne 0 ]; then
echo “Failed to connect to MQTT broker after $MAX_RETRIES attempts.”
exit 1
fi
This script works the only difference is on the router that is now blocked from rms I didn’t have the /etc/init.d/rms_mqtt restart. I left this code out because on firmware 7.15.1 it didn’t need it, so I thought the issue was resolved.
I have tried sending sms’s to my router to reconnect to rms, and I have been getting responses saying the command was executed. However the router never tried reconnecting to rms. Also when I send rms_status over sms I get and error saying the command could not be executed.
I am open to any suggestions to fix this issue, because the router is on the other side of my country, and I desperately need to access it.
The R&D has requested some more information that is sensitive, therefore I’ve sent you a form to fill out so we can continue our conversation in private, to avoid accidentally leaking that information.. In the Ticket ID field, simply enter the thread’s number, which is 14457.