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

/dev/random timeout (lack of entropy) causes misleading FailedConnectionException #348

Closed
Deewiant opened this issue Aug 31, 2015 · 5 comments

Comments

@Deewiant
Copy link

I was puzzled for a short while tonight when trying to install any package resulted in a long wait followed by a FailedConnectionException:

$ sudo aura -Ax aura-bin
aura >>= Determining dependencies...
aura >>= AUR Packages:
aura-bin

aura >>= Continue? [Y/n] Y
aura >>= Building `aura-bin` ...
aura: FailedConnectionException "aur4.archlinux.org" 443

An strace invocation later I found that the problem was actually a timeout on /dev/random, not aur4.archlinux.org. Adding entropy to the system pool fixed the issue.

A less misleading error message would be appreciated. Although a better solution overall would be to rely on /dev/urandom or preferably getrandom(2) instead of /dev/random.

This might be a library problem, in which case I apologize for not looking into it enough to determine which library is at fault...

@jcelliott
Copy link

I'm seeing the same issue here. Fixed after adding more entropy to the pool, but the error message wasn't very helpful.

@fosskers
Copy link
Owner

Aura uses wreq for HTTP calls and doesn't otherwise have any random elements. I imagine the dependance on /dev/random comes from encryption for https, which is unfortunately out of my control.

@anko
Copy link

anko commented Sep 25, 2015

Could one of you who has seen this happen raise the issue with wreq and ask for a better error?

@jcelliott
Copy link

haskell/wreq#75

@fosskers
Copy link
Owner

Thanks guys.

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