Community discussions

MikroTik App
 
User avatar
Jotne
Forum Guru
Forum Guru
Topic Author
Posts: 3297
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Debug script error???

Fri Sep 02, 2022 10:30 pm

When RouterOS (7.2.3) logs this type of errors:
script error: error - contact MikroTik support and send a supout file (10)
how to find out what is wrong?

If you you have many scripts, warning should at least give what script name that fail. Even better, what line number.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Debug script error???

Sat Sep 03, 2022 4:02 am

When the script is compiled, are lost all lines references and script name on executed code.
for example:
:put "line 1"
:put "line 2"
are converted before run to

compiled code

(eval /putmessage=line 1);(eval /putmessage=line 2)
But the "line 1" and "line 2" is only on text I put on... put
 
User avatar
Jotne
Forum Guru
Forum Guru
Topic Author
Posts: 3297
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Debug script error???

Sat Sep 03, 2022 8:10 am

But why not show what failed?
(eval /putmessage=line 2) Failed
 
User avatar
Jotne
Forum Guru
Forum Guru
Topic Author
Posts: 3297
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Debug script error???

Sat Sep 03, 2022 8:35 am

It seems to not be one specific script. All the script running gives it data. Router may run out of memory (95% used) or an other bug. Since I am far away from this router at the moment and I do not see other problems, I will wait with reboot/upgrade from 7.2.3. (Waiting for 7.x.2, 7.5.2 or 7.6.2 etc)

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], tarfox and 169 guests