You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@predictionio.apache.org by Jenna Kwon <ji...@gmail.com> on 2016/09/13 04:13:09 UTC

Event server binding failure

When I view localhost:7000 on my browser, I get
{'status' : 'alive'}.

However, on the command line, I am getting a message that the binding
fails. Message is pasted below.

[INFO] [Console$] Creating Event Server at 0.0.0.0:7070

[WARN] [HttpListener] Bind to /0.0.0.0:7070 failed

[ERROR] [EventServerActor] Command failed.
I am not sure why this message occurs - is my event server working? If not,
how may I remedy this error?

Best Regards,
Jenna Kwon
-- 
Jenna Kwon
B.S. Computer Science '17| Georgia Institute of Technology
Denning Technology and Management Scholar
GT Tennis Club | GT Trailblazers
www.jennakwon.com
(541)908-2963

Re: Event server binding failure

Posted by Jenna Kwon <ji...@gmail.com>.
I am also getting this error while posting data to the event server. Could
this be because of the binding failure?


Errno::ECONNREFUSED (Connection refused - connect(2)):


/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:878:in
`initialize'


/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:878:in
`open'


/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:878:in
`block in connect'


/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:52:in
`timeout'


/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:877:in
`connect'


/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:862:in
`do_start'


/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:851:in
`start'


/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:582:in
`start'

  predictionio (0.9.0) lib/predictionio/connection.rb:25:in `block (2
levels) in initialize'



On Tue, Sep 13, 2016 at 12:13 AM, Jenna Kwon <ji...@gmail.com> wrote:

> When I view localhost:7000 on my browser, I get
> {'status' : 'alive'}.
>
> However, on the command line, I am getting a message that the binding
> fails. Message is pasted below.
>
> [INFO] [Console$] Creating Event Server at 0.0.0.0:7070
>
> [WARN] [HttpListener] Bind to /0.0.0.0:7070 failed
>
> [ERROR] [EventServerActor] Command failed.
> I am not sure why this message occurs - is my event server working? If
> not, how may I remedy this error?
>
> Best Regards,
> Jenna Kwon
> --
> Jenna Kwon
> B.S. Computer Science '17| Georgia Institute of Technology
> Denning Technology and Management Scholar
> GT Tennis Club | GT Trailblazers
> www.jennakwon.com
> (541)908-2963
>



-- 
Jenna Kwon
B.S. Computer Science '17| Georgia Institute of Technology
Denning Technology and Management Scholar
GT Tennis Club | GT Trailblazers
www.jennakwon.com
(541)908-2963

Re: Event server binding failure

Posted by Chan Lee <ch...@gmail.com>.
Yes I'd try killing the process using port 7070 and restarting eventserver.
If you want to bind to a different port, say 7000, you can do so by `pio
eventserver --port 7000`. You can also view more detailed logs by running
`pio eventserver --verbose`. Hope this helps.

Chan

On Mon, Sep 12, 2016 at 10:17 PM, Tom Chan <yu...@gmail.com> wrote:

> Oh I take it back. There might be another process using port 7070 so it
> cannot bind?
>
> On Mon, Sep 12, 2016 at 10:15 PM, Tom Chan <yu...@gmail.com> wrote:
>
>> It should be fine as you see "{'status': 'alive'}" and you're pinging
>> port 7070
>>
>> Tom
>>
>> On Mon, Sep 12, 2016 at 9:13 PM, Jenna Kwon <ji...@gmail.com> wrote:
>>
>>> When I view localhost:7000 on my browser, I get
>>> {'status' : 'alive'}.
>>>
>>> However, on the command line, I am getting a message that the binding
>>> fails. Message is pasted below.
>>>
>>> [INFO] [Console$] Creating Event Server at 0.0.0.0:7070
>>>
>>> [WARN] [HttpListener] Bind to /0.0.0.0:7070 failed
>>>
>>> [ERROR] [EventServerActor] Command failed.
>>> I am not sure why this message occurs - is my event server working? If
>>> not, how may I remedy this error?
>>>
>>> Best Regards,
>>> Jenna Kwon
>>> --
>>> Jenna Kwon
>>> B.S. Computer Science '17| Georgia Institute of Technology
>>> Denning Technology and Management Scholar
>>> GT Tennis Club | GT Trailblazers
>>> www.jennakwon.com
>>> (541)908-2963
>>>
>>
>>
>

Re: Event server binding failure

Posted by Tom Chan <yu...@gmail.com>.
Oh I take it back. There might be another process using port 7070 so it
cannot bind?

On Mon, Sep 12, 2016 at 10:15 PM, Tom Chan <yu...@gmail.com> wrote:

> It should be fine as you see "{'status': 'alive'}" and you're pinging port
> 7070
>
> Tom
>
> On Mon, Sep 12, 2016 at 9:13 PM, Jenna Kwon <ji...@gmail.com> wrote:
>
>> When I view localhost:7000 on my browser, I get
>> {'status' : 'alive'}.
>>
>> However, on the command line, I am getting a message that the binding
>> fails. Message is pasted below.
>>
>> [INFO] [Console$] Creating Event Server at 0.0.0.0:7070
>>
>> [WARN] [HttpListener] Bind to /0.0.0.0:7070 failed
>>
>> [ERROR] [EventServerActor] Command failed.
>> I am not sure why this message occurs - is my event server working? If
>> not, how may I remedy this error?
>>
>> Best Regards,
>> Jenna Kwon
>> --
>> Jenna Kwon
>> B.S. Computer Science '17| Georgia Institute of Technology
>> Denning Technology and Management Scholar
>> GT Tennis Club | GT Trailblazers
>> www.jennakwon.com
>> (541)908-2963
>>
>
>

Re: Event server binding failure

Posted by Tom Chan <yu...@gmail.com>.
It should be fine as you see "{'status': 'alive'}" and you're pinging port
7070

Tom

On Mon, Sep 12, 2016 at 9:13 PM, Jenna Kwon <ji...@gmail.com> wrote:

> When I view localhost:7000 on my browser, I get
> {'status' : 'alive'}.
>
> However, on the command line, I am getting a message that the binding
> fails. Message is pasted below.
>
> [INFO] [Console$] Creating Event Server at 0.0.0.0:7070
>
> [WARN] [HttpListener] Bind to /0.0.0.0:7070 failed
>
> [ERROR] [EventServerActor] Command failed.
> I am not sure why this message occurs - is my event server working? If
> not, how may I remedy this error?
>
> Best Regards,
> Jenna Kwon
> --
> Jenna Kwon
> B.S. Computer Science '17| Georgia Institute of Technology
> Denning Technology and Management Scholar
> GT Tennis Club | GT Trailblazers
> www.jennakwon.com
> (541)908-2963
>