Community discussions

MikroTik App
 
User avatar
robtor
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 95
Joined: Sat Dec 09, 2023 3:27 pm
Location: Germany, Hessen
Contact:

AutoUpgrade via /system/upgrade/download-all does not work

Thu Jan 25, 2024 9:48 pm

I have a setup with one edge router and many other Mikrotik devices behind that. All those devices are not connected to the internet itself, they are further within a dedicated management network. Therefore I wanted to use the AutoUpgrade functionality sparely described in the documentation within: https://help.mikrotik.com/docs/display/ ... assupgrade


Therefore I configured my edge router to hold the firmware files within a subdirectory of my USB:
Image

For the connection to this router I have added a separate account with read-only permission/group.
Then on the remote sites I have set up the auto upgrade sources:
/system/upgrade/upgrade-package-source/add address=172.20.0.1 user=upgrader
When running
/system/upgrade/refresh 
nothing happens, only the login on the edge router via winbox is logged.

When running
/system/upgrade/download-all                                               
failure: don't know which is system package
this error appears.


Does anyone have an idea on what I am doing wrong? this feature is not pretty much documented but in my case very helpful. It was absolutely annoying to configure/enable internet access for my management network each time i want to drive updates.
 
DeadStik
just joined
Posts: 20
Joined: Thu Jan 04, 2024 4:35 pm

Re: AutoUpgrade via /system/upgrade/download-all does not work

Fri Jan 26, 2024 12:50 am

Is your device you are updating already on v7.12?

From the Change Logs:
1. When upgrading by using "check-for-updates", all versions earlier than 7.12 will display 7.12 as the latest available version. Upgrade from v7.12 to v7.13 or later versions must be done through 7.12 in order to convert wireless packages automatically. Fresh installation with Netinstall or manual package installation works in the same manner as always
https://mikrotik.com/download/changelogs
Last edited by DeadStik on Fri Jan 26, 2024 12:56 am, edited 1 time in total.
 
User avatar
robtor
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 95
Joined: Sat Dec 09, 2023 3:27 pm
Location: Germany, Hessen
Contact:

Re: AutoUpgrade via /system/upgrade/download-all does not work

Fri Jan 26, 2024 10:33 am

Is your device you are updating already on v7.12?
Yes it is. In this scenario it was an 7.13.2 and it is an arm device.

Might it be an problem that the files are within a subdirectory of the USB?
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13154
Joined: Thu Mar 03, 2016 10:23 pm

Re: AutoUpgrade via /system/upgrade/download-all does not work

Fri Jan 26, 2024 5:47 pm

Might it be an problem that the files are within a subdirectory of the USB?

IMO this is very likely. You may want to open issue with MT support asking them to provide detailed description (or example of setup) of this function.
 
holvoetn
Forum Guru
Forum Guru
Posts: 6903
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: AutoUpgrade via /system/upgrade/download-all does not work

Fri Jan 26, 2024 6:13 pm

Easy to try.
Move the required files to main folder and see what happens then.
 
User avatar
robtor
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 95
Joined: Sat Dec 09, 2023 3:27 pm
Location: Germany, Hessen
Contact:

Re: AutoUpgrade via /system/upgrade/download-all does not work

Fri Jan 26, 2024 7:09 pm

So I've finally tried moving the .npk files to the root directory and it still does not work
The main router shows user mirror logged in from <ip> via winbox
And then nothing happens and finally a logout message is displayed.

On the client's side there are either no messages logged, even when enabling the debug topic within the logger

Maybe anyone here who got this working?

Additionally i don't understand what the "Mirror" submenu is exactly for