after update to V6.03:
admin goes to libraries - trash. here i can see only “hourglass”
seahub.django.request.log: 2016-09-15 16:43:16,663 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /api/v2.1/admin/trash-libraries/ Traceback (most recent call last): File "/seafile/seafile-server-latest/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 "/seafile/seafile-server-latest/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 "/seafile/seafile-server-latest/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 "/seafile/seafile-server-latest/seahub/thirdpart/djangorestframework-3.3.2-py2.7.egg/rest_framework/views.py", line 466, in dispatch response = self.handle_exception(exc) File "/seafile/seafile-server-latest/seahub/thirdpart/djangorestframework-3.3.2-py2.7.egg/rest_framework/views.py", line 463, in dispatch response = handler(request, *args, **kwargs) File "/seafile/seafile-server-6.0.3/seahub/seahub/api2/endpoints/admin/trash_libraries.py", line 83, in get repo_info = get_trash_repo_info(repo) File "/seafile/seafile-server-6.0.3/seahub/seahub/api2/endpoints/admin/trash_libraries.py", line 28, in get_trash_repo_info result['delete_time'] = timestamp_to_isoformat_timestr(repo.del_time) File "/seafile/seafile-server-6.0.3/seahub/seahub/utils/timeutils.py", line 42, in timestamp_to_isoformat_timestr dt_obj = datetime.datetime.fromtimestamp(timestamp/1000000) ValueError: timestamp out of range for platform time_t
I tested with sqlite, but don’t have your issue. Could you post the table schema of RepoTrash table? In sqlite you can get it by .schema command. And what OS are you using? Do these delete libraries already exist before upgrade to 6.0.3?
These libraries didn’t exist before the update to 6.0.3 because they are all libraries with names like eg. ‘MSI2a533.tmp’ and most likey created by SeaDrive.
We cannot reproduce the problem unfortunately. In some OS the value of del_time is just wrong for some reasons. But we’ve fixed a potential cause of the problem in 6.0.4. You can try it. But you still need to manually set the del_time in database before you can load the library trash page.
I have a similar problem on the “Seafile Server 6.0.3 for Raspberry Pi” version (mysql). I can delete libraries, but can’t see the deleted ones in the admin area.
As a temporary solution I deleted the hole library (seafile/seafile-data/storage/blocks/)…- but this is like killing a mosquito with a gun oO
Will there be a fix too? How can I manually fix this issue? Cheers
Hey thx for your answer the prob is i am not very well into mysql, if i type in the following iam getting errors:
mysql> select seafile
-> update RepoTrash set del_time = 1;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘update RepoTrash set del_time = 1’ at line 2
mysql>
May you tell me what i am actually doing wrong?