What's new

admin web server crashed - 3.0.0.4.260.21 / RT-AC66U

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

bheiser1

Occasional Visitor
I've had my RT-AC66U up for just short of 5 days since last reboot. Today I was poking around with the web admin interface to check things out, and I lost connectivity from the browser.

The device is still passing traffic as I'm browsing the web thru it now. I'm also able to ssh into it.

If I "netstat -a |grep 80" (or 443) I see nothing listening on either port.

I poked around in /etc & don't see where the startup scripts reside where I might find the command to restart the web server.

I was able to get a web server running by just running /usr/bin/httpd, but clearly there are arguments required, as I can now connect but don't see any useful content.

Is there a startup script I can run? Or I can just reboot but figured it might be helpful to gather any necessary debugging info first...

This is with 3.0.0.4.260.21.
 
WIth 260.21 you can restart it with this command:

service restart_httpd

httpd expects its current work directory to be the one containing the webui pages, that's why just running it from anywhere won't work. Using the service applet will properly take care of running it in background as well.

I would check your available memory however - it's possible the httpd service was closed as the router was starting to run out of memory. Try:


I know that one of the AiCloud services can eat a lot of RAM after a few days. I haven't been able to see if that was fixed with 260 since I have been rebooting my router many times per day lately while working on something :)
 
Thanks for the tips. I'm not using AICloud at this point.

My free memory looks good:

admin@(none):/tmp/var/log# free -m
total used free shared buffers
Mem: 239768 62864 176904 0 8524
Swap: 0 0 0
Total: 239768 62864 176904

admin@(none):/tmp/var/log# uptime
22:10:52 up 5 days, 1:44, load average: 0.00, 0.00, 0.00

A "service restart_httpd" did the trick. Thanks!

Is there a list of the "service" commands somewhere?
 
Last edited:
Is there a list of the "service" commands somewhere?

I haven't written one, no. You would have to dig through the rc/services.c sources to get an actual list. Only a few of them are actually useful for end-user, I mostly enabled the service applet because it made development/troubleshooting easier.
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top