Community discussions

MikroTik App
 
reverged
Member Candidate
Member Candidate
Topic Author
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

SwOS Web interface error

Sun Sep 12, 2010 8:58 pm

I have 2 RB-250's. Both have been up for around 2 days.

Just now, I tried to look at the hosts tab and got this error on both switches:

INTERNAL ERROR:SyntaxError: missing ] after element list-missing ] after element list.

That is the only text displayed in the browser under the Hosts tab.
I am using Firefox 3.6.9, if that matters. Firebug reports no errors for the page.
 
kirshteins
MikroTik Support
MikroTik Support
Posts: 592
Joined: Tue Dec 02, 2008 10:55 am

Re: SwOS Web interface error

Mon Sep 13, 2010 8:45 am

Is host table contents displayed properly? When this error occurs, please, save it as "Web Page, complete" and send those files to support@mikrotik.com
 
reverged
Member Candidate
Member Candidate
Topic Author
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: SwOS Web interface error

Mon Sep 13, 2010 9:21 pm

I have sent the files by email and put this subject number in the email subject.

The page displays OK, but no, there are no hosts listed, just blank space.
Page source is here:
<head><style type="text/css">* {font-family: verdana, arial, helvetica, sans-serif;font-size: 11px;}h1 {font-size: 20px;font-weight: inherit;}#logo {text-align: right;font-weight: bold;font-size: 20px;letter-spacing: -1px;margin: 0px 4px 4px 0px;color: #e5e5e5;text-shadow: #000000 1px 1px;_color: #808080; /* only IEv6 does not ignore this */}#logbar {float: right;margin: 4px 0 4px 4px;}#tabs {display: block;text-align: left;margin: 1em 0 1em 0;border-bottom: 2px ridge #e0e0e0;list-style-type: none;padding: 3px 10px 3px 10px;}#tabs li {display: inline;margin: 0 1px;}#tabs li.active {border-bottom: 2px solid #ffffff;}#tabs li.active a {border-top-color: #e0e0e0;border-left-color: #e0e0e0;background-color: #ffffff;position: relative;top: 2px;padding-top: 4px;font-weight: bold;border-bottom: none;}#tabs a {padding: 3px 4px;border-top-color: #f0f0f0;border-left-color: #f0f0f0;border-right-color: #808080;border-width: 2px;border-style: solid;border-bottom: 2px ridge #e0e0e0;background-color: #d0d0d0;color: #000;text-decoration: none;font-size: 12px;}#tabs a:hover {background: #e0e0e0;}#tabs a:active {background: #e0e0e0;border: 2px inset #000000;}#tabs a:focus {-moz-outline: none;}.table tr.interlive:nth-child(even) {background: #f5f5f5;}.table tbody.interlive:nth-child(even) {background: #f5f5f5;}.table th {font-weight: bold;text-align: right;padding: 4px 16px 4px 4px;border-bottom: 1px solid #d7d7d7;}.table thead th {text-align: left;border-bottom: 1px solid #d7d7d7;border-top: 1px solid #d7d7d7;}.table th.cat {text-align: left;padding: 12px 4px 4px 4px;border-bottom: 2px groove #d7d7d7;border-top: 0px;margin: 0 0 2px 0;}.table td {text-align: left;border-bottom: 1px solid #d7d7d7;padding: 4px 4px 4px 4px;color: #404040;}.table td.btns {padding: 8px 0;border: none;text-align: right;}.list hr {border: none;margin: 0 0 1em 0;}.list tr.match {background: #f5f5f5;}.list tr.act {background: #e5e5e5;}.list td.lbl {text-align: right;}.list td {padding: 1px;}span.spacer {float: right;padding: 4px;}a.btn {float: right;border-top-color: #d0d0d0;border-left-color: #d0d0d0;border-bottom-color: #606060;border-right-color: #606060;border-style: solid;border-width: 2px;padding: 2px 4px;margin: 0 0 0 4px;font-size: 10px;letter-spacing: -1px;text-decoration: none;color: #000000;background: #e0e0e0;cursor: pointer; cursor: hand;}a.btn:hover {background: #c0c0c0;}a.btn:active {background: #c0c0c0;border: 2px inset #000000;}a.disbtn {float: right;border: 2px solid #b0b0b0;padding: 2px 2px;margin: 0 0 0 4px;font-size: 10px;letter-spacing: -1px;text-decoration: none;color: #808080;background: #e0e0e0;}input.error {color: #ff0000;}#status {width: 100%;border-bottom: 1px solid #e0e0e0;margin: 0 0 1.5em 0;color: #c0c0c0;}#status.error {color: #ff0000;}#status.important {font-style: italic;color: #ff0000;}#status.progress {font-style: italic;}#status.notify {color: #819aa7;}</style><script type="text/javascript" src="engine.js"></script><body onload="onloaded();"><div id="logo">MikroTik SwOS</div><a class="btn" id="logout" onclick="logout()">Logout</a><a class="btn" id="login" style="display:none" onclick="login()">Login</a><ul id="tabs"></ul><div id="status" class="progress">Loading...</div><div id="content"></div><iframe id="hf" src="iframe.html" style="display:none"></iframe></body>
 
