Community discussions

MikroTik App
 
User avatar
mutluit
Forum Veteran
Forum Veteran
Topic Author
Posts: 821
Joined: Wed Mar 25, 2020 4:04 am

How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

Sat May 23, 2020 9:39 pm

How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

A CRS125 switch device here is running with RouterOS 6.46.6/stable.
Now we need to downgrade this to v6.45.1 to perform a test with that old version.
But the downgrade was not successful yet, as the current version remains on the device :-(
[admin2@CRS125] > /system resource print
                   uptime: 54m32s
                  version: 6.46.6
               build-time: Apr/27/2020 10:32:16
         factory-software: 6.27
              free-memory: 105.2MiB
             total-memory: 128.0MiB
                      cpu: MIPS 74Kc V4.12
                cpu-count: 1
            cpu-frequency: 600MHz
                 cpu-load: 1%
           free-hdd-space: 108.9MiB
          total-hdd-space: 128.0MiB
  write-sect-since-reboot: 374
         write-sect-total: 1629951
               bad-blocks: 0%
        architecture-name: mipsbe
               board-name: CRS125-24G-1S
                 platform: MikroTik


[admin2@CRS125] > /system package update print
            channel: stable
  installed-version: 6.46.6


[admin2@CRS125] > /system routerboard settings print
              auto-upgrade: no
                 baud-rate: 115200
                boot-delay: 5s
            enter-setup-on: any-key
               boot-device: nand-if-fail-then-ethernet
             cpu-frequency: 600MHz
             boot-protocol: bootp
       enable-jumper-reset: yes
       force-backup-booter: no
               silent-boot: no
      protected-routerboot: disabled
      reformat-hold-button: 20s
  reformat-hold-button-max: 10m


I tried the following steps:
Step 1: from the MT SW archive I copied routeros-mipsbe-6.45.1.npk to the Files directory.
Step 2: In the console I issued this command "/system package downgrade"
It prompts "Router will be rebooted. Continue? [y/N]:" and I press y, it then reboots,
but the running RouterOS version is still the same 6.46.6 after the reboot :-(

In the console it said at reboot the following:
[admin2@CRS125] >
Rebooting...
ERROR: broken package routeros-mipsbe-6.45.1.npk
Restarting system.

RouterBOOT booter 6.46.6

CRS125-24G-1S

CPU frequency: 600 MHz
Memory speed: 200 MHz
Memory size: 128 MiB
NAND size: 128 MiB

Press any key within 5 seconds to enter setup....
...
I tried also routeros-mipsbe-6.45.2.npk, but same error happens :-(

Can anybody help?
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11627
Joined: Thu Mar 03, 2016 10:23 pm

Re: How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

Sat May 23, 2020 9:53 pm

As I explained in the other thread (which you partially ignored and I'll return to ignoring you after this post as it seems waste of my time writing you very concrete advices which you then largely ignore): you can download "Extra packages" ZIP file which is easy to verify after download. Then extract file "system-version-mipsbe.npk", put it on your CRS and perform downgrade ... I you fancy ssh connection to CRS, then you need packages security and dhcp as well (sshd is part of security and security depends on dhcp).
 
User avatar
mutluit
Forum Veteran
Forum Veteran
Topic Author
Posts: 821
Joined: Wed Mar 25, 2020 4:04 am

Re: How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

Sat May 23, 2020 10:00 pm

@mkx, you seem not to understand the problem.
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2994
Joined: Mon Apr 08, 2019 1:16 am

Re: How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

Sat May 23, 2020 10:02 pm

Its obvious no?

ERROR: broken package routeros-mipsbe-6.45.1.npk
 
User avatar
mutluit
Forum Veteran
Forum Veteran
Topic Author
Posts: 821
Joined: Wed Mar 25, 2020 4:04 am

Re: How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

Sat May 23, 2020 10:07 pm

Its obvious no?

ERROR: broken package routeros-mipsbe-6.45.1.npk
Yes, of course! :-) But why & what is the solution?
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2994
Joined: Mon Apr 08, 2019 1:16 am

Re: How to downgrade RouterOS from v6.46.6 to v6.45.1 ?  [SOLVED]

Sat May 23, 2020 10:12 pm

How do you upload????

Download from the CRS125 and do a difference check. Check for multiple copies ! The new online download process does not show the npk in files ! (its a hidden file or directory)
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2994
Joined: Mon Apr 08, 2019 1:16 am

Re: How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

Sat May 23, 2020 10:24 pm

 
User avatar
mutluit
Forum Veteran
Forum Veteran
Topic Author
Posts: 821
Joined: Wed Mar 25, 2020 4:04 am

Re: How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

Sat May 23, 2020 10:34 pm

How do you upload????

Download from the CRS125 and do a difference check. Check for multiple copies ! The new online download process does not show the npk in files ! (its a hidden file or directory)
You are right, man! BIG THANKS! It now worked as follows.
Previously I just downloaded the file with the browser to my PC,
from there I uploaded it to the Files directory of the device.
Funny that it gets damaged by this methods of transfer (as said I even tried two such files).

But now the following method finally worked:
[admin2@CRS125] > /tool fetch url="https://download.mikrotik.com/routeros/6.45.1/routeros-mipsbe-6.45.1.npk"                         
      status: finished
  downloaded: 11769KiB
       total: 11769KiB
    duration: 13s


[admin2@CRS125] > /file print 
 # NAME                          TYPE            SIZE CREATION-TIME       
 0 skins                         directory       jan/01/1970 02:00:01
 1 routeros-mipsbe-6.45.1.npk    package         11.5MiB may/23/2020 21:19:54
 2 pub                           directory       jun/10/2017 01:45:41


[admin2@CRS125] > /system package downgrade
Router will be rebooted. Continue? [y/N]:
y
system will reboot shortly
[admin2@CRS125] >
Rebooting...  
installed routeros-mipsbe-6.45.1
finishing installation...
Restarting system.


RouterBOOT booter 6.46.6

CRS125-24G-1S 

CPU frequency: 600 MHz
 Memory speed: 200 MHz
  Memory size: 128 MiB
    NAND size: 128 MiB

Press any key within 5 seconds to enter setup.....

loading kernel... OK
setting up elf image... OK
jumping to kernel code
Starting...   
Starting services...


MikroTik 6.45.1 (stable)
CRS125 Login: 


It now says "MikroTik 6.45.1 (stable)" :-)
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11627
Joined: Thu Mar 03, 2016 10:23 pm

Re: How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

Sat May 23, 2020 10:43 pm

@mkx, you seem not to understand the problem.
As I wrote ... waste of my time.
 
User avatar
mutluit
Forum Veteran
Forum Veteran
Topic Author
Posts: 821
Joined: Wed Mar 25, 2020 4:04 am

Re: How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

Sat May 23, 2020 10:51 pm

@bpwl, can it be that all downloads made by any other method than by RouterOS ("/tool fetch" etc.) are in fact damaged?
Why should a https download via web browser become damaged, and how? There would be an error message, but the download was intact.
Hmm. very funny...
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2994
Joined: Mon Apr 08, 2019 1:16 am

Re: How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

Sat May 23, 2020 11:23 pm

@bpwl, can it be that all downloads made by any other method than by RouterOS ("/tool fetch" etc.) are in fact damaged?
Why should a https download via web browser become damaged, and how? There would be an error message, but the download was intact.
Hmm. very funny...
I have no idea. I still use my npk manual upload via Winbox (drag and drop) and it works flawless.
In your case , the potential culprit could be that there was a previous incomplete on-line update. And that a broken npk file was sitting in that hidden directory.
Every upgrade attempt with a newly loaded npk would try the old hidden npk and fail, and delete the new visible npk, leaving the hidden incomplete npk in place.
"/system package upgrade cancel" could have solved it. An extra reboot could finally have deleted the bad npk. The fetch loaded a good hidden npk to replace the broken.

It 's only a hypothesis, its obscure.

Security by obscurity is no security. (Cissp training)
 
User avatar
mutluit
Forum Veteran
Forum Veteran
Topic Author
Posts: 821
Joined: Wed Mar 25, 2020 4:04 am

Re: How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

Sat May 23, 2020 11:55 pm

I now did repeat the "/tool fetch ..." and compared the downloaded file with the previously via WebBrowser downloaded file, but: there is no difference at all! (tested with the "diff" tool in Linux).
Hmm. then the conclusion seems to be that the downgrade process works only if the npk-file was downloaded from within RouterOS. Another explanation I do not have.
Never mind as it now works. Just made another mystery experience... :-)
Ok, case closed.
Thx everybody.
 
User avatar
Cha0s
Forum Guru
Forum Guru
Posts: 1142
Joined: Tue Oct 11, 2005 4:53 pm

Re: How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

Sun May 24, 2020 2:06 pm

@mkx, you seem not to understand the problem.
As I wrote ... waste of my time.
Yeap! Added to foes... can't stand 100 posts per day blaming incompetence as bugs.
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2994
Joined: Mon Apr 08, 2019 1:16 am

Re: How to downgrade RouterOS from v6.46.6 to v6.45.1 ?

Fri Jun 05, 2020 10:48 am

@bpwl, can it be that all downloads made by any other method than by RouterOS ("/tool fetch" etc.) are in fact damaged?
Why should a https download via web browser become damaged, and how? There would be an error message, but the download was intact.
Hmm. very funny...
I have no idea. I still use my npk manual upload via Winbox (drag and drop) and it works flawless.
In your case , the potential culprit could be that there was a previous incomplete on-line update. And that a broken npk file was sitting in that hidden directory.
Every upgrade attempt with a newly loaded npk would try the old hidden npk and fail, and delete the new visible npk, leaving the hidden incomplete npk in place.
"/system package upgrade cancel" could have solved it. An extra reboot could finally have deleted the bad npk. The fetch loaded a good hidden npk to replace the broken.

It 's only a hypothesis, its obscure.

Security by obscurity is no security. (Cissp training)
How to remove a hidden (broken) npk file? viewtopic.php?f=1&t=185562#p775022

Who is online

Users browsing this forum: Amazon [Bot], iDaemon and 145 guests