Adopisoft fixed for RTNETLINK error and almost Full ZRAM1 storage allocation problem

 Login to your vendo machine via ssh and add this to cronjob sudo crontab -e   then PRESS ENTER and type your password on password prompt Sc...

Monday, March 2, 2026

Adopisoft fixed for RTNETLINK error and almost Full ZRAM1 storage allocation problem

 Login to your vendo machine via ssh and add this to cronjob

sudo crontab -e  then PRESS ENTER and type your password on password prompt

Scroll down to the bottom using <arrow down>
Copy and paste this at the bottom of the line:

# When 4:02 AM hits, any connected customers will be disconnected for about 10 to 15 seconds while
# this entire sequence runs. After that, the network will broadcast cleanly, the portal will be ready,
# and your system will be safe from the RTNETLINK bug for another day.
2 4 * * * /sbin/ip link set eth0 down && /bin/sleep 5 && /sbin/ip link set eth0 up && /bin/sleep 5 && /bin/systemctl restart systemd-networkd
#This command will clear logs in zram1 storage every 6 hours
0 0,6 * * * truncate -s 0 /var/log/syslog; truncate -s 0 /var/log/dmesg; truncate -s 0 /var/log/pppoe-server-log; truncate -s 0 /var/log/auth.log; truncate -s 0 /var/log/kern.log; truncate -s 0 /var/log/lastlog; truncate -s 0 /var/log/lastlog; truncate -s 0 /var/log/wtmp; truncate -s 0 /var/log/apt/eipp.log.xz; truncate -s 0 /var/log/apt/dataplicity.log; truncate -s 0 /var/log/apt/alternative.log; truncate -s 0 /var/log/nginx/access.log; truncate -s 0 /var/log/armbian-hardware-monitor.log; truncate -s 0 /var/log/supervisor/supervisor.log; truncate -s 0 /var/log/postgresql-16-main.log; truncate -s 0 /var/log/dataplicity.log; truncate -s 0 /var/log/supervisor/supervisord.log; truncate -s 0 /var/log/alternatives.log

To save your changes press CTRL+O combination then PRESS ENTER
To exit press CTRL+X combination

No comments:

Post a Comment