Error (no users, no librairies) after upgrade to 6.0.7

Dear All,

I upgraded my windows server from version 5.0.3 to version 6.0.7.
Since this upgrade, I’m not able to list librairies, the list member of a group, to list user, …
I tried to check what goes wrong on the log file and only find a problem of timezone as you can see below:
2017-05-14 20:29:35,819 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /api2/repos/
Traceback (most recent call last):
File “E:\SeaFileProgram\seafile-server-6.0.7\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\handlers\base.py”, line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “E:\SeaFileProgram\seafile-server-6.0.7\seahub\thirdpart\django-1.8.10-py2.7.egg\django\views\decorators\csrf.py”, line 58, in wrapped_view
return view_func(*args, **kwargs)
File “E:\SeaFileProgram\seafile-server-6.0.7\seahub\thirdpart\django-1.8.10-py2.7.egg\django\views\generic\base.py”, line 71, in view
return self.dispatch(request, *args, **kwargs)
File “E:\SeaFileProgram\seafile-server-6.0.7\seahub\seahub\api2\base.py”, line 23, in dispatch
response = super(APIView, self).dispatch(*a, **kw)
File “E:\SeaFileProgram\seafile-server-6.0.7\seahub\thirdpart\djangorestframework-3.3.2-py2.7.egg\rest_framework\views.py”, line 466, in dispatch
response = self.handle_exception(exc)
File “E:\SeaFileProgram\seafile-server-6.0.7\seahub\seahub\api2\base.py”, line 20, in handle_exception
return super(APIView, self).handle_exception(exc)
File “E:\SeaFileProgram\seafile-server-6.0.7\seahub\thirdpart\djangorestframework-3.3.2-py2.7.egg\rest_framework\views.py”, line 463, in dispatch
response = handler(request, *args, **kwargs)
File “E:\SeaFileProgram\seafile-server-6.0.7\seahub\seahub\api2\views.py”, line 440, in get
“mtime_relative”: translate_seahub_time(r.last_modify),
File “E:\SeaFileProgram\seafile-server-6.0.7\seahub\seahub\base\templatetags\seahub_tags.py”, line 308, in translate_seahub_time
titletime = DateFormat(val).format(‘r’)
File “E:\SeaFileProgram\seafile-server-6.0.7\seahub\thirdpart\django-1.8.10-py2.7.egg\django\utils\dateformat.py”, line 54, in init
self.timezone = get_default_timezone()
File “E:\SeaFileProgram\seafile-server-6.0.7\seahub\thirdpart\django-1.8.10-py2.7.egg\django\utils\lru_cache.py”, line 125, in wrapper
result = user_function(*args, **kwds)
File “E:\SeaFileProgram\seafile-server-6.0.7\seahub\thirdpart\django-1.8.10-py2.7.egg\django\utils\timezone.py”, line 177, in get_default_timezone
return pytz.timezone(settings.TIME_ZONE)
File “E:\SeaFileProgram\seafile-server-6.0.7\seahub\thirdpart\pytz-2016.1-py2.7.egg\pytz_init_.py”, line 180, in timezone
raise UnknownTimeZoneError(zone)
UnknownTimeZoneError: ‘Asia/Shanghai’

Do you have an idea what goes wrong and how to solve it?

Best regards,

Finally, I found this in another topic not related to upgrade :
add a line to seahub_settings.py should solve your problem:
TIME_ZONE = ‘UTC’

and it is now working.