cafebug
just joined
Posts: 8
Joined: Tue Sep 14, 2010 7:38 am

Re: SwOS Web interface error

Wed Sep 15, 2010 10:06 am

Well... I got "INTERNAL ERROR:[object Error]-Expected ']'" in "Host" tab, my RB250GS is up for 21 days.
 
kirshteins
MikroTik Support
MikroTik Support
Posts: 592
Joined: Tue Dec 02, 2008 10:55 am

Re: SwOS Web interface error

Wed Sep 15, 2010 1:24 pm

Does this problem occur when using any other web browser than Firefox 3.6.9?
 
cafebug
just joined
Posts: 8
Joined: Tue Sep 14, 2010 7:38 am

Re: SwOS Web interface error

Wed Sep 15, 2010 6:16 pm

Does this problem occur when using any other web browser than Firefox 3.6.9?
I use Chrome, Firefox and IE to login the web management page(v.1.2), they have different error message on the "Host" tab:

Chrome v7.0.517 : ERROR:Lost Connection
Firefox v3.6.7 or v.4.0 beta : INTERNAL ERROR:SyntaxError: missing ] after element list-missing ] after element list
IE v8.x: INTERNAL ERROR:[object Error]-Expected ']'

Really weird...
 
reverged
Member Candidate
Member Candidate
Topic Author
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: SwOS Web interface error

Wed Sep 15, 2010 8:18 pm

Using Firebug, I looked at the response to the ajax get to !dhost.b.
This is the response on one of my switches (mac addresses translated to 'xyz'):
[{adr:'xyz',prt:0x01,drp:0x00,mir:0x00},{adr:'xyz',prt:0x10,drp:0x00,mir:0x00},
{adr:'xyz',prt:0x01,drp:0x00,mir:0x00},{adr:'xyz',prt:0x01,drp:0x00,mir:0x00},
{adr:'xyz',prt:0x10,drp:0x00,mir:0x00},{adr:'xyz',prt:0x10,drp:0x00,mir:0x00},
...
...
...
...
{adr:'xyz',prt:0x10,drp:0x00,mir:0x00},{adr:'xyz',prt:0x10,drp:0x00,mir:0x00},
{adr:'xyz',prt:0x10,drp:0x00,mir:0x00},{adr:'xyz',prt:0x10,drp:0x00,mir:0x00},
{adr:'xyz',prt:0x10,drp:0x00,mir:0x00},{adr:'xyz',prt:0x10,drp:0x00,mir:0x00}
There is no closing ']' for the response.

The switch sends the data, but is simply missing the closing tag and the javascript doesn't like that.

What do I get for my hard work? 10 RouterOS licenses?
 
reverged
Member Candidate
Member Candidate
Topic Author
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: SwOS Web interface error

Wed Sep 15, 2010 8:48 pm

More information...

I repeatedly clicked 'Hosts' and then 'Static Hosts' and about 1 out of 10 times I get the 'Hosts' page complete.

When it fails, it is not sending all of the data, as the size when failing is 1,607 return bytes and when it works, the size is 1,896 return bytes.

Is there a timeout in the ajax request that is too short and times out if lots of hosts and therefore more data is returned?
I could look through the js, but.....

There are 39 hosts in my hosts table, if that matters.

I am 3,000 miles away from the switch and so my connection times are high, if that matters.
I asked someone local to the switch to test and they have no problem displaying the hosts table, so it would appear to be a timing issue.

I think I have earned 20 RouterOS licenses.
 
reverged
Member Candidate
Member Candidate
Topic Author
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: SwOS Web interface error

Wed Sep 15, 2010 9:07 pm

I suppose I should wait to post until AFTER completing my fact finding......

I did a simple get using a browser to http://<IP>:<PORT>/!dhost.b
The switch is behind an RB450G, so I have it dstnat'd.

When it works, I get the complete data, when it fails, I can briefly see the data in my browser and then ff reports the connection was reset.

If I earn 30 RouterOS licenses I'll do a packet capture of the entire process.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 27129
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: SwOS Web interface error

Thu Sep 16, 2010 10:13 am

We can give you 30 SwOS licenses :) But you won't be able to use them, because SwOS is free of charge on all RouterBOARD switch products.
 
