Community discussions

MikroTik App
 
csr
just joined
Topic Author
Posts: 13
Joined: Thu Jan 09, 2014 1:07 pm

How to increase script execution timeout

Thu Mar 26, 2020 8:20 pm

How to increase script execution timeout?

When creating a certificate from a script, an error appears "action timed out - try again, if error continues contact MikroTik support and a supout file (13)"

In this case, the processor is loaded for some time and a certificate is created.
I have to re-run the script, disabling executed lines.

How can this problem be solved?
 
SumNathan
just joined
Posts: 8
Joined: Tue May 07, 2019 2:44 am

Re: How to increase script execution timeout

Fri Jun 25, 2021 8:21 am

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.

Who is online

Users browsing this forum: FoxWhite and 22 guests