Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
openwrt-bot opened this issue Jul 25, 2019 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

jordipalet:

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.

@openwrt-bot
Copy link
Author

kissg:

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant