Wrong wersion of cffi library


I’m using seafile server on Ubuntu 22.04.
The cffi library version installed is 1.15.0.
When I try to start seahub (./seahub srart), it not start.
I found that the cffi library version needed is 1.14.0 to start.

I chaned the version tested in “./seafile-server-latest/seahub/thirdpart/cffi/init.py” on lines 8 and 9 :
version = “1.15.0”
version_info = (1, 15, 0)

Now I can start seahub.




I confirm and thank you for this solution.

I’m using seafile server on Debian Buster, and it was just after an upgrade from Seafile 8.0.8 to 9.0.9.

Python logs :
«Exception: Version mismatch: this is the ‘cffi’ package version 1.14.0, located in ‘/home/yop/cloud/seafile-server-9.0.9/seahub/thirdpart/cffi/api.py’. When we import the top-level ‘_cffi_backend’ extension module, we get version 1.14.3, located in ‘/usr/local/lib/python3.7/dist-packages/_cffi_backend.cpython-37m-x86_64-linux-gnu.so’. The two versions should be equal; check your installation.
Error:Seahub failed to start.»

So, for Debian Buster, I changed the value in “./seafile-server-latest/seahub/thirdpart/cffi/init.py” on lines 8 and 9, from 1.14.0 to 1.14.3 :
version = “1.14.3”
version_info = (1, 14, 3)

And it works.



Thanks, had to do the same hack on my box for cffi 0.15.1 (debian testing/bookworm)

Just for the records. This fixed this sunday for me too :wink: