[ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /favicon.ico

Running on FreeBSD, after the latest pkg upgrade, my Seafile web interface is no longer working. I just get Internal Server Error.

I attached the error in the seahub.log file. https://ibb.co/cwYdp8

I’ve tried clearing the seahub cache, fastcgi is not enabled, and I’ve run any minor upgrade scripts.

Try to run this

pip install captcha

I ran that command, no change in the error.

It seems like the issue must be with Seahub, since my macOS clients are still able to sync with the Seafile server.

Did you restart server and remove cache?

Yes I see that some library for Captcha code in form are missing. Command which I send before install this.

These are the commands I’m running:

service seahub stop
service seafile stop
rm -R /tmp/seahub_cache/
pip install captcha
service seafile start
service seahub start

The output from pip install captcha is

Requirement already satisfied: captcha in /usr/local/lib/python2.7/site-packages (0.2.4)
Requirement already satisfied: Pillow in /usr/local/lib/python2.7/site-packages (from captcha) (5.0.0)

The log is still reporting the same error.

Ok so then please run command below and post output here.

pip list
root@seafile_1:/ # pip list
Package                Version
---------------------- ---------
acme                   0.25.1
asn1crypto             0.22.0
captcha                0.2.4
certifi                2018.4.16
cffi                   1.11.5
chardet                3.0.4
ConfigArgParse         0.13.0
configobj              5.0.6
coverage               4.5.1
cryptography           2.1.4
Django                 1.11.14
django-appconf         1.0.2
django-compressor      2.2
django-constance       2.2.0
django-formtools       2.1
django-picklefield     1.0.0
django-post-office     3.0.4
django-ranged-response 0.2.0
django-simple-captcha  0.5.7
django-statici18n      1.8.2
djangorestframework    3.8.2
enum34                 1.1.6
et-xmlfile             1.0.1
flup6                  1.1.1
futures                3.2.0
gunicorn               19.4.5
idna                   2.6
ipaddress              1.0.22
jdcal                  1.4
josepy                 1.1.0
jsonfield              2.0.2
MySQL-python           1.2.5
openpyxl               2.5.4
parsedatetime          2.4
Pillow                 5.0.0
pip                    10.0.1
pycparser              2.18
pyOpenSSL              17.5.0
pyRFC3339              1.1
PySocks                1.6.8
python-dateutil        2.6.1
pytz                   2018.5
qrcode                 6.0
rcssmin                1.0.6
redis                  2.10.6
requests               2.18.4
requests-toolbelt      0.8.0
rjsmin                 1.0.12
setproctitle           1.1.10
setuptools             39.2.0
six                    1.11.0
sqlite3                0.0.0
Tkinter                0.0.0
urllib3                1.22
zope.component         4.2.2
zope.event             4.1.0
zope.interface         4.1.3

Maybe I see your problem.

Uninstall previously installed package captcha.
Then try to reinstall package Pillow to version 4.3.0, not sure but 5.0.0 is not supported by Seafile.
Then restart seafile & seahub.

EDIT:
Didn’t test but this should work

pip install 'Pillow==4.3.0' --force-reinstall
1 Like

I tried that command, still no luck. Here is my pip list output

Package                Version
---------------------- ---------
acme                   0.25.1
asn1crypto             0.22.0
captcha                0.2.4
certifi                2018.4.16
cffi                   1.11.5
chardet                3.0.4
ConfigArgParse         0.13.0
configobj              5.0.6
coverage               4.5.1
cryptography           2.1.4
Django                 1.11.14
django-appconf         1.0.2
django-compressor      2.2
django-constance       2.2.0
django-formtools       2.1
django-picklefield     1.0.0
django-post-office     3.0.4
django-ranged-response 0.2.0
django-statici18n      1.8.2
djangorestframework    3.8.2
enum34                 1.1.6
et-xmlfile             1.0.1
flup6                  1.1.1
futures                3.2.0
gunicorn               19.4.5
idna                   2.6
ipaddress              1.0.22
jdcal                  1.4
josepy                 1.1.0
jsonfield              2.0.2
MySQL-python           1.2.5
olefile                0.45.1
openpyxl               2.5.4
parsedatetime          2.4
Pillow                 4.3.0
pip                    18.0
pycparser              2.18
pyOpenSSL              17.5.0
pyRFC3339              1.1
PySocks                1.6.8
python-dateutil        2.6.1
pytz                   2018.5
qrcode                 6.0
rcssmin                1.0.6
redis                  2.10.6
requests               2.18.4
requests-toolbelt      0.8.0
rjsmin                 1.0.12
setproctitle           1.1.10
setuptools             40.0.0
six                    1.11.0
sqlite3                0.0.0
Tkinter                0.0.0
urllib3                1.22
zope.component         4.2.2
zope.event             4.1.0
zope.interface         4.1.3

Try to uninstall package captcha, Pillow should provide it.
Then restart server and check if error message changed or if it works.
Then check user permission which running seahub server for seafile server files.

In my seafile-server folder seafile and seahub directories are owned by seafile:seafile. Not sure if the entire seafile-server directory needs that ownership. Changing seafile-server to seafile:seafile does not change the error.

I uninstalled the captcha package too. Still same error persisting.