OpenWrt/LEDE Project

  • Status Closed
  • Percent Complete
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Critical
  • Priority Very Low
  • Reported Version openwrt-18.06
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by jordipalet - 25.07.2019
Last edited by Yousong Zhou - 06.11.2019

FS#2405 - snmpd bad interaction with rc.local (gets emptied when snmpd is restarted)

Easy to reproduce:
1) Have something in rc.local
2) Restart snmpd
3) Look again to rc.local is empty


I’ve tested this with several models:
ZBT-WG3526 (16M)
TP-Link Archer C2600
GL.iNet GL-AR300M
TP-LINK Archer C7 v4
SamKnows Whitebox 8

It looks that from time to time, rc.local gets “emptied”.

I’m using cacti to monitor several routers, and from time to time, if an interface is reset (link down, etc.), it looks like cacti gets confused, so I need to restart snmpd.

It looks that that creates the problem, because after that, rc.local is empty.

I’ve been trying to find the problem since I flashed all the routers with 18.06.4 (stable), because initially this was happening when rebooting, so I was not able to find why ... now, I’m almost sure that it is the snmpd restart which creates the problem.

Closed by  Yousong Zhou
06.11.2019 12:34
Reason for closing:  Fixed
Additional comments about closing:  

See uci/issues/2760

Gabor Kiss commented on 26.08.2019 20:21

Actually this seems to be a LuCI bug.
Clicking on any Enabled/Disabled/Start/Restart/Stop button on System>Startup page truncates rc.local.
Command line actions do not affect the file.

Tested on:
TP-Link TL-WR1043N/ND v2
OpenWrt 18.06.4 r7808-ef686b7292 / LuCI openwrt-18.06 branch (git-19.170.32094-4d6d8bc)


Available keyboard shortcuts


Task Details

Task Editing