Fixing Broken Seafile after Ubuntu 14.04 to 16.04 upgrade

I noticed after a reboot that Seafile stopped working.

At first, I didn't realize it was related to the os update. After trying a few things, including upgrading seafile to the latest version it still didn't work. I started searching to see if anyone else had issues after an upgrade. Sure enough, I came across this forum post.

An error within the seahub_django_request.log pointed to the culprit

OperationalError: (1193, "Unknown system variable 'storage_engine'")

To fix this error stop seafile/seahub. Then remove the following from seahub_settings.py

'OPTIONS': { 'init_command': 'SET storage_engine=INNODB', }

Afterwards restart seafile/seahub. It should start working again. (unless of course something else is broken)

If only I had paid more attention to the errors in the logs, I would have gotten it working much faster. READ THE LOGS/MANUAL