文件搜索功能不可用,创建索引失败,求指教

搜索不到任何内容,按照文档安装了 pdftotext
执行./pro/pro.py search --update 结果如下:

Updating search index, this may take a while…

05/10/2021 16:52:48 [INFO] seafes:208 main: storage: using filesystem storage backend
05/10/2021 16:52:48 [INFO] seafes:210 main: index office pdf: True
05/10/2021 16:52:48 [INFO] seafes:161 start_index_local: Index process initialized.
05/10/2021 16:52:48 [INFO] seafes:46 run: starting worker0 worker threads for indexing
05/10/2021 16:52:48 [INFO] seafes:46 run: starting worker1 worker threads for indexing
05/10/2021 16:52:50 [WARNING] seafes:73 check_recovery: d387ff66-f377-4d2e-a0dd-3e226817afe6: inrecovery
05/10/2021 16:52:50 [WARNING] seafes:73 check_recovery: 7f62cca6-4661-4196-8787-0eee58a6dc47: inrecovery
05/10/2021 16:52:50 [ERROR] seafes:92 get_repo_name_mtime_size: Could not locate column in row for column ‘items’
05/10/2021 16:52:50 [ERROR] seafes:92 get_repo_name_mtime_size: Could not locate column in row for column ‘items’
05/10/2021 16:52:50 [ERROR] seafes:116 thread_task: Index Repo Error: d387ff66-f377-4d2e-a0dd-3e226817afe6
Traceback (most recent call last):
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 90, in get_repo_name_mtime_size
return self._get_repo_name_mtime_size(repo_id)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 84, in _get_repo_name_mtime_size
raise e
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 82, in _get_repo_name_mtime_size
return self.to_dict(res)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 17, in to_dict
res.append(dict(list(i.items())))
AttributeError: Could not locate column in row for column ‘items’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/index_local.py”, line 105, in thread_task
self.fileindexupdater.update_repo(repo_id, commit_id)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/file_index_updater.py”, line 80, in update_repo
self.check_recovery(repo_id)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/file_index_updater.py”, line 76, in check_recovery
self.update_files_index(repo_id, old, new)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/file_index_updater.py”, line 48, in update_files_index
self.files_index.update_repo_name_index(repo_id, version, new_root)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/indexes/repo_files.py”, line 174, in update_repo_name_index
if not repo_data.get_repo_name_mtime_size(repo_id):
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 93, in get_repo_name_mtime_size
return self._get_repo_name_mtime_size(repo_id)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 84, in _get_repo_name_mtime_size
raise e
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 82, in _get_repo_name_mtime_size
return self.to_dict(res)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 17, in to_dict
res.append(dict(list(i.items())))
AttributeError: Could not locate column in row for column ‘items’
05/10/2021 16:52:50 [DEBUG] seafes:96 thread_task: Queue is empty, worker1 worker threads stop
05/10/2021 16:52:50 [INFO] seafes:122 thread_task: worker1 worker updated at 2021-05-10 16:52 time
05/10/2021 16:52:50 [INFO] seafes:127 thread_task: worker1 worker get 1 error
05/10/2021 16:52:50 [ERROR] seafes:116 thread_task: Index Repo Error: 7f62cca6-4661-4196-8787-0eee58a6dc47
Traceback (most recent call last):
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 90, in get_repo_name_mtime_size
return self._get_repo_name_mtime_size(repo_id)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 84, in _get_repo_name_mtime_size
raise e
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 82, in _get_repo_name_mtime_size
return self.to_dict(res)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 17, in to_dict
res.append(dict(list(i.items())))
AttributeError: Could not locate column in row for column ‘items’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/index_local.py”, line 105, in thread_task
self.fileindexupdater.update_repo(repo_id, commit_id)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/file_index_updater.py”, line 80, in update_repo
self.check_recovery(repo_id)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/file_index_updater.py”, line 76, in check_recovery
self.update_files_index(repo_id, old, new)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/file_index_updater.py”, line 48, in update_files_index
self.files_index.update_repo_name_index(repo_id, version, new_root)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/indexes/repo_files.py”, line 174, in update_repo_name_index
if not repo_data.get_repo_name_mtime_size(repo_id):
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 93, in get_repo_name_mtime_size
return self._get_repo_name_mtime_size(repo_id)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 84, in _get_repo_name_mtime_size
raise e
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 82, in _get_repo_name_mtime_size
return self.to_dict(res)
File “/usr/seafile/seafile-pro-server-7.1.12/pro/python/seafes/repo_data/init.py”, line 17, in to_dict
res.append(dict(list(i.items())))
AttributeError: Could not locate column in row for column ‘items’
05/10/2021 16:52:50 [DEBUG] seafes:96 thread_task: Queue is empty, worker0 worker threads stop
05/10/2021 16:52:50 [INFO] seafes:122 thread_task: worker0 worker updated at 2021-05-10 16:52 time
05/10/2021 16:52:50 [INFO] seafes:127 thread_task: worker0 worker get 2 error
05/10/2021 16:52:50 [INFO] seafes:38 clear_worker: All worker threads has stopped.
05/10/2021 16:52:50 [INFO] seafes:72 run: index updated, total time 2.0221011638641357 seconds
05/10/2021 16:52:50 [INFO] seafes:131 clear_deleted_repo: start to clear deleted repo
05/10/2021 16:52:50 [INFO] seafes:135 clear_deleted_repo: 0 repos need to be deleted.
05/10/2021 16:52:50 [INFO] seafes:139 clear_deleted_repo: deleted repo has been cleared
05/10/2021 16:52:50 [INFO] seafes:164 start_index_local:

Index updated, statistic report:

05/10/2021 16:52:50 [INFO] seafes:165 start_index_local: [commit read] 2
05/10/2021 16:52:50 [INFO] seafes:166 start_index_local: [dir read] 0
05/10/2021 16:52:50 [INFO] seafes:167 start_index_local: [file read] 0
05/10/2021 16:52:50 [INFO] seafes:168 start_index_local: [block read] 0

1 个赞

pip3 install SQLAlchemy==1.3.8 然后重新创建

OK。 非常感谢!!