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

Failed to view file's history #2235

Closed
chatainsim opened this issue Aug 22, 2019 · 7 comments

Comments

@chatainsim
Copy link

commented Aug 22, 2019

Hello,
When I try to view file's history I have this error in seahub.log:

2019-08-22 14:29:07,998 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /repo/file_revisions/aad90043-c7b2-4642-ac2a-180810c586f3/
Traceback (most recent call last):
  File "/home/simon/web/easter/seafile-server-7.0.4/seahub/thirdpart/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/home/simon/web/easter/seafile-server-7.0.4/seahub/thirdpart/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/home/simon/web/easter/seafile-server-7.0.4/seahub/thirdpart/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/simon/web/easter/seafile-server-7.0.4/seahub/thirdpart/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/simon/web/easter/seafile-server-7.0.4/seahub/seahub/auth/decorators.py", line 27, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/simon/web/easter/seafile-server-7.0.4/seahub/seahub/views/__init__.py", line 862, in file_revisions
    suffix_list = seafevents_api.get_file_history_suffix()
AttributeError: 'NoneType' object has no attribute 'get_file_history_suffix'

How can I fix this ?
Thanks

@freeplant

This comment has been minimized.

Copy link
Member

commented Sep 4, 2019

We can't reproduce the problem. It is likely caused by your configuration.

@freeplant freeplant closed this Sep 4, 2019

@chatainsim

This comment has been minimized.

Copy link
Author

commented Sep 11, 2019

And how can I fix this issue on my side ?
What does that mean ? Does a table in DB is missing ?
Thanks

@freeplant

This comment has been minimized.

Copy link
Member

commented Sep 11, 2019

Is there a file called seafevents.conf in your conf directory?

@chatainsim

This comment has been minimized.

Copy link
Author

commented Sep 11, 2019

Yes there is:

[DATABASE]
type = sqlite3
path = /home/simon/web/easter/pro-data/seafevents.db

[Audit]
enable = false

[INDEX FILES]
enabled = true
interval = 30m

## If true, indexes the contents of office/pdf files while updating search index
## Note: If you change this option from "false" to "true", then you need to clear the search index and update the index again. See the FAQ for details.
index_office_pdf = true

## The default size limit for doc, docx, ppt, pptx, xls, xlsx and pdf files. Files larger than this will not be indexed.
## Since version 6.2.0
## Unit: MB
office_file_size_limit = 10


[OFFICE CONVERTER]
enabled = true
workers = 2

## how many pages are allowed to be previewed online. Default is 50 pages
max-pages = 50

## the max size of documents allowed to be previewed online, in MB. Default is 10 MB
## Previewing a large file (for example >30M) online is likely going to freeze the browser.
max-size = 10

## where to store the converted office/pdf files. Deafult is /tmp/.
outputdir = /tmp/

[SEAHUB EMAIL]
enabled = true

## interval of sending Seahub email. Can be s(seconds), m(minutes), h(hours), d(days)
interval = 30m

[STATISTICS]
## must be "true" to enable statistics
enabled = true
@chatainsim

This comment has been minimized.

Copy link
Author

commented Sep 11, 2019

I've migrated since a long time from pro to CE and I've just seen that there is still a link to /home/simon/web/easter/pro-data/seafevents.db.

@freeplant

This comment has been minimized.

Copy link
Member

commented Sep 11, 2019

Delete the file should solve the problem. It is only for pro edition.

@chatainsim

This comment has been minimized.

Copy link
Author

commented Sep 11, 2019

Thank you so much, it's working fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.