[Solved] Mikrotik Unable to download backup

Unimus support forum
Post Reply
kometchtech
Posts: 3
Joined: Sat Jan 13, 2018 9:21 am
Location: Japan
Contact:

Sat Jan 13, 2018 9:27 am

Hello,

I am using 1.5.0.
When I connect to Mikrotik CCR 1009-8G-1S-1S+ with SSH (password) from unimus executed by jar on CentOS 7, the following error occurs.

Code: Select all

18:18:53.169 [backup-13] WARN net.unimus.core.drivers.vendors.mikrotik.MikrotikRosBackupDriver - Unable to download backup - 'Expect operation fails (timeout: 75000 ms) for matcher: regexp('[\[<].+\] > $')'!
The log of Latest failed job is output as follows.

Code: Select all

ssh_backup_download_failed
Is there any information that needs to be presented to solve this problem?

Best regards.
User avatar
Tomas
Posts: 1206
Joined: Sat Jun 25, 2016 12:33 pm

Sat Jan 13, 2018 12:10 pm

Hi,

How long does this MikroTik take to fully output "/export compact"?

From the log it seems it takes longer than 75 seconds.
Unimus default timeout for backup retrieval on non-pages platforms (like RouterOS) is 75 seconds.

We have a wiki article that shows how to adjust the timeouts:
https://wiki.unimus.net/display/UNPUB/C ... t+timeouts

You will need to find out how long it takes this router to output the config, and adjust the timeout accordingly.

Hope that helps!
kometchtech
Posts: 3
Joined: Sat Jan 13, 2018 9:21 am
Location: Japan
Contact:

Sat Jan 13, 2018 12:15 pm

Tomas wrote:
Sat Jan 13, 2018 12:10 pm
Hi,

How long does this MikroTik take to fully output "/export compact"?

From the log it seems it takes longer than 75 seconds.
Unimus default timeout for backup retrieval on non-pages platforms (like RouterOS) is 75 seconds.

We have a wiki article that shows how to adjust the timeouts:
https://wiki.unimus.net/display/UNPUB/C ... t+timeouts

You will need to find out how long it takes this router to output the config, and adjust the timeout accordingly.

Hope that helps!
Hello Tomas,

Thank you for your reply.

Thanks for commentary. Indeed, because the processing time when outputting is long, it is stuck in the Timeout parameter, is not it?
As I have taught you, I will try to change the setting related to Timeout.
If it still does not work, I will write it here again.

Best regards.
kometchtech
Posts: 3
Joined: Sat Jan 13, 2018 9:21 am
Location: Japan
Contact:

Sat Jan 13, 2018 12:54 pm

Hi,

As you taught me, when I modified the parameters related to Timeout, I got the backup successfully.

# When running in Jar, it was necessary to pass the option directly to the java command.

Best regards.
User avatar
Tomas
Posts: 1206
Joined: Sat Jun 25, 2016 12:33 pm

Sat Jan 13, 2018 1:04 pm

kometchtech wrote:
Sat Jan 13, 2018 12:54 pm
Hi,

As you taught me, when I modified the parameters related to Timeout, I got the backup successfully.

# When running in Jar, it was necessary to pass the option directly to the java command.

Best regards.
Glad to hear everything worked.

If you need any other help, just let us know.
Post Reply