Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error propagated from upstream module #101

Closed
JJ opened this issue May 21, 2017 · 17 comments
Closed

Error propagated from upstream module #101

JJ opened this issue May 21, 2017 · 17 comments

Comments

@JJ
Copy link
Contributor

JJ commented May 21, 2017

I'm getting this error as I run pretty much every example or program:

Entering the development dance floor: http://0.0.0.0:3000
Nothing given for new socket to connect or bind to
  in method connect at /home/jmerelo/.rakudobrew/moar-2017.04.3/install/share/perl6/site/sources/100A1B43D02574570A9FA5343A0679EF35FBD229 (HTTP::Easy) line 33
  in method run at /home/jmerelo/.rakudobrew/moar-2017.04.3/install/share/perl6/site/sources/100A1B43D02574570A9FA5343A0679EF35FBD229 (HTTP::Easy) line 49
  in sub baile at /home/jmerelo/.rakudobrew/moar-2017.04.3/install/share/perl6/site/sources/D57520A5A045A33D405E36DAA759641E90C1FD99 (Bailador) line 113
  in block <unit> at echo.pl6 line 23

Actually thrown at:
  in method run at /home/jmerelo/.rakudobrew/moar-2017.04.3/install/share/perl6/site/sources/100A1B43D02574570A9FA5343A0679EF35FBD229 (HTTP::Easy) line 49
  in sub baile at /home/jmerelo/.rakudobrew/moar-2017.04.3/install/share/perl6/site/sources/D57520A5A045A33D405E36DAA759641E90C1FD99 (Bailador) line 113
  in block <unit> at echo.pl6 line 23

The port does not seem to be used. This was echo.pl6, BTW, but I'm getting the same error with other examples. Any idea?

@ufobat
Copy link
Member

ufobat commented May 21, 2017

