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

* PRNG seeding failed #1268

Closed
simonmorley opened this Issue Feb 18, 2017 · 11 comments

Comments

Projects
None yet
4 participants
@simonmorley

simonmorley commented Feb 18, 2017

Running libcurl on LEDE master - libcurl version 7.52.1-2

We're seeing the following error:

* PRNG seeding failed

I've narrowed this down to this:

   curl_formadd(&post, &last, CURLFORM_COPYNAME, "data",
   CURLFORM_FILE, options.archive, CURLFORM_END);

If I remove the formadd - the request works. I don't see why it's failing here or why all other requests work.

@jay jay added HTTP SSL/TLS labels Feb 18, 2017

@jay

This comment has been minimized.

Member

jay commented Feb 18, 2017

That's because random number generation is used to make a unique hash for the form boundary. What is the curl_version()? There were two fixes after 7.52.1 that may have fixed the issue, 807698d and afd1564. I suggest you build from the repo master and let us know if you can still reproduce.

@simonmorley

This comment has been minimized.

simonmorley commented Feb 18, 2017

OK cool, I'll recompile and update when I've progressed.

@simonmorley

This comment has been minimized.

simonmorley commented Feb 19, 2017

Missed your note about curl version:

curl - 7.52.1-2 - A client-side URL transfer utility
libcurl - 7.52.1-2 - A client-side URL transfer library

To get it merged into LEDE, I'll need a version number though...

https://github.com/lede-project/source/blob/master/package/network/utils/curl/Makefile#L11

@jay

This comment has been minimized.

Member

jay commented Feb 19, 2017

Just test with the repo master, and let us know. There is a release in a few days 7.53.0 so conceivably you could use that, assuming the issue was already fixed.

@bagder

This comment has been minimized.

Member

bagder commented Feb 20, 2017

Also relevant to this issue is what TLS backend you used when you saw this problem?

@bagder

This comment has been minimized.

Member

bagder commented Mar 5, 2017

@simonmorley can we close this?

@simonmorley

This comment has been minimized.

simonmorley commented Mar 7, 2017

Haven't built yet, will try later today with 7.53.0

@vosmani

This comment has been minimized.

vosmani commented Mar 27, 2017

Any updates on this? Have tried with the version below and still the same problem (curl: (27) PRNG seeding failed)

curl 7.53.1 (mipsel-openwrt-linux-gnu) libcurl/7.52.1 mbedTLS/2.4.0
Protocols: file ftp ftps http https
Features: IPv6 Largefile SSL
@jay

This comment has been minimized.

Member

jay commented Mar 27, 2017

libcurl/7.52.1 mbedTLS/2.4.0

As noted there were two fixes after 7.52.1 for this issue. You are using curl 7.53.1 but it is using an older version of the library which is uncommon, usually they are the same. Likely an older shared library is being loaded, run ldd to confirm

@simonmorley

This comment has been minimized.

simonmorley commented Mar 27, 2017

I believe the update fixed this for us.

@jay

This comment has been minimized.

Member

jay commented Mar 27, 2017

I believe the update fixed this for us.

Great, thanks for letting us know.

@jay jay closed this Mar 27, 2017

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.