Ranger802004
Very Senior Member
Did it remove from wan-event?But it didn't remove the cron entry - I did it by hand.
Did it remove from wan-event?But it didn't remove the cron entry - I did it by hand.
Sorry... this was just a general question regarding the basic function of stock dual-wan... I had not installed your dual-wan script yet because I'm just trying to get the basics working first.Send me the debug logging so I can take a look at what is going on, this is the first test I have had with USB devices after my iteration of fixes in the current beta
I'm just trying to get the basics working first.
service "restart_wan_if 1"
Yes this command is incorporated into the script, you're not going to get proper WAN Failover with the stock settings especially using a USB Device. I definitely need testing and feedback regarding this configuration though.@Viktor Jaep Try the following command and see if it switches your Secondary to Hot-Standby? @Ranger802004 got me to do this whilst he was doing some info gathering a few days ago and it did the trick of at least getting me an IP on my 4G dongle.
Code:service "restart_wan_if 1"
/usr/sbin/curl -s "https://raw.githubusercontent.com/Ranger802004/asusmerlin/main/wan-failover_v1.5.6-beta5.sh" -o "/jffs/scripts/wan-failover.sh" && chmod 755 /jffs/scripts/wan-failover.sh && sh /jffs/scripts/wan-failover.sh restart
/jffs/scripts/wan-failover.sh update
Jul 24 14:24:42 wan-failover.sh: Install - /jffs/configs/wan-failover.conf already exists
Jul 24 14:25:15 wan-failover.sh: Restart - ***wan-failover.sh is not running*** No Process ID Detected
Jul 24 14:26:01 wan-failover.sh: Restart - Successfully Restarted wan-failover.sh Process ID(s): 26195 26196
Jul 24 14:26:07 wan-failover.sh: WAN Status - wan0 has 100% packet loss ***Verify 8.8.8.8 is a valid server for ICMP Echo Requests***
Jul 24 14:26:11 wan-failover.sh: WAN0 Failback Monitor - Monitoring wan1 via 8.8.4.4 for Failure
Jul 24 14:26:11 wan-failover.sh: WAN0 Failback Monitor - Monitoring wan0 via 8.8.8.8 for Restoration
Yea it's probably not adding the IP Rule back to validate it's not back online, I can add a check for this. Can you send over some debug logs first?So the last two betas I have done some quick tests (hopefully Monday I can do some more thorough tests and document), but I noticed when my ISP#01 I turn off its modem, it fails over to ISP#02, but when I turn ISP#01 back on (which is my preferred ISP to use as it is 1GB Symmetrical), it does not failback.
It's almost like ISP#02 has to Fail, in order for the failback to happen.
System log shows:
Code:Jul 24 14:24:42 wan-failover.sh: Install - /jffs/configs/wan-failover.conf already exists Jul 24 14:25:15 wan-failover.sh: Restart - ***wan-failover.sh is not running*** No Process ID Detected Jul 24 14:26:01 wan-failover.sh: Restart - Successfully Restarted wan-failover.sh Process ID(s): 26195 26196 Jul 24 14:26:07 wan-failover.sh: WAN Status - wan0 has 100% packet loss ***Verify 8.8.8.8 is a valid server for ICMP Echo Requests*** Jul 24 14:26:11 wan-failover.sh: WAN0 Failback Monitor - Monitoring wan1 via 8.8.4.4 for Failure Jul 24 14:26:11 wan-failover.sh: WAN0 Failback Monitor - Monitoring wan0 via 8.8.8.8 for Restoration
But wan0, which is the Primary WAN, is in Hot-Standby, and has an WAN IP address, DNS Servers, and Gateway populated already, so that if ISP#02 is turned off, it comes on right away.
Has something changed in the script causing this?
I was going to go back to V1.5.5 to test but thought I would ask @Ranger802004 first.
Yea it's probably not adding the IP Rule back to validate it's not back online, I can add a check for this. Can you send over some debug logs first?
In the meantime you can make it manually switchback using this argument.
/jffs/scripts/wan-failover.sh switchwan
admin@XXAX88U:/tmp/home/root# /jffs/scripts/wan-failover.sh switchwan
wan-failover.sh - Switch WAN Mode
***Switch WAN Mode is only available in Failover Mode***
admin@XXAX88U:/tmp/home/root# nvram get wans_mode
fo
Are you in Load Balancing Mode? I really need to get debug logging from you to diagnose this if not.Here is the error message I get for switchwan:
Code:admin@XXAX88U:/tmp/home/root# /jffs/scripts/wan-failover.sh switchwan wan-failover.sh - Switch WAN Mode ***Switch WAN Mode is only available in Failover Mode***
Are you in Load Balancing Mode? I really need to get debug logging from you to diagnose this if not.
Ok I will need debug logging, please.
Ok I will need debug logging, please.
EDIT: Once you collect the debug logs go ahead and fall back to 1.5.5 until I release a new beta to test. I found some issues with 1.5.6-beta4 that I'm ironing out now for next release, thank you.
/jffs/scripts/YazFi check
Are you getting this log in your logs? Should just require Notice level logs.I have gone back to V1.5.5 and Failover and Failback works like it did before (YazFi was unsuccessful both Failover and Failback, but nothing a
wouldn't cure.Code:/jffs/scripts/YazFi check
Network getting busy again, so testing will have to be another day.
"Service Restart - Triggering YazFi to update"
I never see that line in any of my logs, either V1.5.5 or V1.5.6 Beta4Are you getting this log in your logs? Should just require Notice level logs.
Code:"Service Restart - Triggering YazFi to update"
What do you get when you run these commands?I never see that line in any of my logs, either V1.5.5 or V1.5.6 Beta4
cru l | grep -w "YazFi"
if [ -f "/jffs/scripts/YazFi" ];then echo "true";fi
I never see that line in any of my logs, either V1.5.5 or V1.5.6 Beta4
V1.5.5 currently:What do you get when you run these commands?
Code:cru l | grep -w "YazFi" if [ -f "/jffs/scripts/YazFi" ];then echo "true";fi
ASUSWRT-Merlin RT-AX88U 386.7_2 Sun Jul 24 21:39:14 UTC 2022
admin@XXAX88U:/tmp/home/root# cru l | grep -w "YazFi"
*/10 * * * * /jffs/scripts/YazFi check #YazFi#
admin@XXAX88U:/tmp/home/root# if [ -f "/jffs/scripts/YazFi" ];then echo "true";f
i
true
You're meeting the prereqs for it to trigger YazFi command so not sure why you are not getting the logs whenever your failover happens.V1.5.5 currently:
Code:ASUSWRT-Merlin RT-AX88U 386.7_2 Sun Jul 24 21:39:14 UTC 2022 admin@XXAX88U:/tmp/home/root# cru l | grep -w "YazFi" */10 * * * * /jffs/scripts/YazFi check #YazFi# admin@XXAX88U:/tmp/home/root# if [ -f "/jffs/scripts/YazFi" ];then echo "true";f i true
I'll wait for your next beta to give the newest beta version another try for failover and failback, and the network should be a little quieter to do some tests. Debug Logs will take a long time to get from me as it would be a lot of redacting for privacy purposes (Notice Logs are easier to redact).Just an update guys, I'm working on the next beta release and have been busy but I expect to have the next beta out tonight or tomorrow. Just wanted to keep everyone in the loop. If you are having an issue please get me the debug logs ASAP so I can diagnose the problem as best as I can to resolve in the next release before it goes live, thank you.
No worriesI'll wait for your next beta to give the newest beta version another try for failover and failback, and the network should be a little quieter to do some tests. Debug Logs will take a long time to get from me as it would be a lot of redacting for privacy purposes (Notice Logs are easier to redact).
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!