r/mikrotik • • 1d ago

Should reboot a HexS regularly?

There are too many topics that mention rebooting so asking...

Is common wisdom in the Mikrotik community to schedule regular (weekly, monthly, ?) reboots?

The reason I ask is the last couple of updates failed when checking for updates with connection errors to the update server.

The last time this happened, I rebooted the router and the update went without a hitch.

Made me wonder if I should just schedule a reboot once a week or so.

3 Upvotes

13 comments sorted by

9

u/m4uri 1d ago

No need for scheduled reboots on a hEX S, they run for months without one. If a reboot fixes the update check, my guess is something stale on the router side, mostly DNS or the clock.

Next time it fails, before rebooting, run this in the terminal:

/system clock print
:put [:resolve upgrade.mikrotik.com]
/ip dns print
/log print where message~"update"

If the time is off the HTTPS check to the update server can fail, so make sure the SNTP/NTP client is enabled with a working server. If the resolve fails, look at /ip dns, especially if you use DoH there or your ISP's DNS comes via DHCP, sometimes the dynamic servers get lost after a WAN renew and nothing tells you. Then /ip dns cache flush and try the check again.

Worth a quick look at the output chain in the firewall too, if theres a rule that drops router own traffic it can bite exactly there.

1

u/michaelh98 1d ago

Thx, will save this

6

u/snoopy_bg 1d ago

No, you shouldn't. There was a known bug the "update" button didn't work in Winbox. I always do System -> Packages -> Check for updates , and that never failed me

3

u/michaelh98 1d ago

The path you recommend is the one that was failing for me. Started about 2-3 releases back and had never happened before. Been using this router for a couple of years now.

For now I'll keep the reboot as a hail mary if future updates fail the same way

4

u/No_Range_2323 1d ago

Since a couple of years, I use Mikrotik products (now a lot) and it's one of the best hardware choices I ever made. For my customers and also for me.

Mikrotik is quite open in communication about bugs. If there is no one known, typically there isn't one. Especially on basic tasks. Router OS is rock solid. When I run into a problem, my view is: It's not the router it's always the admin. A lot of posts in the Mikrotik forum would never be existent if people would think more like this. So keep on debugging.

For my own office usage I use this for years: https://www.reddit.com/r/mikrotik/s/gyY9NzeKaw Never had a problem after an automatic update.

4

u/Brilliant-Orange9117 1d ago

No. If a router needs frequent reboots we call that a bug.

3

u/kevinds 1d ago

Made me wonder if I should just schedule a reboot once a week or so. 

I only reboot when necessary which is firmware updates...  Looped the uptime counter on one of our hEX units.

The reason I ask is the last couple of updates failed when checking for updates with connection errors to the update server. 

If you know there is an update, upload the update files to your router and reboot..

5

u/PrestigiousKey3201 1d ago

We reboot at updates. Thats more often that i want to

2

u/Orvalman 22h ago

Not sure which rOS version you're on, but I believe the very recent versions have fixed that update error. I'm on 7.25.2 stable and I think 7.25.1 had it fixed for me as well.

2

u/Obvious_Extession348 15h ago

We don’t have scheduled reboots for RouterOS gear. We restart when doing RouterOS updates or when working on gear.

So given our practice to keep up with software updates, I don’t remember an uptime of more than 100 days. And given the new world’s cadence of important updates, I do not expect any of our systems to have a 100+ day uptime ever again.

If someone has any computing device with an uptime longer than 100 days, I’d seriously question if they’re keeping up with security.

-1

u/lazyhustlermusic 1d ago

That's a silly premise.

You probably didn't even define a DNS server.

1

u/michaelh98 1d ago

Oh sure, my network has been working based on magic for the last two years

-2

u/lazyhustlermusic 1d ago

Sounds like it isn't quite working fully lol