Unable to open debugger port intellij

976 views
Skip to first unread message

anu meha

unread,
Sep 4, 2018, 12:34:49 AM9/4/18
to ONOS Developers
Hello Everyone. I am new to ONOS. I built ONOS using buck and created the template application as per wiki. 
I am trying to run the Sample PortStatistics Application using this template.
But I am not able to connect to the Intellij debugger.
I used the by default port 5005 but it says 'connection refused'.
But using $telnet localhost 5005 , I see that the connection is refused to the port.
So I tried another open port with LISTEN status and it throws error- "unable-to-open-debugger-port-intellij connection prematurely closed"

Kindly suggest me what changes to make in debug configuration or does it have anything to do with buck plugin.

Ray Milkey

unread,
Sep 4, 2018, 12:09:48 PM9/4/18
to anumeh...@gmail.com, onos...@onosproject.org
How are you launching ONOS? You have to modify the ONOS invocation to specify the debug options to allow this to work, it's not enabled by default.

--
You received this message because you are subscribed to the Google Groups "ONOS Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+u...@onosproject.org.
To post to this group, send email to onos...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-dev/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/580d9c52-5e6e-4fec-b22a-2fb474df9793%40onosproject.org.

anu meha

unread,
Sep 5, 2018, 5:39:45 AM9/5/18
to r...@opennetworking.org, onos...@onosproject.org
Hi, Thanks for replying

As per your suggestion I launched onos by
$buck test --debug
$buck run onos-local
$onos-localhost

Now I am able to connect to the localhost in Intellij with the message-  Connected to the target VM...
But it disconnects within a few seconds with message- Disconnected from the target VM

Is is how it is supposed to work? 

--
Regards
Anumeha
Message has been deleted

anu meha

unread,
Sep 6, 2018, 6:25:00 AM9/6/18
to ONOS Developers, r...@opennetworking.org
I tried building ONOS locally 
$ ./tools/build/onos-buck run onos-local -- clean debug.

The debugger is connected now.

Thanks 


On Wednesday, September 5, 2018 at 6:39:45 PM UTC+9, anu meha wrote:
Hi, Thanks for replying

As per your suggestion I launched onos by
$buck test --debug
$buck run onos-local
$onos-localhost

Now I am able to connect to the localhost in Intellij with the message-  Connected to the target VM...
But it disconnects within a few seconds with message- Disconnected from the target VM

Is is how it is supposed to work? 


On Wed, Sep 5, 2018 at 1:09 AM Ray Milkey <r...@opennetworking.org> wrote:
How are you launching ONOS? You have to modify the ONOS invocation to specify the debug options to allow this to work, it's not enabled by default.

On Mon, Sep 3, 2018 at 9:34 PM anu meha <anumeh...@gmail.com> wrote:
Hello Everyone. I am new to ONOS. I built ONOS using buck and created the template application as per wiki. 
I am trying to run the Sample PortStatistics Application using this template.
But I am not able to connect to the Intellij debugger.
I used the by default port 5005 but it says 'connection refused'.
But using $telnet localhost 5005 , I see that the connection is refused to the port.
So I tried another open port with LISTEN status and it throws error- "unable-to-open-debugger-port-intellij connection prematurely closed"

Kindly suggest me what changes to make in debug configuration or does it have anything to do with buck plugin.

--
You received this message because you are subscribed to the Google Groups "ONOS Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+unsubscribe@onosproject.org.


--
Regards
Anumeha
Reply all
Reply to author
Forward
0 new messages