Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Thumbnails after SSL installation #778

Closed
simplyRoba opened this issue Aug 20, 2015 · 8 comments
Closed

No Thumbnails after SSL installation #778

simplyRoba opened this issue Aug 20, 2015 · 8 comments

Comments

@simplyRoba
Copy link

I installed a SSL certificate on my Server. Now the URL is like this: https://my-domain.tld/seafile. It isn't selfsigned. All is working fine Desktop sync and mobile sync. But on the Web-Interface the Thumbnails are not loaded.

The Django log shows this:

2015-08-20 17:04:53,259 [ERROR] django.request:210 handle_uncaught_exception Internal Server Error: /seafile/thumbnail/dea6d9ac-1d76-46cf-bbea-2a4b3f9f41ec/48/Camera%20Uploads/IMG_0532.JPG
Traceback (most recent call last):
  File "/home/seafile/seafile-pro-server-4.3.1/seahub/thirdpart/Django-1.5.12-py2.6.egg/django/core/handlers/base.py", line 113, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/seafile/seafile-pro-server-4.3.1/seahub/seahub/auth/decorators.py", line 26, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/seafile/seafile-pro-server-4.3.1/seahub/thirdpart/Django-1.5.12-py2.6.egg/django/views/decorators/http.py", line 147, in inner
    response = func(request, *args, **kwargs)
  File "/home/seafile/seafile-pro-server-4.3.1/seahub/seahub/thumbnail/views.py", line 101, in thumbnail_get
    thumbnail_file = os.path.join(THUMBNAIL_ROOT, str(size), obj_id)
  File "/usr/lib/python2.7/posixpath.py", line 75, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

The preview is also broken and shows The image could not be loaded

What is wrong? Do you need the rest of the config?

@shoeper
Copy link
Collaborator

shoeper commented Aug 20, 2015

@simplyRoba
Copy link
Author

My bad. I already read the manual. And beause i am using Apache 2.4 i have to use mod_fcgid and mod_proxy_fcgid instead of mod_fastcgi. I am using the config files of this issue haiwen/seafile#1186. And like i said its working i can access seahub i can upload, download and sync. The only thing is the image preview and thumbnails. And this happend after the installation of a valid SSL certificate.

@shoeper
Copy link
Collaborator

shoeper commented Aug 20, 2015

And have you changed your FILE_SERVER_ROOT and SERVICE_URL as described in the document (it's in the one above and in those to configure ssl)?

@simplyRoba
Copy link
Author

They are like

SERVICE_URL = https://my-domain.tld/seafile

FILE_SERVER_ROOT = https://my-domain.tld/seafhttp

@shoeper
Copy link
Collaborator

shoeper commented Aug 20, 2015

And do you have those as well?

SERVE_STATIC = False
MEDIA_URL = '/seafmedia/'
SITE_ROOT = '/seafile/'
COMPRESS_URL = MEDIA_URL
STATIC_URL = MEDIA_URL + 'assets/'

Do you have the trailing slash for SITE_ROOT?

@simplyRoba
Copy link
Author

yes

@shoeper
Copy link
Collaborator

shoeper commented Aug 20, 2015

And the thumbnails did work before?

Looks like the error occures in this line: https://github.com/haiwen/seahub/blob/master/seahub/thumbnail/views.py#L101
So if I read write for some reason the thumbnail is not created or at least seahub is not able to read it.

@simplyRoba
Copy link
Author

hi, sorry for the late reply i was working.
I tested some things to give you some more information.
And i found what is causing this problem, but still not the solution. The folder where the pictures are strored has a space in his name. Same issue as here haiwen/seafile#1258. I can reproduce this everywehre just adding a space into the folder name.

This can be closed i think and referenced to the issue i mentioned here.

Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants