Community discussions

MikroTik App
just joined
Topic Author
Posts: 1
Joined: Mon Feb 12, 2018 4:44 pm

Action timed out during script execution

Mon Feb 12, 2018 5:01 pm


i am trying to automate setting up CRS326 with a script. It is working well except where the script is signing certificates (key-size=4096), when it takes too long the script does stop with "action timed out - try again, if error continues contact MikroTik support and send a supout file (13)".
How can i raise the timeout or execute the script in a way that waits until the command is actually finished?
just joined
Posts: 8
Joined: Tue May 07, 2019 2:44 am

Re: Action timed out during script execution

Fri Jun 25, 2021 8:03 am

I know this is very old but I've run into exactly the same issue.

This is not the smartest way to deal with it but at least it works enough for the script to continue. You may need to increase the delay depending on what device you have.
/certificate add name=hello copy-from=client-template common-name=hello@somewhere.example

:do {
  /certificate sign [find name=hello] ca=CA name=hello
} on-error={ :log warning "waiting for cert to generate"; :delay 120 }
A smarter way would be a delay inside a loop that checks if the cert is signed yet.
Last edited by SumNathan on Mon Jun 28, 2021 2:43 am, edited 1 time in total.
User avatar
Forum Guru
Forum Guru
Posts: 5768
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: Action timed out during script execution

Fri Jun 25, 2021 2:54 pm

Please consider the correct use of this forum and do not quote if is it not necessary,
use "post reply" button.

Who is online

Users browsing this forum: No registered users and 37 guests