Viktor Jaep
Part of the Furniture
I have a couple of things that are irking me, and hoping someone might have a decent explanation for them.
1.) CRU Weirdness RESOLVED -- I had created a CRU job a while back to run a script at the same time each night. About 4 weeks ago, I no longer had need for this script, and deleted the CRU job (cru -d <unique id>). I checked the cru -l (list), and sure enough it's gone. But then, a week or so goes past, and all of a sudden this cru job is back in my list, running this nightly job again! I did not add it back, and came back on its own. Considering it a fluke, I deleted it again, and double checked, it's no longer listed. Again, randomly 2 nights ago, it was back in my cru jobs list. What's going on? Why won't it stay gone?
2.) SSH Weirdness RESOLVED -- I have always run long-running scripts, like @Martineau's VPN Failover script, in a PuTTY window running on a PC directly attached to the router. Never seemed to have a problem doing it this way. A few years later, on a different router now, I started running my VPNMON-R2 script in this same fashion, and started randomly running into what seem to be hangs, or disconnections. The window would not completely redraw on a refresh of the screen every 60 seconds. I figured, OK, maybe I'm losing connection somehow, and was delighted to find out from @eibgrad that you could also use the "Screen" function, which runs using a daemon directly on the router itself... no more need for the external PuTTY! I thought for sure this would solve my issue. The strange thing is, I'm running into the same exact issue. The screen just hangs on a redraw... and will find that its just sitting there for hours after reconnecting to the screen window again. I've tried to add some debugging to the script thinking perhaps it's having trouble pinging, or running an API call, but nothing is coming up as a red flag. It will just randomly happen, sometimes after a few hours, other times, after a few days. What could cause screen to just hang the script? And is there a better way to get to the root of this problem?
Thanks in advance for your expert advice...
EDIT: Might be wondering why SSH Weirdness was resolved? Well, it was all because this was dealing with that strange AC86U script locking bug that has been discussed ad naseum. The only fix that worked for me sofar was using the "timeout" command whenever I had to do an "NVRAM GET" command.
Thanks in advance for your expert advice...
EDIT: Might be wondering why SSH Weirdness was resolved? Well, it was all because this was dealing with that strange AC86U script locking bug that has been discussed ad naseum. The only fix that worked for me sofar was using the "timeout" command whenever I had to do an "NVRAM GET" command.
Last edited: