Page 1 of 1

v7.1beta4 [bug] export hangs / slow

Posted: Sun Feb 14, 2021 12:23 pm
by wiresnarg
Hi,

I thought I'd break out the bug reports from the v71beta4 release announcement [1] to a separate topic.
Please leave a comment if this topic is a duplicate and accept my apologies.

Several users have reported in [1] that export hangs or is slow. I can confirm this behaviour.
At the same time, I noticed that a verbose export does not suffer from this performance issue.

Since the default export is compact [2] I assume that the filtering for non-default configurations may be the culprit.

The flag terse has no performance impact.

I also noticed that
/system/backup/save dont-encrypt=yes name=foo
is even faster than any export.

Can anyone reproduce my experience?

Kind regards

[1] viewtopic.php?p=843702
[2] https://wiki.mikrotik.com/wiki/Manual:C ... act_Export

Re: v7.1beta4 [bug] export hangs / slow  [SOLVED]

Posted: Sun Feb 14, 2021 12:53 pm
by mkx
I also noticed that
/system/backup/save dont-encrypt=yes name=foo
is even faster than any export.

ROS v6 is like this as well and it's easy to explain: backup file is a mere a collection of binary configuration, I guess a combination of memory dumps (or may be not) and pre-existing binary configuration files and backup process simply collects them and packs them into single file. Export OTOH has to covert it to ASCII format and reorder stanzas so that they can be imported line-by-line to a empty-config device.
What is new in v7 is that exporter seemingly chokes on comparison of running config versus default config (verbose and terse don't do it) in certain sections. I'm pretty sure MT devs are aware of the problem given how simply it's replicated but solving it is probably not at the top of To-Do list.

Re: v7.1beta4 [bug] export hangs / slow

Posted: Sun Mar 07, 2021 3:52 pm
by tmcnulty1982
There is definitely a problem with "export" on 7.1beta4.

I see the following in the output of "export terse hide-sensitive": "#error exporting /routing/filter/rule"

Sure enough, running "export" inside "/routing/filter/rule" hangs for a long time (multiple minutes). Adding "verbose" to that makes it return immediately, but I don't really want a verbose export.

This is on a WAP ac with the default configuration. There is nothing (that I can see, at least) in /routing/filter/rule to export.

I hope this helps.

Re: v7.1beta4 [bug] export hangs / slow

Posted: Sun Mar 07, 2021 5:40 pm
by infabo
This bug seems to be fixed in 7.1 beta5.

Re: v7.1beta4 [bug] export hangs / slow

Posted: Mon Mar 08, 2021 5:37 am
by arm920t
This bug seems to be fixed in 7.1 beta5.
How do you know that?

Re: v7.1beta4 [bug] export hangs / slow

Posted: Mon Mar 08, 2021 3:14 pm
by infabo
Received it after reporting another issue.

Re: v7.1beta4 [bug] export hangs / slow

Posted: Mon Mar 08, 2021 10:32 pm
by Jotne
You can use
/export verbose
Works, but may give you to much :)

Re: v7.1beta4 [bug] export hangs / slow

Posted: Mon Mar 08, 2021 11:41 pm
by Cablenut9
This bug seems to be fixed in 7.1 beta5.
We need beta5 now!