it seems to work on my machine :-( which version of perl6 did you use? are your modules up to date? maybe this is related to the changes in IO.. i dont know, sorry

@JJ
Copy link
Contributor Author

JJ commented May 21, 2017

It might. I'm using moar-2017.04.3, freshly installed.

This is Rakudo version 2017.04.3 built on MoarVM version 2017.04-44-gf0db8822 implementing Perl 6.c.

@ufobat
Copy link
Member

ufobat commented May 21, 2017

i just switched to the current nom

┌─[martin@psyche] - [~/.workspace/p6/Bailador/examples] - [So Mai 21, 20:09]
└─[$] <git:(master*)> perl6 -v
This is Rakudo version 2017.05-16-g494659a built on MoarVM version 2017.05
implementing Perl 6.c.
┌─[martin@psyche] - [~/.workspace/p6/Bailador/examples] - [So Mai 21, 20:09]
└─[$] <git:(master*)> perl6 echo.pl6 
Entering the development dance floor: http://0.0.0.0:3000
[2017-05-21T18:09:46Z] Started HTTP server.
[2017-05-21T18:10:22Z] GET / HTTP/1.1

@JJ
Copy link
Contributor Author

JJ commented May 22, 2017

Same error, from a fresh download of Perl6 and Bailador:

$ perl6 examples/echo.pl6
Entering the development dance floor: http://0.0.0.0:3000
Nothing given for new socket to connect or bind to
  in method connect at /home/jmerelo/.rakudobrew/moar-2017.05/install/share/perl6/site/sources/100A1B43D02574570A9FA5343A0679EF35FBD229 (HTTP::Easy) line 33
  in method run at /home/jmerelo/.rakudobrew/moar-2017.05/install/share/perl6/site/sources/100A1B43D02574570A9FA5343A0679EF35FBD229 (HTTP::Easy) line 49
  in sub baile at /tmp/Bailador/lib/Bailador.pm (Bailador) line 113
  in block <unit> at examples/echo.pl6 line 23

Actually thrown at:
  in method run at /home/jmerelo/.rakudobrew/moar-2017.05/install/share/perl6/site/sources/100A1B43D02574570A9FA5343A0679EF35FBD229 (HTTP::Easy) line 49
  in sub baile at /tmp/Bailador/lib/Bailador.pm (Bailador) line 113
  in block <unit> at examples/echo.pl6 line 23

This is:

Linux penny 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:45:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

@JJ
Copy link
Contributor Author

JJ commented May 22, 2017

It works without a glitch in my laptop, which is Ubuntu 16:04 and an older version of rakudobrew. Quite clearly the problem is upstream, but I can't figure out where it could be...

@zoffixznet
Copy link
Contributor

zoffixznet commented May 22, 2017

Can't repro the problem on 2017.04.3. I suspect it's your perms/firewall. Try changing host to localhost instead of 0.0.0.0 and it'll work, I bet.

(I'm also getting a bunch of test failures on 2017.05-15-g81221c5, but when I look zef Bailador and run the echo example it works; sent a PR)

@JJ
Copy link
Contributor Author

JJ commented May 23, 2017 via email

JJ added a commit to JJ/Bailador that referenced this issue May 23, 2017
In fact, `HTTP::Easy::PSGI` already uses 0.0.0.0 as default, so this
at least does not add unneeded variable. Another alternative would be
to add another variable to `baile`.

It still does not make Bailador#101 work, but at least I found out a bit more
about the underlying structures.
@szabgab
Copy link
Member

szabgab commented Jun 21, 2017

Just wondering, have you tried netcat -l 3000 and then browse to port 3000 ?

@JJ
Copy link
Contributor Author

JJ commented Jun 21, 2017

don't think it will help, but will give it a try :-)

@szabgab
Copy link
Member

szabgab commented Aug 1, 2017

I think we can close this as we are not able to reproduce this and this only happened on a single machine.

@szabgab szabgab closed this as completed Aug 1, 2017
@JJ
Copy link
Contributor Author

JJ commented Aug 1, 2017 via email

@JJ
Copy link
Contributor Author

JJ commented Dec 16, 2017

I am having this same problem again, and now I think I can pinpoint its origin. Here's the error:

Entering the dance floor: http://127.0.0.1:3000
Nothing given for new socket to connect or bind to. Invalid arguments to .new?
  in method connect at /home/jmerelo/.rakudobrew/moar-2017.11/install/share/perl6/site/sources/100A1B43D02574570A9FA5343A0679EF35FBD229 (HTTP::Easy) line 33
  in method run at /home/jmerelo/.rakudobrew/moar-2017.11/install/share/perl6/site/sources/100A1B43D02574570A9FA5343A0679EF35FBD229 (HTTP::Easy) line 49
  in method run at /home/jmerelo/.rakudobrew/moar-2017.11/install/share/perl6/site/sources/83CE580AD413E9CC8EEE0A7D52D47B98F511402C (Bailador::Command::easy) line 19
  in method baile at /home/jmerelo/.rakudobrew/moar-2017.11/install/share/perl6/site/sources/341F58F51C05C5B62B7CB9E146D9ECB7B2C07627 (Bailador::App) line 293
  in method baile at /home/jmerelo/.rakudobrew/moar-2017.11/install/share/perl6/site/sources/341F58F51C05C5B62B7CB9E146D9ECB7B2C07627 (Bailador::App) line 278
  in sub baile at /home/jmerelo/.rakudobrew/moar-2017.11/install/share/perl6/site/sources/E4F1DE76384365C6C75A4B00288F52887460CE7F (Bailador) line 161
  in block <unit> at status.p6 line 8

The problem is now in an upstream module, which I also patched: raku-community-modules/FastCGI#5 and this PR: raku-community-modules/FastCGI#7 I am not sure you are using this module, but I'm pretty sure the problem is the same, the change in interface of a core module.

It might need to wait for a new release, or I don't know why it's propagated down to Bailador. If I find the way to patch it I will help.

@JJ JJ changed the title Error in examples Error propagated from upstream module Dec 16, 2017
@JJ
Copy link
Contributor Author

JJ commented Dec 16, 2017

I have made a pull request to HTTP::Easy raku-community-modules/HTTP-Easy#38 When accepted, it should fix this problem here.

@ufobat
Copy link
Member

ufobat commented Dec 16, 2017

Awesome. Thanks for your help

@JJ
Copy link
Contributor Author

JJ commented Dec 16, 2017

👍

@ufobat
Copy link
Member

ufobat commented Dec 18, 2017

PR is merged,

@JJ
Copy link
Contributor Author

JJ commented Dec 18, 2017

I have tested Bailador with this change and it works pretty well. Give it a try :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants