> Does anyone have information on this error? The cherokee server is running an ecommerce site and my client is greatly troubled by this issue. I can restart cherokee with a cron job periodically, but that really isn't a great fix.
Have you pulled the "bad certificate" to see whether it's pulling the default cert out sometimes, and serving the real one the rest of the time?
This would show one type of bug in the server whereas, if the certificate's getting corrupted as it's served, it might show something completely different.
S
_______________________________________________
Cherokee mailing list
Cher...@lists.octality.com
http://lists.octality.com/listinfo/cherokee
> [15/03/2010 18:20:43.129] (error) cryptor_libssl.c:340 - OpenSSL: cannot use
> certificate file '/etc/cherokee/ssl/bestbridalprices.pem':
> error:2606A074:engine routines:ENGINE_by_id:no such engine
> [15/03/2010 18:20:43.129] (critical) server.c:746 - cannot initialize TLS
> for 'www.bestbridalprices.com' virtual host
>
> Any ideas?
ldd on the libraries, binary. Might still prefer your old one.
Stefan
We'd need to find a way to reproduce the issue consistently. Once we had that, the potential fix shouldn't delay much.
> _______________________________________________
> Cherokee mailing list
> Cher...@lists.octality.com
> http://lists.octality.com/listinfo/cherokee
--
Octality
http://www.octality.com/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Op 22-03-10 23:53, Ryan McIntosh schreef:
> OK, I've compiled cherokee with -O0 and -g following Stefan's
> recommendations. I've also turned on --enable-trace and
> --enable-backtrace just in case, although I don't suspect it will show
> much based on the lack of errors in any log file so far.
>
> I've installed this on the production server and will await the failure
> - which can take hours or days. The only time I ever know it's failed
> is when a customer calls the client and he relays the info to me - by
> that time it's been broken for some time generally. Wish I knew how to
> duplicate this.
You could make something that monitors the connection. For example a
curl script with a timeout that writes a file. If the file is not
present, then your thing is broken.
Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEAREKAAYFAkup13gACgkQYH1+F2Rqwn0rTwCfRKBnc+FyX5eDtdsy6Hjp0gKn
VloAn1y2hjgS7UVN90/zMMdXunU3FMcf
=bnLN
-----END PGP SIGNATURE-----
> Unfortunately curl and wget connect just fine - the only https clients I have found that present an error are Firefox 3.0+ and chrome/chromium.
It may be related to keep-alive then. Neither curl, nor wget can use keep-alive between independent invocations.
> I have thought about writing a selenium test to refresh FF on the home page. I think I will do so.
Please do! That'd be *pretty* useful for tracing and fixing the issue.
> Some further information. The service was up and stable for over a month on a 32-bit debian system (same version of c library and openssl). Due to memory constraints we migrated the front end web server to a 64-bit Debian at the beginning of February and that's about when this started happening. Yesterday, I compiled a version of cherokee exactly the same on a 32-bit Debian system and chrooted it on the 64-bit server. I am going to run this cherokee binary on the 64-bit server and hopefully that alleviates the issue. If it does, it would indicate an incompatibility with the 64-bit libc shipping with Debian lenny.
It could be, although I think it's more likely related to TLS connections being left open (because of a keep-alive request) on situations when they should had been closed.
--
Octality
http://www.octality.com/
> Even with an hourly restart, this error is still occuring sporadically. Once further piece of information I didn't realize may be significant before is that I have not configured DH parameters. I'm not sure if they're at all necessary as SSL was still working and I've never had to do this with any other webserver. Are the DH parameters are used for generating the session keys? Perhaps creating DH parameter files will do something for me?
The DH parameters file does not have anything to do with the problem, I'm quite sure about that.
I still believe that the problem is somehow related to keep-alive, unfinished connections, bad content-lenght and/or bad content-encoding.
> I will test and write back.
Thanks for all the finding and reports!
You're correct. Adding the DH Parameter files did not resolve anything. I just had to restart the server again.
Anything else I can try?
Alvaro, you mention bad content-length and/or bad content-encoding. I'll try disabling gzip.
When cherokee calculates content-length, does it consider encodings, or does it just count bytes? I'm not familiar enough with HTTP to know if that's a dumb question or not.
Ryan
That is REALLY interesting. Could you please check whether the problem shows up if you access different virtual servers from the same browser?
--
Yes - same firefox 3.6 browser, two tabs - one is https://www.bestbridalprices.com, one is https://staging.bestbridalprices.com
www would be producing the error while staging would be fine.
I woke up at 4am this morning in a cold sweat with that revelation in my head.
Ryan