reverged
Member Candidate
Member Candidate
Topic Author
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: SwOS Web interface error

Thu Sep 16, 2010 6:48 pm

We can give you 30 SwOS licenses :) But you won't be able to use them, because SwOS is free of charge on all RouterBOARD switch products.
Don't you mean to say: "You won't be able to use them due to all these problems?" ;)


OUCH....that hurts.

Seriously, does anyone want me to packet capture this?
I'll do it for karma and 1 RouterOS license.....final offer. 8)
 
log
Member Candidate
Member Candidate
Posts: 105
Joined: Fri May 28, 2010 11:37 am

Re: SwOS Web interface error

Mon Oct 04, 2010 4:33 pm

I have that same, any ideas?
Power off didnt help.
 
log
Member Candidate
Member Candidate
Posts: 105
Joined: Fri May 28, 2010 11:37 am

Re: SwOS Web interface error

Wed Oct 06, 2010 1:07 pm

I dont get it, it works now.
 
reverged
Member Candidate
Member Candidate
Topic Author
Posts: 270
Joined: Thu Nov 12, 2009 8:30 am

Re: SwOS Web interface error

Thu Oct 07, 2010 2:52 am

MT repaired your switch remotely!

I have seen this come and go and it seems to depend on the length of the hosts table and the data transfer delay between the browser and switch.

If the hosts table is short and you are only a few hops away, no problem.

If the hosts table is long and you are 20 hops away - problem.

I didn't debug any further than that as I wasn't able to convince anyone to give me 20 ROS licenses....
 
stevethegreek
just joined
Posts: 7
Joined: Tue Oct 19, 2010 12:35 pm

Re: SwOS Web interface error

Tue Oct 19, 2010 1:01 pm

New SwOS user here.

Just to say I have the same issue.

The following diags may or may not help...

If I connect over multiple hops directly to the RB250, I get the "Connection Lost" error.

If I ssh to a linux machine on the same subnet as the RB250 and setup a tunnel to port 80 on the RB250, so that the http connection is browser->localhost->tunnel->linux->rb250, then all is well.
 
User avatar
zervan
Member
Member
Posts: 329
Joined: Fri Aug 20, 2010 10:43 pm
Location: Slovakia
Contact:

Re: SwOS Web interface error

Thu Nov 18, 2010 3:49 pm

I have the same problem on SwOS 1.2 (Hosts page):
INTERNAL ERROR:SyntaxError: at index 3073: syntax error-at index 3073: syntax error
Listing is working few seconds after reboot well, but later:
[*] sometimes it seems not to be complete (there is not my own PC's MAC on the list nor the other addresses that I am pinging);
[*] sometimes the error is displayed (the above or some other - for example "INTERNAL ERROR:SyntaxError: missing ] after element list-missing ] after element list");
[*] often there are some MAC addresses without marked port number.

There are about 100 computers connected to port 1 and only one on other ports. Maybe the problem is appearing only with so big count of MAC addresses?

Sometimes switch started to block everything - I could ping only to switch alone and no other device on other port.

And I also dislike that port numbers written on the switch case are opposite order with port numbers on web interface (port 5 is port 1 etc.)
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6704
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: SwOS Web interface error

Fri Nov 19, 2010 8:12 am

Thank you very much for the reports.
We were able to reproduce the problem, we will try to fix it shortly.
 
log
Member Candidate
Member Candidate
Posts: 105
Joined: Fri May 28, 2010 11:37 am

Re: SwOS Web interface error

Fri Nov 19, 2010 9:23 pm

And I also dislike that port numbers written on the switch case are opposite order with port numbers on web interface (port 5 is port 1 etc.)
I disagree with you, port numbers are ok (i checked fw version 1.0 and 1.2).
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6704
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: SwOS Web interface error

Tue Nov 23, 2010 4:12 pm

reverged and others.

Which OS are you using and browsers?
I'm able to reproduce problem on MACOS with any browser, however it is fine on Windows/Linux.
Anyway we are working on the issue.
 
log
Member Candidate
Member Candidate
Posts: 105
Joined: Fri May 28, 2010 11:37 am

Re: SwOS Web interface error

Tue Nov 23, 2010 8:42 pm

reverged and others.

Which OS are you using and browsers?
I'm able to reproduce problem on MACOS with any browser, however it is fine on Windows/Linux.
Anyway we are working on the issue.
Windos XP SP3, firefox 3.6.12 and IE 7.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6704
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: SwOS Web interface error

Wed Dec 01, 2010 2:02 pm

Thank you very much for your reports and feedbacks!
We have fixed the problem, the fix will be available in the next SwOS version.