Internal Server Error when trying to download shared files

511 views
Skip to first unread message

Niclas

unread,
Oct 4, 2013, 5:40:21 AM10/4/13
to sea...@googlegroups.com
Hi all !

Since last night Seafile/Seahub shows an "Internal Server Error" webpage when my contacts want to download a shared file or folder.
The seahub.log says: [ERROR] seahub.share.views:672 send_shared_link {u'myco...@somedomain.com': (501, 'Syntax error in parameters or arguments')}
Unfortunately this error message is not clear enough for me to see where the problem is. Since I didn't change anything in configuration or settings I don't know why this error suddenly appears.
My contacts do receive the e-mail with the corresponding link and are able to connect to my site and see the files. But then downloading them is not possible.

In my "seahub_settings.py" my HTTP_SERVER_ROOT = 'something.dyndns.com.8082', SITE_BASE = 'http://something.dyndns.com' and in CCNET the ccnet.conf says: SERVICE_URL = 'http://something.dyndns.com'

The seahub_django_request.log shows this:
"2013-10-04 13:29:06,256 [ERROR] django.request:212 handle_uncaught_exception Internal Server Error: /repo/09cfbdad-[...]
Traceback (most recent call last):
File "/home/seafile/seafile-server-1.8.5/seahub/thirdpart/Django-1.5.1-py2.7.egg/django/core/handlers/base.py", line 115, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/seafile/seafile-server-1.8.5/seahub/seahub/views/__init__.py", line 1152, in repo_access_file
return HttpResponseRedirect(redirect_url)
File "/home/seafile/seafile-server-1.8.5/seahub/thirdpart/Django-1.5.1-py2.7.egg/django/http/response.py", line 390, in __init__
raise SuspiciousOperation("Unsafe redirect to URL with protocol '%s'" % parsed.scheme)
SuspiciousOperation: Unsafe redirect to URL with protocol 'something.dyndns.com'"

What can I do and fix to reenable downloads again ?




Niclas

unread,
Oct 5, 2013, 4:06:37 PM10/5/13
to sea...@googlegroups.com
Is there anybody who knows where this error comes from and how it can be solved ? :(

ZhengXie

unread,
Oct 5, 2013, 10:17:58 PM10/5/13
to sea...@googlegroups.com
Please make sure HTTP_SERVER_ROOT starts with https or http

Regards

On Oct 6, 2013, at 4:06 AM, Niclas <t1t4...@googlemail.com> wrote:

> Is there anybody who knows where this error comes from and how it can be solved ? :(
>
> --
> You received this message because you are subscribed to the Google Groups "seafile" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to seafile+u...@googlegroups.com.
> To post to this group, send email to sea...@googlegroups.com.
> Visit this group at http://groups.google.com/group/seafile.
> For more options, visit https://groups.google.com/groups/opt_out.

Niclas

unread,
Oct 6, 2013, 4:09:51 AM10/6/13
to sea...@googlegroups.com
Yes, that solved the issue. Thanks a lot !
Reply all
Reply to author
Forward
0 new messages