更改个人头像时出现以下错误。
页面显示以下内容
Page unavailable
Sorry, but the requested page is unavailable due to a server hiccup.
Our engineers have been notified, so check back later.
seahub_django_requesst.log内容以下。
2017-03-31 06:19:28,654 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /avatar/add/
Traceback (most recent call last):
File “/opt/ivyb2b-6.9/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/core/handlers/base.py”, line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/opt/ivyb2b-6.9/seafile-server-6.0.9/seahub/seahub/auth/decorators.py”, line 27, in _wrapped_view
return view_func(request, *args, **kwargs)
File “/opt/ivyb2b-6.9/seafile-server-6.0.9/seahub/seahub/avatar/views.py”, line 76, in add
avatar.avatar.save(image_file.name, image_file)
File “/opt/ivyb2b-6.9/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/db/models/fields/files.py”, line 111, in save
self.instance.save()
File “/opt/ivyb2b-6.9/seafile-server-6.0.9/seahub/seahub/avatar/models.py”, line 151, in save
super(Avatar, self).save(*args, **kwargs)
File “/opt/ivyb2b-6.9/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/db/models/base.py”, line 734, in save
force_update=force_update, update_fields=update_fields)
File “/opt/ivyb2b-6.9/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/db/models/base.py”, line 771, in save_base
update_fields=update_fields, raw=raw, using=using)
File “/opt/ivyb2b-6.9/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/dispatch/dispatcher.py”, line 189, in send
response = receiver(signal=self, sender=sender, **named)
File “/opt/ivyb2b-6.9/seafile-server-6.0.9/seahub/seahub/avatar/models.py”, line 174, in create_default_thumbnails
instance.create_thumbnail(size)
File “/opt/ivyb2b-6.9/seafile-server-6.0.9/seahub/seahub/avatar/models.py”, line 107, in create_thumbnail
image.save(thumb, AVATAR_THUMB_FORMAT, quality=quality)
File “/usr/lib64/python2.7/site-packages/PIL/Image.py”, line 1477, in save
save_handler(self, fp, filename)
File “/usr/lib64/python2.7/site-packages/PIL/PngImagePlugin.py”, line 608, in _save
ImageFile._save(im, _idat(fp, chunk), [(“zip”, (0,0)+im.size, 0, rawmode)])
File “/usr/lib64/python2.7/site-packages/PIL/ImageFile.py”, line 456, in _save
e = Image._getencoder(im.mode, e, a, im.encoderconfig)
File “/usr/lib64/python2.7/site-packages/PIL/Image.py”, line 395, in _getencoder
return encoder(mode, *args + extra)
TypeError: function takes at most 4 arguments (6 given)