Recently I unplugged my RB4011iGS+5HacQ2HnD and when I powered it back on the configuration was gone. I am fairly diligent about backups and I take a backup before I make any configuration change, but I couldn’t restore from any of them. The device would just reboot back to the initial configuration (default password, no assigned addresses, no firewall rules, etc.)
I thought it might have been due to a corrupted OS, but when I checked it using the “Check Installation” feature everything has comes back ok.
I thought maybe it was a one off, but just 10 minutes ago I was tuning my fq_codel queue and the router crashed (I am fine with it crashing as I know it’s still a beta), upon restarting the configuration was again wiped, and I had to restore from the same backup. Very odd.
Has anyone come across this problem? Is it worth me doing a configuration reset and re-applying my configuration (.rsc) instead of restoring the backup?
Yes it does. Have you had any luck tracking down the problems with yours?
I’m going to attempt to do a Netinstall, however I only have a Mac so I need to install windows etc to it up and running (I don’t want to try this via a virtual machine).
Sadly no luck, the config is valid up to a point and when you change something it becomes invalid so that after reboot it just wipes the whole router - it’s bizarre. I wasn’t able to get to the root cause yet.
As for netinstall I always do that from a Win10 VM on a Mac It’s sometimes finicky so I usually connect a USB ethernet and pass it to a VM.
Oh cool I’ll try that, saves me going down the Bootcamp option.
I suspect you’re right, it’s one line of bad config that it can’t get past when it boots, which basically puts it in an unloaded/empty state, the problem is which config is it!
Last night it happened again once I upgraded to the new beta, I had to restore to a slightly older backup. Since then, I have pruned a firewall & NAT rules, tweaked a DHCP pool size (increased it) and updated the graphs to be accessible from 0.0.0.0/0 (basically bringing it back to speed with what it was before it went pop). I haven’t restarted it since making these changes, but I have backed up after each change (I would do it now, but I don’t want to be up to the early hours debugging it again). I’m planning of restarting it at the weekend to see to try and rule out these config changes. Then I was going to preform a netinstall just to get back to a clean state before restoring from a backup.
Mikrotik Support - Is it worth me producing a Supout.if before and after (if was to happen again) to help you diagnose this issue?
The main reason why I used that script was to inform me whenever there’s a new update, it also has the ability to auto update your router (which is the bulk of that script). However I am quickly learning you shouldn’t do this with the RouterOS 7 beta’s, as I suspect MikroTik call these betas because they don’t QA the upgrade path scenarios, they leave that to us.
I don’t know if the original bug was due to the script or RouterOS script engine or something else in the startup scripts of the router. Either way I don’t need this script as I have changed the way I upgrade beta versions (export configure, net install and apply config).
Thanks for those snippets, I give them a go next week. At the moment I am just enjoying some stability.
Horrible practice. Do your own configs and understand them. If there parts of the script you like use them otherwise, dont do anything automated like that.
Always approach each firmware upload in a methodical manner, and until things settle down, after a release, never jump into a new firmware. For example I am still waiting for long term Vers 7 before I switch my main router over to vers 7. Personally if you experienced any funny things with firmware, then netinstall the next time you change firmware.
how to save the key file directly to flash ? I dont understand how transfert the data to the flash to file, and by mail is ok, how data by mail can create file with data inside and not by file to flash ?
The point is simple: the variable dfile will be named abcd-efgh.key with the license key text inside the dfile variable
I understand → /system license output ← will create inside the flash the file abcd-efgh.key (terminal with just /system license output + enter = key file)
Question: How the email can capture the variable dfile with all license (data key text) and send it without reading the flash ?
answer is : abcd-efgh.key (just the name print on terminal screen)
if email can send dfile variable to function (with all key data inside) Why I cant see the data inside the variable to terminal ???
the email can transfert variable dfile with all data to email ? how ? sorry I dont understand, inside data variable you can do what you want after inside variable? no ?