Seafile public link creates 500 internal server error

796 views
Skip to first unread message

Marco Jakobs

unread,
Oct 15, 2013, 4:20:41 AM10/15/13
to sea...@googlegroups.com
Hi,

i've created a link to a file yesterday, now i've received an email that my link produces just an error:


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [...] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



Here is the part of the logfile "seahub_django_request":


2013-10-15 10:10:06,898 [ERROR] django.request:212 handle_uncaught_exception Internal Server Error: /f/463b7afb2d/
Traceback (most recent call last):
  File "/Seafile/seafile-pro-server-1.8.2/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/handlers/base.py", line 115, in
 get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/Seafile/seafile-pro-server-1.8.2/seahub/seahub/views/file.py", line 617, in view_shared_file
    handle_textual_file(request, filetype, inner_path, ret_dict)
  File "/Seafile/seafile-pro-server-1.8.2/seahub/seahub/views/file.py", line 181, in handle_textual_file
    raw_path, file_enc)
  File "/Seafile/seafile-pro-server-1.8.2/seahub/seahub/views/file.py", line 98, in get_file_content
    file_type=file_type) else ('', '', '')
  File "/Seafile/seafile-pro-server-1.8.2/seahub/seahub/views/file.py", line 138, in repo_file_get
    encoding = chardet.detect(content)['encoding']
  File "/Seafile/seafile-pro-server-1.8.2/seahub/thirdpart/chardet-2.1.1-py2.6.egg/chardet/__init__.py", line 24, in detect
    u.feed(aBuf)
  File "/Seafile/seafile-pro-server-1.8.2/seahub/thirdpart/chardet-2.1.1-py2.6.egg/chardet/universaldetector.py", line 119, i
n feed
    if prober.feed(aBuf) == constants.eFoundIt:
  File "/Seafile/seafile-pro-server-1.8.2/seahub/thirdpart/chardet-2.1.1-py2.6.egg/chardet/charsetgroupprober.py", line 59, i
n feed
    st = prober.feed(aBuf)
  File "/Seafile/seafile-pro-server-1.8.2/seahub/thirdpart/chardet-2.1.1-py2.6.egg/chardet/sbcharsetprober.py", line 75, in f
eed
    self._mTotalChar += 1
KeyboardInterrupt
2013-10-15 10:10:06,898 [ERROR] django.request:212 handle_uncaught_exception Internal Server Error: /f/463b7afb2d/
Traceback (most recent call last):
  File "/Seafile/seafile-pro-server-1.8.2/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/handlers/base.py", line 115, in
 get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/Seafile/seafile-pro-server-1.8.2/seahub/seahub/views/file.py", line 617, in view_shared_file
    handle_textual_file(request, filetype, inner_path, ret_dict)
  File "/Seafile/seafile-pro-server-1.8.2/seahub/seahub/views/file.py", line 181, in handle_textual_file
    raw_path, file_enc)
  File "/Seafile/seafile-pro-server-1.8.2/seahub/seahub/views/file.py", line 98, in get_file_content
    file_type=file_type) else ('', '', '')
  File "/Seafile/seafile-pro-server-1.8.2/seahub/seahub/views/file.py", line 138, in repo_file_get
    encoding = chardet.detect(content)['encoding']
  File "/Seafile/seafile-pro-server-1.8.2/seahub/thirdpart/chardet-2.1.1-py2.6.egg/chardet/__init__.py", line 24, in detect
    u.feed(aBuf)
  File "/Seafile/seafile-pro-server-1.8.2/seahub/thirdpart/chardet-2.1.1-py2.6.egg/chardet/universaldetector.py", line 119, i
n feed
    if prober.feed(aBuf) == constants.eFoundIt:
  File "/Seafile/seafile-pro-server-1.8.2/seahub/thirdpart/chardet-2.1.1-py2.6.egg/chardet/charsetgroupprober.py", line 59, i
n feed
    st = prober.feed(aBuf)

Marco Jakobs

unread,
Oct 15, 2013, 4:40:13 AM10/15/13
to sea...@googlegroups.com
OK, i've got a detailed bug information for this: It's the filename!

The file name of the shared file is "ServiceData.log". Creating a public link (https://...) in Seafile does not work, producing the 500 server error when entering the link in the browser. It won't work in ANY library.

Renaming the file to "ServiceData.abc" works immediately after creating a link. So there seems to be an issue once a file has the extension ".log"!

Lingtao Pan

unread,
Oct 15, 2013, 8:51:38 AM10/15/13
to sea...@googlegroups.com
Seafile will try to show file content if the file extension is ".log". There is an error in detecting the charset of the file. We will fix it soon.

Thanks for reporting this issue.

Marco Jakobs

unread,
Oct 15, 2013, 11:23:23 AM10/15/13
to sea...@googlegroups.com
Thank you, Lingtao!
Reply all
Reply to author
Forward
0 new messages