I've been chasing this issue for quite a long time now spanning several releases of ASUSWRT. I am currently on the latest - 386_2.4 and have diligently updated as time has gone by and have twice factory defaulted and configured from scratch this router. I am looking to avoid that hassle again.
Before anyone feels the need to point out the release notes and the blurb about "after you upgrade you may need to wait xx" - please don't. I have had this issue going back several releases; months to a year+ -- it is NOT that issue. I will concede, when I did upgrade to that particular release I did incur a long wait period for the GUI to be operational -- but ultimately it was operational.
The router is in its problem state now. I am accessing it via HTTP vs HTTPS for sake of troubleshooting / sniffing, etc. It is no different on HTTPS.
Now after I log in, I am seeing the following - the requests to the GUI stop... requests get held up in (pending) and the GUI is otherwise dead.
Take note of client_functions.js returning on 269 bytes. This file is 129k.
admin@RT-AC5300:/tmp# ls -al /www/client_function.js
-rw-rw-r-- 1 admin root 129409 Apr 30 17:32 /www/client_function.js
netstat shows I have requests queued
admin@RT-AC5300:/tmp# netstat -anp|grep -i ":80"
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 29930/httpd
tcp 4 0 192.168.1.1:80 0.0.0.0:* LISTEN 29930/httpd
tcp 365 0 192.168.1.1:80 192.168.1.40:1024 ESTABLISHED -
tcp 396 0 192.168.1.1:80 192.168.1.40:6265 ESTABLISHED -
tcp 389 0 192.168.1.1:80 192.168.1.40:11764 ESTABLISHED 29930/httpd
tcp 375 0 192.168.1.1:80 192.168.1.40:14459 ESTABLISHED -
tcp 0 0 192.168.1.1:80 192.168.1.40:14586 ESTABLISHED 29930/httpd
tcp 371 0 192.168.1.1:80 192.168.1.40:32513 ESTABLISHED -
Now if I manually restart the GUI (service restart_httpd) the login page will come back; but once I log in I'm back at the same problem point; requests are queuing.
admin@RT-AC5300:/tmp# netstat -anp|grep -i ":80"
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 31428/httpd
tcp 4 0 192.168.1.1:80 0.0.0.0:* LISTEN 31428/httpd
tcp 375 0 192.168.1.1:80 192.168.1.40:1024 ESTABLISHED -
tcp 396 0 192.168.1.1:80 192.168.1.40:24200 ESTABLISHED -
tcp 389 0 192.168.1.1:80 192.168.1.40:1028 ESTABLISHED -
tcp 0 0 192.168.1.1:80 192.168.1.40:1025 TIME_WAIT -
tcp 0 0 192.168.1.1:80 192.168.1.40:15996 TIME_WAIT -
tcp 365 0 192.168.1.1:80 192.168.1.40:11350 ESTABLISHED -
tcp 371 0 192.168.1.1:80 192.168.1.40:17038 ESTABLISHED 31428/httpd
tcp 0 0 192.168.1.1:80 192.168.1.40:2703 TIME_WAIT -
tcp 0 0 192.168.1.1:80 192.168.1.40:1026 ESTABLISHED 31428/httpd
tcp 0 0 192.168.1.1:80 192.168.1.40:33010 TIME_WAIT -
tcp 0 0 192.168.1.1:80 192.168.1.40:13728 TIME_WAIT -
tcp 0 0 192.168.1.1:80 192.168.1.40:14586 TIME_WAIT -
tcp 0 0 192.168.1.1:80 192.168.1.40:3699 TIME_WAIT -
tcp 0 0 192.168.1.1:80 192.168.1.40:4765 TIME_WAIT -
If I reboot the router things will work for several hours, days but then at some point will stop. There is nothing in the syslog to indicate a problem.
I turned on HTTPD_DEBUG flag to get /jffs/HTTPD_DEBUG.log and all it shows is it hangs on what is the last request:
Fri May 28 10:52:00 2021 [info] [do_html_post_and_get(2646)]ost_buf = , query = (null)
Fri May 28 10:52:00 2021 [info] [handle_request(1235)]:IP(192.168.1.40), file = client_function.js
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36
Fri May 28 10:52:00 2021 [info] [do_html_post_and_get(2646)]ost_buf = , query = (null)
Tail end of syslog for today's quick tests:
May 28 10:39:00 rc_service: service 27522:notify_rc restart_letsencrypt
May 28 10:39:00 custom_script: Running /jffs/scripts/service-event (args: restart letsencrypt)
May 28 10:47:20 HTTPD: waitting 10 minitues and restart
May 28 10:47:20 rc_service: httpds 10101:notify_rc restart_httpd
May 28 10:47:20 custom_script: Running /jffs/scripts/service-event (args: restart httpd)
May 28 10:47:20 RT-AC5300: start https:8443
May 28 10:47:20 RT-AC5300: start httpd:80
May 28 10:47:22 httpd: Succeed to init SSL certificate...8443
May 28 10:47:22 httpd: Succeed to init SSL certificate...80
May 28 10:49:35 dropbear[30749]: Child connection from 192.168.1.40:1041
May 28 10:49:35 dropbear[30749]: Password auth succeeded for 'admin' from 192.168.1.40:1041
May 28 10:51:43 rc_service: service 31378:notify_rc httpd_restart
May 28 10:51:43 custom_script: Running /jffs/scripts/service-event (args: httpd_restart)
May 28 10:51:48 rc_service: service 31415:notify_rc restart_httpd
May 28 10:51:48 custom_script: Running /jffs/scripts/service-event (args: restart httpd)
May 28 10:51:48 RT-AC5300: start https:8443
May 28 10:51:48 RT-AC5300: start httpd:80
May 28 10:51:51 httpd: Succeed to init SSL certificate...8443
May 28 10:51:51 httpd: Succeed to init SSL certificate...80
May 28 11:02:50 HTTPD: waitting 10 minitues and restart
May 28 11:02:50 rc_service: httpd 31428:notify_rc restart_httpd
May 28 11:02:50 custom_script: Running /jffs/scripts/service-event (args: restart httpd)
May 28 11:02:51 RT-AC5300: start https:8443
May 28 11:02:51 RT-AC5300: start httpd:80
May 28 11:02:52 httpd: Succeed to init SSL certificate...8443
May 28 11:02:52 httpd: Succeed to init SSL certificate...80
There is firewall on this machine I'm testing from right now; Windows Firewall is disabled. I also get the same experience from my phone browser as well as other machines I have / other distros.
Usually I let this stuff slide and 'live with it' but it's getting in the way now of me doing things I need to do on the router when I need to do it and not schedule reboots that interfere with the overall network in the house. I have kids... kids don't know these days what life was like prior to the internet.
I've already tried the following:
Cleared Browser Caches (tech support's #1 go-to / time waster)
Toggle /proc/sys/net/ipv4/tcp_sack 1 to 0... no change
Toggle /proc/sys/net/ipv4/tcp_tw_recycle | tcp_tw_reuse... no change
I read somewhere in these forums this could be caused by the ASUS Android App. I have since removed remote access and the app from my device... no change
So if I can please ask the community here for help, it would be appreciated. I'd like to solve this one. Thank you.
Before anyone feels the need to point out the release notes and the blurb about "after you upgrade you may need to wait xx" - please don't. I have had this issue going back several releases; months to a year+ -- it is NOT that issue. I will concede, when I did upgrade to that particular release I did incur a long wait period for the GUI to be operational -- but ultimately it was operational.
The router is in its problem state now. I am accessing it via HTTP vs HTTPS for sake of troubleshooting / sniffing, etc. It is no different on HTTPS.
Now after I log in, I am seeing the following - the requests to the GUI stop... requests get held up in (pending) and the GUI is otherwise dead.
Take note of client_functions.js returning on 269 bytes. This file is 129k.
admin@RT-AC5300:/tmp# ls -al /www/client_function.js
-rw-rw-r-- 1 admin root 129409 Apr 30 17:32 /www/client_function.js
netstat shows I have requests queued
admin@RT-AC5300:/tmp# netstat -anp|grep -i ":80"
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 29930/httpd
tcp 4 0 192.168.1.1:80 0.0.0.0:* LISTEN 29930/httpd
tcp 365 0 192.168.1.1:80 192.168.1.40:1024 ESTABLISHED -
tcp 396 0 192.168.1.1:80 192.168.1.40:6265 ESTABLISHED -
tcp 389 0 192.168.1.1:80 192.168.1.40:11764 ESTABLISHED 29930/httpd
tcp 375 0 192.168.1.1:80 192.168.1.40:14459 ESTABLISHED -
tcp 0 0 192.168.1.1:80 192.168.1.40:14586 ESTABLISHED 29930/httpd
tcp 371 0 192.168.1.1:80 192.168.1.40:32513 ESTABLISHED -
Now if I manually restart the GUI (service restart_httpd) the login page will come back; but once I log in I'm back at the same problem point; requests are queuing.
admin@RT-AC5300:/tmp# netstat -anp|grep -i ":80"
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 31428/httpd
tcp 4 0 192.168.1.1:80 0.0.0.0:* LISTEN 31428/httpd
tcp 375 0 192.168.1.1:80 192.168.1.40:1024 ESTABLISHED -
tcp 396 0 192.168.1.1:80 192.168.1.40:24200 ESTABLISHED -
tcp 389 0 192.168.1.1:80 192.168.1.40:1028 ESTABLISHED -
tcp 0 0 192.168.1.1:80 192.168.1.40:1025 TIME_WAIT -
tcp 0 0 192.168.1.1:80 192.168.1.40:15996 TIME_WAIT -
tcp 365 0 192.168.1.1:80 192.168.1.40:11350 ESTABLISHED -
tcp 371 0 192.168.1.1:80 192.168.1.40:17038 ESTABLISHED 31428/httpd
tcp 0 0 192.168.1.1:80 192.168.1.40:2703 TIME_WAIT -
tcp 0 0 192.168.1.1:80 192.168.1.40:1026 ESTABLISHED 31428/httpd
tcp 0 0 192.168.1.1:80 192.168.1.40:33010 TIME_WAIT -
tcp 0 0 192.168.1.1:80 192.168.1.40:13728 TIME_WAIT -
tcp 0 0 192.168.1.1:80 192.168.1.40:14586 TIME_WAIT -
tcp 0 0 192.168.1.1:80 192.168.1.40:3699 TIME_WAIT -
tcp 0 0 192.168.1.1:80 192.168.1.40:4765 TIME_WAIT -
If I reboot the router things will work for several hours, days but then at some point will stop. There is nothing in the syslog to indicate a problem.
I turned on HTTPD_DEBUG flag to get /jffs/HTTPD_DEBUG.log and all it shows is it hangs on what is the last request:
Fri May 28 10:52:00 2021 [info] [do_html_post_and_get(2646)]ost_buf = , query = (null)
Fri May 28 10:52:00 2021 [info] [handle_request(1235)]:IP(192.168.1.40), file = client_function.js
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36
Fri May 28 10:52:00 2021 [info] [do_html_post_and_get(2646)]ost_buf = , query = (null)
Tail end of syslog for today's quick tests:
May 28 10:39:00 rc_service: service 27522:notify_rc restart_letsencrypt
May 28 10:39:00 custom_script: Running /jffs/scripts/service-event (args: restart letsencrypt)
May 28 10:47:20 HTTPD: waitting 10 minitues and restart
May 28 10:47:20 rc_service: httpds 10101:notify_rc restart_httpd
May 28 10:47:20 custom_script: Running /jffs/scripts/service-event (args: restart httpd)
May 28 10:47:20 RT-AC5300: start https:8443
May 28 10:47:20 RT-AC5300: start httpd:80
May 28 10:47:22 httpd: Succeed to init SSL certificate...8443
May 28 10:47:22 httpd: Succeed to init SSL certificate...80
May 28 10:49:35 dropbear[30749]: Child connection from 192.168.1.40:1041
May 28 10:49:35 dropbear[30749]: Password auth succeeded for 'admin' from 192.168.1.40:1041
May 28 10:51:43 rc_service: service 31378:notify_rc httpd_restart
May 28 10:51:43 custom_script: Running /jffs/scripts/service-event (args: httpd_restart)
May 28 10:51:48 rc_service: service 31415:notify_rc restart_httpd
May 28 10:51:48 custom_script: Running /jffs/scripts/service-event (args: restart httpd)
May 28 10:51:48 RT-AC5300: start https:8443
May 28 10:51:48 RT-AC5300: start httpd:80
May 28 10:51:51 httpd: Succeed to init SSL certificate...8443
May 28 10:51:51 httpd: Succeed to init SSL certificate...80
May 28 11:02:50 HTTPD: waitting 10 minitues and restart
May 28 11:02:50 rc_service: httpd 31428:notify_rc restart_httpd
May 28 11:02:50 custom_script: Running /jffs/scripts/service-event (args: restart httpd)
May 28 11:02:51 RT-AC5300: start https:8443
May 28 11:02:51 RT-AC5300: start httpd:80
May 28 11:02:52 httpd: Succeed to init SSL certificate...8443
May 28 11:02:52 httpd: Succeed to init SSL certificate...80
There is firewall on this machine I'm testing from right now; Windows Firewall is disabled. I also get the same experience from my phone browser as well as other machines I have / other distros.
Usually I let this stuff slide and 'live with it' but it's getting in the way now of me doing things I need to do on the router when I need to do it and not schedule reboots that interfere with the overall network in the house. I have kids... kids don't know these days what life was like prior to the internet.
I've already tried the following:
Cleared Browser Caches (tech support's #1 go-to / time waster)
Toggle /proc/sys/net/ipv4/tcp_sack 1 to 0... no change
Toggle /proc/sys/net/ipv4/tcp_tw_recycle | tcp_tw_reuse... no change
I read somewhere in these forums this could be caused by the ASUS Android App. I have since removed remote access and the app from my device... no change
So if I can please ask the community here for help, it would be appreciated. I'd like to solve this one. Thank you.