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

test - www-mechanize will fail & halt if 127.0.0.1 lo interface isn't available #253

Open
japharl opened this issue Aug 20, 2018 · 3 comments

Comments

@japharl
Copy link

japharl commented Aug 20, 2018

Weirdly, on one of the machines I use, the localhost ip assigned to lo isn't being assigned to 127.0.0.1. When running make test, the install will fail if 127.0.0.1 ip address is not available. Specifically, the t/local/referrer test will cause the machine to hang, after a can't connect to 127.0.0.1:(port) (Connection timed out) at t/local/referrer.t line 39. You may be able to use IO::Interface::Simple to check to see if the interface exists.

@oalders
Copy link
Member

oalders commented Aug 20, 2018

Thanks for catching this. I know there have been issues with hanging tests in the past. It looks like IO::Interface::Simple has a lot of test failures, though. Not sure what else might do the job.

@japharl
Copy link
Author

japharl commented Aug 20, 2018

Actually, it looks like HTTP::Daemon is dieing with an error (HTTP::Daemon Cannot assign requested address ... propagated at /root/.cpan/build/WWW-Mechanize-1.88-8/t/local/log-server line 14)... Guessing you could catch when that error is thrown and then if that fails just skip the test.

@jkeenan
Copy link

jkeenan commented Jul 3, 2023

Weirdly, on one of the machines I use, the localhost ip assigned to lo isn't being assigned to 127.0.0.1. When running make test, the install will fail if 127.0.0.1 ip address is not available. Specifically, the t/local/referrer test will cause the machine to hang, after a can't connect to 127.0.0.1:(port) (Connection timed out) at t/local/referrer.t line 39. You may be able to use IO::Interface::Simple to check to see if the interface exists.

Can you tell us whether this problem has cleared up now that there have been new CPAN releases of WWW-Mechanize and HTTP-Daemon?

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

3 participants