Community discussions

MikroTik App
 
Josephny
Forum Guru
Forum Guru
Topic Author
Posts: 1233
Joined: Tue Sep 20, 2022 12:11 am
Location: New York, USA

How I Spent My Upgrade Time

Sat Mar 22, 2025 11:21 am

(Title is a joke based on a popular young student assignment at the beginning of the school year: Teacher asks the students to write an essay entitled "How I Spent My Summer" -- guess you had to be there.)

So I've got an RB5009 chugging along (i.e., doing just fine) and running 7.16.1

Not satisfied to leave working things alone, I set about to upgrade to 7.17.2 (being conservative and not going near 18 or 19beta).

Darn thing wouldn't upgrade.

Upgraded the routerboard. Still no success.

Read a bunch of posts, then some more posts with angry-sounding replies telling people to look at the older posts, etc.

Tried to upgrade to 7.16.2 -- no luck.

Then I realized that at some time in the past I uploaded/installed a whole bunch of the additional packages -- most never used.

So, after trying to upgrade by uploading routeros alone, routeros together with some of the packages (i.e., the one in use), I discovered the solution:

Device will only upgrade when ALL of the previously installed packages are uploaded at the same time.

So, while I am certain many reading this will already know, and I would not be surprised at all if there are previous posts that disclose this trick, I am posting this here so that the next guy finds it and it saves him some frustration and/or time.
[admin@212RB5009] /system/package> print
Flags: X - DISABLED
Columns: NAME, VERSION, BUILD-TIME, SIZE
 #   NAME          VERSION  BUILD-TIME           SIZE     
 0   wireless      7.17.2   2025-02-06 09:10:24  856.1KiB 
 1 X wifi-qcom     7.17.2   2025-02-06 09:10:24  10.2MiB  
 2   rose-storage  7.17.2   2025-02-06 09:10:24  3128.1KiB
 3   lora          7.17.2   2025-02-06 09:10:24  8.1KiB   
 4   extra-nic     7.17.2   2025-02-06 09:10:24  2208.1KiB
 5   zerotier      7.17.2   2025-02-06 09:10:24  836.1KiB 
 6   user-manager  7.17.2   2025-02-06 09:10:24  332.1KiB 
 7   ups           7.17.2   2025-02-06 09:10:24  32.1KiB  
 8   tr069-client  7.17.2   2025-02-06 09:10:24  132.1KiB 
 9   iot           7.17.2   2025-02-06 09:10:24  552.1KiB 
10   gps           7.17.2   2025-02-06 09:10:24  24.1KiB  
11   dude          7.17.2   2025-02-06 09:10:24  1224.1KiB
12   container     7.17.2   2025-02-06 09:10:24  64.1KiB  
13   calea         7.17.2   2025-02-06 09:10:24  20.1KiB  
14   routeros      7.17.2   2025-02-06 09:10:24  12.0MiB 
 
User avatar
cyrq
just joined
Posts: 11
Joined: Sat Mar 11, 2023 12:19 pm

Re: How I Spent My Upgrade Time

Sat Mar 22, 2025 11:26 am

Imagine having a single button called “Check for updates” that would do all that for you. Crazy, huh?
 
User avatar
infabo
Forum Guru
Forum Guru
Posts: 1672
Joined: Thu Nov 12, 2020 12:07 pm

Re: How I Spent My Upgrade Time

Sat Mar 22, 2025 11:37 am

I am not 100% sure, but log/print should tell you the reason why it did not upgrade successfully because of missing packages.
 
Josephny
Forum Guru
Forum Guru
Topic Author
Posts: 1233
Joined: Tue Sep 20, 2022 12:11 am
Location: New York, USA

Re: How I Spent My Upgrade Time

Sat Mar 22, 2025 12:33 pm

Imagine having a single button called “Check for updates” that would do all that for you. Crazy, huh?
yes, indeed!

A single button that checks for updates and lets you choose which version you wish you upgrade to would be super fab!
 
Josephny
Forum Guru
Forum Guru
Topic Author
Posts: 1233
Joined: Tue Sep 20, 2022 12:11 am
Location: New York, USA

Re: How I Spent My Upgrade Time

Sat Mar 22, 2025 12:34 pm

I am not 100% sure, but log/print should tell you the reason why it did not upgrade successfully because of missing packages.
Hmm...

After the required reboot, and failure to upgrade? I did not see anything.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13711
Joined: Thu Mar 03, 2016 10:23 pm

Re: How I Spent My Upgrade Time

Sat Mar 22, 2025 12:49 pm

Imagine having a single button called “Check for updates” that would do all that for you. Crazy, huh?
yes, indeed!

A single button that checks for updates and lets you choose which version you wish you upgrade to would be super fab!

Imagine that it already exists! With a gotcha: it doesn't read your mind about wanted ROS version, it goes ahead and installs newest version in selected channel (e.g. stable ... currently that would be 7.18.2).

I am not 100% sure, but log/print should tell you the reason why it did not upgrade successfully because of missing packages.
Hmm...

After the required reboot, and failure to upgrade? I did not see anything.
Well, it did show on my devices ... one of first log entries. But it only shows after first reboot (which is actually part of ROS upgrade procedure). Subsequent reboots will wipe logs (if device doesn't have configured logging action to disk).
 
Josephny
Forum Guru
Forum Guru
Topic Author
Posts: 1233
Joined: Tue Sep 20, 2022 12:11 am
Location: New York, USA

Re: How I Spent My Upgrade Time

Sat Mar 22, 2025 12:55 pm



yes, indeed!

A single button that checks for updates and lets you choose which version you wish you upgrade to would be super fab!

Imagine that it already exists! With a gotcha: it doesn't read your mind about wanted ROS version, it goes ahead and installs newest version in selected channel (e.g. stable ... currently that would be 7.18.2).
Exactly: It would not have to read my mind, just ask and I am happy to share my desire.

Seriously, with all the screaming here about 7.18.2, and whichever version is current at any specific time, adding a option to select which version would be nice. Otherwise, upgrading to a non-current version is a PITA if you don't know the little tricks (such as uploading all previously loaded packages).


Hmm...

After the required reboot, and failure to upgrade? I did not see anything.
Well, it did show on my devices ... one of first log entries. But it only shows after first reboot (which is actually part of ROS upgrade procedure). Subsequent reboots will wipe logs (if device doesn't have configured logging action to disk).
Certainly could be that I missed it. I doubt I'm the first.
 
User avatar
infabo
Forum Guru
Forum Guru
Posts: 1672
Joined: Thu Nov 12, 2020 12:07 pm

Re: How I Spent My Upgrade Time

Sat Mar 22, 2025 1:40 pm

You chose manual upgrade: https://help.mikrotik.com/docs/spaces/R ... ualupgrade

The easy way is the standard upgrade. For everything else it is always advisable to read the documentation. ROS is infamous for the non-obvious. As I just learned from the docs:

"Menu: /system/package/update install ignore-missing command allows upgrading only the RouterOS main package, while omitting packages that are either missing or not uploaded during a manual upgrade process."
https://help.mikrotik.com/docs/spaces/R ... %20process.
 
Josephny
Forum Guru
Forum Guru
Topic Author
Posts: 1233
Joined: Tue Sep 20, 2022 12:11 am
Location: New York, USA

Re: How I Spent My Upgrade Time

Sat Mar 22, 2025 3:16 pm

You chose manual upgrade: https://help.mikrotik.com/docs/spaces/R ... ualupgrade

The easy way is the standard upgrade. For everything else it is always advisable to read the documentation. ROS is infamous for the non-obvious. As I just learned from the docs:

"Menu: /system/package/update install ignore-missing command allows upgrading only the RouterOS main package, while omitting packages that are either missing or not uploaded during a manual upgrade process."
https://help.mikrotik.com/docs/spaces/R ... %20process.
Good reference.

Thanks.