#1635 closed defect

'crypto for PB is not available' error from bin/tahoe on Fedora due to failure to find libcrypto.so.1.0.0; goes away after 'make clean' and second build — at Initial Version

Reported by: davidsarah Owned by: somebody
Priority: major Milestone: 1.9.2
Component: packaging Version: 1.9.0
Keywords: openssl linux fedora Cc:
Launchpad Bug:

Description

(16:00:04) tcatm: hey. I have some trouble running tahoe-lafs on fedora: exceptions.RuntimeError: crypto for PB is not available, try importing foolscap.crypto and see what happens
(16:10:19) davidsarah: tcatm: is that error from running 'setup.py build', or 'bin/tahoe', or using an operating system package of tahoe?
(16:11:11) tcatm: bin/tahoe start ... using the latest tarball from the download page
(16:12:48) davidsarah: which version of python?
(16:12:56) tcatm: 2.7
(16:14:59) davidsarah: please tell me the output from: PYTHONPATH=`pwd`/support/lib/python2.7/site-packages python -c "import foolscap.crypto; print foolscap.crypto"
(16:16:16) tcatm: <module 'foolscap.crypto' from '/usr/lib/python2.7/site-packages/foolscap/crypto.pyc'>
(16:16:56) davidsarah: what about: bin/tahoe --version-and-path
[see attachment]

(16:20:11) davidsarah: thanks
(16:21:23) davidsarah: this is the problem:
(16:21:23) davidsarah: pyOpenSSL: None [(<type 'exceptions.ImportError'>, 'libcrypto.so.1.0.0: cannot open shared object file: No such file or directory', ('/home/tahoe/allmydata-tahoe-1.9.0/support/lib/python2.7/site-packages/pyOpenSSL-0.13-py2.7-linux-x86_64.egg/OpenSSL/__init__.py', 36, '<module>', 'from OpenSSL import crypto'))] (None),
(16:22:22) davidsarah: it appears that pyOpenSSL can't find the OpenSSL shared lib it is linked against
(16:22:33) davidsarah: I've seen that problem before recently. zooko?
(16:24:09) davidsarah: if there is an operating system package of pyOpenSSL for fedora, installing that (and doing 'python setup.py build' again) would probably fix it
(16:24:42) davidsarah: but we should try to understand why the pyOpenSSL egg it found by default didn't work
(16:25:30) davidsarah: can you do 'make clean' and then paste the full output of 'python setup.py build'?
(16:25:52) tcatm: pyOpenSSL is installed, but I only got a libcrypto.so
(16:26:01) davidsarah: ah
(16:26:54) davidsarah: if you symlink 'libcrypto.so.1.0.0' in the same directory to 'libcrypto.so', does it work then?
(16:27:36) tcatm: sounds like that could break easily on the next upgrade
(16:27:59) davidsarah: it could, but I'm just trying to verify a hypothesis for the cause of the error
(16:28:40) tcatm: hrm, make clean and running setup.py build seemed to have fixed the problem. strange :)
(16:28:47) davidsarah: sigh
(16:28:52) davidsarah: that is annoying
(16:29:23) tcatm: yep. thanks for helping, though :)
(16:29:35) davidsarah: I will file a ticket anyway. thanks for reporting the problem
(16:31:12) davidsarah: mind if I include your paste above? I don't think it has any sensitive paths
(16:32:19) tcatm: no problem. I've already checked it for sensitive information
(16:34:52) davidsarah: which version of Fedora?
(16:40:25) tcatm: 14

Change History (1)

Changed at 2011-12-14T16:43:12Z by davidsarah

output of bin/tahoe --version-and-path

Note: See TracTickets for help on using tickets.