TypError and Crash while connecting from WebGUI

73 views
Skip to first unread message

Janosch Klein

unread,
Apr 11, 2015, 2:05:34 PM4/11/15
to openflo...@googlegroups.com
I'm trying to get started with mininet, floodlight and avior but actually I'm facing a problem.

After selecting floodlight from the WebGUI and entering the login (admin/admin) avior crashes with the following error:

~/downloads/avior-service/api/adapters/FloodlightAdapter.js:501
   
if(innerArr.constructor === Array && innerArr.length > 1){
             
^
TypeError: Cannot read property 'constructor' of undefined
    at
Object.module.exports.dpidParse (/home/mininet/downloads/avior-service/api/adapters/FloodlightAdapter.js:501:15)
    at
IncomingMessage.<anonymous> (/home/mininet/downloads/avior-service/toClient.js:179:54)
    at
IncomingMessage.emit (events.js:117:20)
    at _stream_readable
.js:944:16
    at process
._tickDomainCallback (node.js:492:13)

I've installed Avior like suggested here.

System: Ubuntu-Server 64-bit 14.04.2
Floodlight-Version: 1.0
sails-Version: 0.11.0


Any ideas?
Best regards
Janosch

Melissa Iori

unread,
Apr 15, 2015, 11:33:57 PM4/15/15
to openflo...@googlegroups.com
Hi Janosch,

Thank you for your interest in Avior. We keep updating Avior to keep pace with the latest builds of the Floodlight controller. The error you saw comes from some of that updated code that uses certain new Floodlight objects. Probably you would just need to use the very latest version of Floodlight.

Solution 1: An alternate solution rather than updating Floodlight would be to simply rollback to an earlier version of Avior that works with an older Floodlight build. From this point (this is Avior before we changed the API code, so it may work if you have an older build of Floodlight) you can click "Download .zip" on the right side and just run that version of Avior. You may find this option to be easier.

Solution 2: You could try building Floodlight from source from here, which will ensure that you have the latest version, and run that with Mininet. Directions for doing so are here. (Don't forget to stop the old instance of Floodlight that is running before you run the brand new instance, as there could be a conflict there. Mininet should also be interacting with the new instance.) I apologize for the inconvenience, as I've said Avior is constantly being updated. 

So in short, either try the old version of Avior, or the newest build of Floodlight. I would say Solution 1 would be the easier one if you don't wish to update Floodlight at this time. Good luck,

-Melissa Iori

Janosch

unread,
Apr 26, 2015, 4:21:12 PM4/26/15
to openflo...@googlegroups.com
Hello Melissa,

Thanks for your responds.
I've tried both of your suggestion, but had problems with them.
With option one there are a major functions, such as the FloodManager,
are not working well.
And with the second solution the first problem still exists.
But don't bother about finding a prober solution, I'm no used the
functions that come with floodligth itself.

Kind regards
Janosch

On 16.04.2015 05:33, Melissa Iori wrote:
> Hi Janosch,
>
> Thank you for your interest in Avior. We keep updating Avior to keep
> pace with the latest builds of the Floodlight controller. The error you
> saw comes from some of that updated code that uses certain new
> Floodlight objects. Probably you would just need to use the very latest
> version of Floodlight.
>
> Solution 1: An alternate solution rather than updating Floodlight would
> be to simply rollback to an earlier version of Avior that works with an
> older Floodlight build. From this point
> <https://github.com/1PhoenixM/avior-service/tree/f7b266fd4c66a8e0e42ceccaed3508c6ddfb5371> (this
> is Avior before we changed the API code, so it may work if you have an
> older build of Floodlight) you can click "Download .zip" on the right
> side and just run that version of Avior. You may find this option to be
> easier.
>
> Solution 2: You could try building Floodlight from source from here
> <https://github.com/floodlight/floodlight>, which will ensure that you
> have the latest version, and run that with Mininet. Directions for doing
> so are here
> <http://www.openflowhub.org/display/floodlightcontroller/Installation+Guide>.
> (Don't forget to stop the old instance of Floodlight that is running
> before you run the brand new instance, as there could be a conflict
> there. Mininet should also be interacting with the new instance.) I
> apologize for the inconvenience, as I've said Avior is constantly being
> updated.
>
> So in short, either try the old version of Avior, or the newest build of
> Floodlight. I would say Solution 1 would be the easier one if you don't
> wish to update Floodlight at this time. Good luck,
>
> -Melissa Iori
>
>
> On Saturday, April 11, 2015 at 2:05:34 PM UTC-4, Janosch Klein wrote:
>
> I'm trying to get started with mininet, floodlight and avior but
> actually I'm facing a problem.
>
> After selecting floodlight from the WebGUI and entering the login
> (admin/admin) avior crashes with the following error:
>
> |
> ~/downloads/avior-service/api/adapters/FloodlightAdapter.js:501
> if(innerArr.constructor ===Array&&innerArr.length >1){
> ^
> TypeError:Cannotread property 'constructor'of undefined
> at Object.module.exports.dpidParse
> (/home/mininet/downloads/avior-service/api/adapters/FloodlightAdapter.js:501:15)
> at
> IncomingMessage.<anonymous>(/home/mininet/downloads/avior-service/toClient.js:179:54)
> at IncomingMessage.emit (events.js:117:20)
> at _stream_readable.js:944:16
> at process._tickDomainCallback (node.js:492:13)
> |
>
> I've installed Avior like suggested here
> <https://github.com/1PhoenixM/avior-service>.
>
> System: Ubuntu-Server 64-bit 14.04.2
> Floodlight-Version: 1.0
> sails-Version: 0.11.0
>
>
> Any ideas?
> Best regards
> Janosch
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Marist OpenFlow" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/openflow-marist/5q_KdCqwfcE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> openflow-mari...@googlegroups.com
> <mailto:openflow-mari...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages