Seafile 6.3.4 /Apache/Centos : ERROR django.request:135 handle_uncaught_exception Internal Server Error: /avatar/add/


#1

What a Community; Here I am appealing for your help.

I have installed the seafile with the following:

Seafile: 6.3.4
Centos: 7.6
Apache: 2.4.39
MariaDB: 10.3
1 hard drive: sda: 50Gb; /
1 sdb hard drive: 500Gb; / var

Installation path:
seafile: / opt / seafile
seafile-data: / var / seafile-data
seahub-data: / var / seahub-data

Everything is fine and working; but the avatar image of the account does not appear as if the link to the image was broken.

In the log seahub.log:
2019-05-16 19:29:46,453 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /avatar/add/
Traceback (most recent call last):
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/django/core/handlers/base.py”, line 249, in _legacy_get_response
response = self._get_response(request)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/django/core/handlers/base.py”, line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/django/core/handlers/base.py”, line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/auth/decorators.py”, line 27, in _wrapped_view
return view_func(request, *args, **kwargs)
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/avatar/views.py”, line 76, in add
avatar.avatar.save(image_file.name, image_file)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/django/db/models/fields/files.py”, line 94, in save
self.name = self.storage.save(name, content, max_length=self.field.max_length)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/django/core/files/storage.py”, line 54, in save
return self._save(name, content)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/django/core/files/storage.py”, line 321, in _save
os.makedirs(directory)
File “/usr/lib64/python2.7/os.py”, line 150, in makedirs
makedirs(head, mode)
File “/usr/lib64/python2.7/os.py”, line 150, in makedirs
makedirs(head, mode)
File “/usr/lib64/python2.7/os.py”, line 157, in makedirs
mkdir(name, mode)

And when I want to change the avatar of the account I get this error in the seahub.log:
OSError: [Errno 2] No such file or directory: ‘/opt/seafile/seafile-server-6.3.4/seahub/media/avatars/e’

I hope you can guide me what I could do to solve it.

Thank you in advance for your support.


#2

Has not this problem happened to anyone ???


#3

I’m having a similar issue, although i suspect a different cause to you. Have not found a fix yet.

https://forum.seafile.com/t/copied-entire-seafile-to-a-new-directory-and-seahub-sh-wont-launch/8952/4


#4

Que tal;

Ya pude solucionar el problema, al parecer es por las versiones del memcached. Yo use las siguientes dependiencias.

Con esto no hay problema de avatars
yum -y install python-distribute python-imaging MySQL-python

Y con estoy ya no tienes problemas de WebDav. (Lo anterior te va a dar problemas de WebDav)
yum -y install python-ldap python-urllib3 python-requests

Hay 2 paquetes: ffmpeg ffmpeg-devel que al tratara de instalarlos me muestra error. Lo que tengo duda; He visto que instalan paquetes de OpenOffice. Es necesario?.