I got it working. I’m not sure what ended up fixing it, but I read through tons of threads on this forum and threw everything I could find at the problem.
- Made sure the seafile folder is owned by the correct user, and checked that all logs were writable only by that user.
- Removed any extra packages under “/usr/lib/python2.7/dist-packages”
- Deleted all .pyc files from the entire seafile directory
- Deleted all seafile related files from /tmp/ (seahub_cache was the main suspect)
It’s finally working again! I find it frustrating that I don’t know why this happened (I did nothing other than a standard apt upgrade in Ubuntu), and no error logs were generated to help me with the problem. The result was 3 weeks of seahub broken and around 6 hours of my time wasted trying to fix it. All’s well that ends well I guess.
Thanks to all that helped in this thread and this other one: Seahub not working any more