Community discussions

MikroTik App
 
User avatar
pts0
just joined
Topic Author
Posts: 21
Joined: Thu Mar 07, 2024 11:02 am

echo: system,error,critical could not save configuration changes, not enough storage space available.

Wed Jan 29, 2025 8:52 pm

Hi, after installin 7.17 my disk got space 0.

How to clean it up ? What i have done wrong ?

I have on this switch CAPsMAN (old and new), is this the issue, should i move somewhere else ?

admin@switch012] > /system/resource print 
                   uptime: 39m18s             
                  version: 7.17 (stable)      
               build-time: 2025-01-16 08:19:28
         factory-software: 6.44.6             
              free-memory: 439.8MiB           
             total-memory: 512.0MiB           
                      cpu: ARM                
                cpu-count: 2                  
            cpu-frequency: 800MHz             
                 cpu-load: 5%                 
           free-hdd-space: 0                  
          total-hdd-space: 16.0MiB            
  write-sect-since-reboot: 127                
         write-sect-total: 116823244          
        architecture-name: arm                
               board-name: CRS326-24G-2S+     
                 platform: MikroTik  
Thanks
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13288
Joined: Thu Mar 03, 2016 10:23 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Wed Jan 29, 2025 9:11 pm

Your switch is one of devices with too little flash space ... and since you need optional package wireless to run old CAPsMAN, you'll have to consider moving legacy CAPsMAN elsewhere (and uninstall wireless package from switch). You can set up legacy CAPsMAN on one of devices which are currrenty CAPs. There's no benefit in running both CAPsMANs on same device from interworking point of view (old and new don't cooperate and don't share config).
 
User avatar
pts0
just joined
Topic Author
Posts: 21
Joined: Thu Mar 07, 2024 11:02 am

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Wed Jan 29, 2025 10:09 pm

ok, is strange, because same config on other CRS326-24G-2S+ with same config still have space left.
Is disk a special part of memory, or could be possible to shrint memory and expand disk ?

CAPsMAN is absolutly indifferent where is installed ... traffic is not routing there.
Let's move it to RB5009UPr+S+ or L009UiGS-2HaxD ... or maybe directly on a cAP ax.
There is a way to export the config of CAPsMAN ? ok
/caps-man/ export
work for legacy ... how is for wifi ?
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11362
Joined: Mon Dec 04, 2017 9:19 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Wed Jan 29, 2025 10:54 pm

Export the configuration to a file (indeed use /export show-sensitive, not /system backup save)), and separately export the certificates if you use them, including private keys. Then netinstall the device and recreate the configuration from the exports.

I have a support ticket open on "something" gradually occupying the disk space already in 7.16.2; the space is periodically released in bulk (128 Mbytes at a time), but a reboot can break this, so the disk space gets completely lost if you reboot the device multiple times at a "wrong" time. Watching the [/system resource get free-hdd-space] value is the way to monitor the changes - I use a scheduled script to monitor the occupied space and log the changes or send Telegram messages.

So far I was unable to make a device without any sensitive information exhibit this behavior so I am unable to provide the much needed supout.rif file to the support. So I'd be grateful for anyone whose device behaves this way and either does not serve as a VPN server or client at all, or it is easy to change the passwords after generating the supout.rif, to provide their supout.rif taken in the middle of the "breathing cycle" to Mikrotik support. The ticket number to refer to is SUP-176219.
 
User avatar
pts0
just joined
Topic Author
Posts: 21
Joined: Thu Mar 07, 2024 11:02 am

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Thu Jan 30, 2025 1:26 am

Ok, i will do it ... at the moment the switch is working but fully broken, no reboot possible, unistall of package is not possible anymore.
I m too lazy (and not on site) to netinstall it... will solve the problem but :(

-- so now more the capsman and then provide ticket. I m lucky this switch ist not heavely used ... but the CRS354-48G-4S+2Q+ suffer of similar issue
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11362
Joined: Mon Dec 04, 2017 9:19 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Thu Jan 30, 2025 5:59 am

If there is no sensitive information right now and /system/sup-output succeeds (says created: 100% after a while), you can send that one - it is created on the RAM disk, not on the flash that is full, unless you explicitly specify the name and make it start with flash/.

As for exporting the wifi CAPsMAN configuration, use /interface/wifi/export, as the configuration trees for the local wifi interfaces and for capsman-controlled ones have been integrated and the channel, security, datapath, configuration, and provisioning branches are at the same level like the capsman one.
 
User avatar
pts0
just joined
Topic Author
Posts: 21
Joined: Thu Mar 07, 2024 11:02 am

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Thu Jan 30, 2025 5:58 pm

Submitted SUP-177913
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11362
Joined: Mon Dec 04, 2017 9:19 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Fri Jan 31, 2025 9:02 pm

@mkx, since you are already watching this topic anyway, I react to your statement from the 7.17.(1) topic here.
My use case for my hAP ac2 doesn't require any wireless driver and it's not available for experimenting.
viewtopic.php?p=1122624#p1122624 explains why I have quoted that "ran out of flash space" part from your post in the original topic. As in "the wifi-qcom-ac driver may have nothing to do with that".
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13288
Joined: Thu Mar 03, 2016 10:23 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Fri Jan 31, 2025 9:37 pm

As in "the wifi-qcom-ac driver may have nothing to do with that".

In my particular case the reason was obvious: with advent of 7.13 I felt adventurous and went ahead with replacing wireless with wifi-qcom-ac. After installation of base ROS and wifi-qcom-ac package only some 300kB of flash remained free. After I added normal router's config (a handful of firewall rules), it ran just fine and wireless worked like a charm. But then I filled IPv4 and IPv6 address lists with blocks of addresses for two countries. And it was still working fine. But when I wanted to update addresses in the lists, device ran out of flash space. Then I did netinstall (because not even removing entries from interface lists was possible), I re-did the setup (not redtoting from backup for obvious reasons) ... and ran into flash problems again. Since physical location of the device (room in underground, placed inside telco rack with it's metallic mesh doors closed most of time) didn't really warrant running wireless interface, I decided to uninstall wifi-qcom-ac driver altogether and that gave me healthy 2.8MB of free space before filling up the address lists. Device now happily serves as router and CAPsMAN (for two very decent APs: one Audience and one wAP ax).
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11362
Joined: Mon Dec 04, 2017 9:19 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Fri Jan 31, 2025 9:47 pm

that gave me healthy 2.8MB of free space before filling up the address lists
ok, and that amount of free space does not "autonomously" change, i.e. remains the same unless you cnahge something in the configuration? If so, let me call you "mkx the lucky" :) I'm pulling my hair over what is the reason why some devices suffer from the issue and some don't.
 
optio
Forum Guru
Forum Guru
Posts: 1015
Joined: Mon Dec 26, 2022 2:57 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Fri Jan 31, 2025 10:06 pm

It grows, but not much in my case running ROS 7.16.2. I have several schedulers that changes configuration, one for eg. performs changes by adapting 25 Queue tree rules several times at day. I didn't monitor how much space is reduced by day, but when creating backups occasionally they are getting a bit larger, less than 1KB per backup so I'm not worried much, still having currently only 420.0KiB I'm not to happy with this either.
Probably this disk space growths depends which configuration is changed and how often.
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11362
Joined: Mon Dec 04, 2017 9:19 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Fri Jan 31, 2025 10:23 pm

Probably this disk space growths depends which configuration is changed and how often.
Nope. On mine, the free disk space shrinks by 4096 bytes every 5 to 10 minutes currently, and every 128 kBytes it gets freed in bulk and the cycle repeats, and neither me nor any script touch the configuration during that time. I.e. the ghost is fully autonomous. Two devices under my responsibility behave like this, three other ones don't. All five of them hAP ac² running 7.16.2.
 
optio
Forum Guru
Forum Guru
Posts: 1015
Joined: Mon Dec 26, 2022 2:57 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Fri Jan 31, 2025 10:35 pm

Does ROS maybe uses swap file for VM on flash and it's changing depending on RAM usage? :) My device is with similar specs (Chateau LTE12) but it has more RAM - 256MB. Also I'm seeing dynamic some small disk usage changes, but much smaller.
disk_usage.png
It is visible that is not straight line, could be just some small temp files used by system processes.

PS.
Actually it's straight, maybe I seeing optical illusions because of dots :)
disk_usage_line.png
I rebooted router yesterday so I don't have much graph history, but I'm sure from the past when I was observing this graph that disk size varies, but not much in my case.
You do not have the required permissions to view the files attached to this post.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13288
Joined: Thu Mar 03, 2016 10:23 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Fri Jan 31, 2025 10:49 pm

that gave me healthy 2.8MB of free space before filling up the address lists
ok, and that amount of free space does not "autonomously" change, i.e. remains the same unless you cnahge something in the configuration?
The free space remained constant for some 4 months while running 7.16 (without any reboots or some such) ... after upgrade to 7.17 it did shrink a bit. 7.16, however, did use a bit more RAM (not a problem on my 256MB unit, but could be a problem on 128MB units) and quite more CPU ... both went back to pre 7.16 levels with 7.17. I've yet to see if resource consumption will be stable with 7.17 though.
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11362
Joined: Mon Dec 04, 2017 9:19 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Fri Jan 31, 2025 11:02 pm

Does ROS maybe uses swap file for VM on flash and it's changing depending on RAM usage? :)
By chance, one of the affected hAP ac² has 256 MB RAM too, so that is not a remedy. And no containers run on any of them, so it's not them swapping to the flash - plus, if the RouterOS itself needed to swap the RAM on disk, why would the free space get reclaimed every now and then. Also, the 5 to 10 minutes pace is a property of the current reincarnation of the ghost, it used to be slower before the last reboot.
 
optio
Forum Guru
Forum Guru
Posts: 1015
Joined: Mon Dec 26, 2022 2:57 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Fri Jan 31, 2025 11:06 pm

Yes that's true about swap and disk space reclaim, as I mentioned, disk space varies in small amounts, up and down, could be temp files or swap if used.
It seems you have some different issue.
 
StarBrilliant
just joined
Posts: 1
Joined: Tue Feb 04, 2025 3:40 am

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Tue Feb 04, 2025 3:51 am

After updating to v7.17.1, my hAP ac^2 started to have the same issue.
echo: system,error,critical could not save configuration changes, not enough storage space available.

My package list:
  • routeros - 7.17.1 - 11.4 MiB
  • wifi-qcom-ac - 7.17.1 - 2680.1 KiB

My file list:
  • flash/pub - empty directory
  • flash/skins - empty directory

/system/resource/print shows:
free-hdd-space: 0

/system/reboot shows:
action timed out - try again, if error continues contact MikroTik support and send a supout file (13)

I submitted a ticket: SUP-178039
MikroTik support told me to do a netinstall with providing any explanation.
I haven’t wiped this router yet, because it’s my canary device. I need to make sure the update is safe for my other routers.
 
holvoetn
Forum Guru
Forum Guru
Posts: 6981
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Tue Feb 04, 2025 8:39 am

And yet ... it might be the only way out for your 16Mb flash space device.

What is happening behind the scenes: some left-over bits and pieces from previous versions are remaining, eating away precious storage space.
And that's what blocks you from performing upgrade. Some devices may pass now but may run in trouble later on. Nobody knows how to get a view on that internal memory usage.
Netinstall is the only way for now to completely clean the internals.

export config using show-sensitive
Move that export away from device and make sure the export is complete
netinstall device, empty config (don't forget that wifi-qcom-ac package, it can be installed in one sweep together with ROS using netinstall)
import config again block by block
 
PauliusCere
just joined
Posts: 1
Joined: Wed Nov 20, 2024 6:22 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Sat Feb 08, 2025 5:40 pm

Hello,

Just wondering, does anyone solved this problem without Netinstall? Would be simple, but error occurred on remotely managed site, many kilometers away. Even /system reset-configuration doen't work.

Thanks,
Paulius
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13288
Joined: Thu Mar 03, 2016 10:23 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Sat Feb 08, 2025 6:25 pm

For me, last time this happened on my hAP ac2 (yesterday :? ), it wouldn't even reboot properly (by executing reboot command) or shutdown.

You can believe me that I'm following these kinds of discussions for quite some time. This problem is plaguing my device ever since I installed v7, so it's been a few years now. And I've never ran into solution other than netinstall.

On the bright side: device will run more or less normally for quite some time unless it crashes due to unrelated reasons (e.g. memory leak).

And I believe that it woukd boot just fine as well, my guess is that this kind of flash starvation happens when ROS tries to save update to configuration database and it's creating a (full) copy of file before deleting the old one. Which means that probably the old config database is in good shape and shoukd be fine for boot time.
But this is more of an "educated gut feeling", I may be wrong about it and device will explode into neighbour's face.
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11362
Joined: Mon Dec 04, 2017 9:19 pm

Re: echo: system,error,critical could not save configuration changes, not enough storage space available.

Sat Feb 08, 2025 6:46 pm

My gut says the same, I have even experienced it practically while still in ROS 6 - I haven't noticed those complaints but after a reboot, everything was running fine except that I have lost a few ppp secrets I have added over last several weeks. Since I am using the command line almost exclusively, I figure the complaints were simply not output to the console in 6.49.13.

I'm waiting for Mikrotik to respond to my ticket again after I have updated it with a bunch of supout.rif taken after each bite on a machine where the ghost started "eating" and returning the disk space, hoping that they will identify the process that is responsible for that and eventually not only fix the root cause but also add a cleanup .npk like they did back in the days (but that one was removing one particular file so even if it still worked, it would not resolve the current issue), so that devices could be fixed without physically touching them.