Bug: default configuration fails on 7.1beta6

  • Version number: 7.1beta6


  • Router’s model: RB4011iGS+5HacQ2HnD

I decided to reset configuration and I found out that default configuration script fails. I ended up with a device without IP address. I was able to get the device working through serial console.

Steps to reproduce the issue:

[admin@router] > /system reset-configuration skip-backup=yes 
Dangerous! Reset anyway? [y/N]: 
y
system configuration will be reset

Rebooting...
[42031.635046] reboot: Restarting system
:00000050
AL31400X-140


RouterBOOT booter 7.1beta6

RB4011iGS+5HacQ2HnD

… (wait for login prompt) … After login with admin and no password I get:

SCRIPT ERROR: expected end of command (line 101 column 16)

and to show more details:

[admin@MikroTik] > /log/print without-paging 
00:00:04 system,info crossfig will upgrade version 6 configuration 
00:00:04 system,info router rebooted 
00:00:17 system,error,critical error while running default configuration script: expected end of command (line 101 column 16) 
00:00:17 system,error,critical 
00:00:18 system,info,account user admin logged in via local

When I print default config:

[admin@MikroTik] > /system default-configuration print without-paging

I see:

                      /interface wireless {

                        set $ifcId channel-width=20/40/80mhz-XXXX;
                        set $ifcId secondary-channel=auto
                        set $ifcId frequency=auto

Syntax highlighting shows first “s” in “secondary-channel” with red and after that text is not highlighted. I believe it is because it doesn’t exist anymore:

[admin@MikroTik] > /interface/wireless/
access-list  channels      interworking-profiles  nstreme-dual        sniffer  add      edit    find               print   reset-configuration  setup-repeater    wps-client     
align        connect-list  manual-tx-power-table  registration-table  snooper  comment  enable  frequency-monitor  remove  scan                 spectral-history  wps-push-button
cap          info          nstreme                security-profiles   wds      disable  export  monitor            reset   set                  spectral-scan

And just to add, device doesn’t have IP address set:

[admin@MikroTik] > /ip/address/print 

[admin@MikroTik] >

Since I wanted to get default config, I followed First Time Configuration to set IP address, uploaded stable version of firmware, switched to it, reset again which worked and only then switch back to beta.

Confirmed. Same hardware, same result.

Additionally, applying previous exported config through :

/system reset-configuration no-defaults=yes run-after-reset=myexport.txt.rsc

fails unless you add

:delay 20

on top of script.

For any future Google searches. I am also seeing this issue on the RB4011iGS+5HacQ2HnD, but I’m NOT running (and NEVER have) a beta firmware. Running 6.49.1

There is a bad bug with the default-configuration of RB4011iGS+5HacQ2HnD and 6.49.1.

Steps to reproduce:

  • Get a RB4011iGS+5HacQ2HnD
  • Flash with 6.49.1
  • Perform a system reset:
  • /system reset-configuration
  • y
    Wait for reboot, and you’ll receive this console/error message[/list]
    Screen Shot 2021-12-03 at 3.31.11 pm.png
    The lines in question that is failing is:
    Line 99: set $ifcId channel-width=20/40/80mhz-XXXX;
    Line 100: set $ifcId secondary-channel=auto
    Line 101: set $ifcId frequency=auto


    Expected result:
    Router factory reset with default config, such as DHCP running on ether2

Actual result:
No default configuration restored

Testing:
I’ve replicated this on 2x RB4011iGS+5HacQ2HnD devices.