pro版 无法转换任何doc\docx\ppt\pptx\pdf格式的文档,显示转换失败,只能显示普通文本文件。求指导一下。
其他功能一切正常。已安装LibreOffice和字体,已给予seafile目录执行权限,系统是Ubuntu1604 64位
日志文件有关如下:
[2017-09-22 16:57:44,843] [DEBUG] removing temporary document /tmp/tmpuqH3Kf.doc
[2017-09-22 17:02:13,214] [INFO] starts to index files
[2017-09-22 17:02:13,215] [DEBUG] Running command: “/usr/bin/python2.7” “-m” “seafes.update_repos” “–logfile” “/home/jinfeng/installed/logs/index.log” “update”, cwd = /home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafes
[2017-09-22 17:12:13,316] [INFO] starts to index files
[2017-09-22 17:12:13,317] [DEBUG] Running command: “/usr/bin/python2.7” “-m” “seafes.update_repos” “–logfile” “/home/jinfeng/installed/logs/index.log” “update”, cwd = /home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafes
[2017-09-22 17:18:00,256] [DEBUG] start to fetch task <type: ppt, id: 6e8f1610b04241e8e2c694f5b8bfdf6f6363d25f>
[2017-09-22 17:18:00,642] [DEBUG] start to convert task <type: ppt, id: 6e8f1610b04241e8e2c694f5b8bfdf6f6363d25f>
[2017-09-22 17:18:26,733] [DEBUG] succefully converted <type: ppt, id: 6e8f1610b04241e8e2c694f5b8bfdf6f6363d25f> to pdf
[2017-09-22 17:18:26,740] [ERROR] failed to convert <type: ppt, id: 6e8f1610b04241e8e2c694f5b8bfdf6f6363d25f> to html
Traceback (most recent call last):
File “/home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter/task_manager.py”, line 135, in _convert_pdf_to_html
task.pdf, task.htmldir, task_manager.max_pages, progress_callback)
File “/home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter/convert.py”, line 311, in pdf_to_html2
pdf_info = self._get_pdf_info_json(pdf)
File “/home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter/convert.py”, line 278, in _get_pdf_info_json
output = _check_output([‘pdfinfo’, pdf])
File “/home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter/convert.py”, line 31, in _check_output
process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs)
File “/usr/lib/python2.7/subprocess.py”, line 711, in init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[2017-09-22 17:18:26,740] [DEBUG] removing temporary document /tmp/tmppOenpQ.ppt
[2017-09-22 17:18:29,155] [DEBUG] start to fetch task <type: docx, id: 1ad0178d028ea6ba46a00307bfff101a9ccf97c2>
[2017-09-22 17:18:29,333] [DEBUG] start to convert task <type: docx, id: 1ad0178d028ea6ba46a00307bfff101a9ccf97c2>
[2017-09-22 17:18:29,893] [DEBUG] succefully converted <type: docx, id: 1ad0178d028ea6ba46a00307bfff101a9ccf97c2> to pdf
[2017-09-22 17:18:29,899] [ERROR] failed to convert <type: docx, id: 1ad0178d028ea6ba46a00307bfff101a9ccf97c2> to html
Traceback (most recent call last):
File “/home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter/task_manager.py”, line 135, in _convert_pdf_to_html
task.pdf, task.htmldir, task_manager.max_pages, progress_callback)
File “/home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter/convert.py”, line 311, in pdf_to_html2
pdf_info = self._get_pdf_info_json(pdf)
File “/home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter/convert.py”, line 278, in _get_pdf_info_json
output = _check_output([‘pdfinfo’, pdf])
File “/home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter/convert.py”, line 31, in _check_output
process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs)
File “/usr/lib/python2.7/subprocess.py”, line 711, in init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[2017-09-22 17:18:29,899] [DEBUG] removing temporary document /tmp/tmpp2KSff.docx
[2017-09-22 17:21:07,734] [DEBUG] start to fetch task <type: docx, id: 74665309ef3cb29abd02e3605519e17d3e7df563>
[2017-09-22 17:21:08,175] [DEBUG] start to convert task <type: docx, id: 74665309ef3cb29abd02e3605519e17d3e7df563>
[2017-09-22 17:21:08,481] [DEBUG] succefully converted <type: docx, id: 74665309ef3cb29abd02e3605519e17d3e7df563> to pdf
[2017-09-22 17:21:08,488] [ERROR] failed to convert <type: docx, id: 74665309ef3cb29abd02e3605519e17d3e7df563> to html
Traceback (most recent call last):
File “/home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter/task_manager.py”, line 135, in _convert_pdf_to_html
task.pdf, task.htmldir, task_manager.max_pages, progress_callback)
File “/home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter/convert.py”, line 311, in pdf_to_html2
pdf_info = self._get_pdf_info_json(pdf)
File “/home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter/convert.py”, line 278, in _get_pdf_info_json
output = _check_output([‘pdfinfo’, pdf])
File “/home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter/convert.py”, line 31, in _check_output
process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs)
File “/usr/lib/python2.7/subprocess.py”, line 711, in init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[2017-09-22 17:21:08,488] [DEBUG] removing temporary document /tmp/tmpoTme6Z.docx
查看英文文档后,该问题已解决,中文版文档中未涉及到这一部分
Install poppler-utils
The package poppler-utils is also required.
On Ubuntu/Debian:
sudo apt-get install poppler-utils
On CentOS/Red Hat:
sudo yum install poppler-utils
新问题:pdf预览成功 但doc显示编码无法识别 求教,日志文件没有错误。
[2017-09-25 11:42:42,906] [DEBUG] Running command: “/usr/bin/python2.7” “-m” “seafes.update_repos” “–logfile” “/home/jinfeng/installed/logs/index.log” “update”, cwd = /home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafes
[2017-09-25 11:50:51,684] [DEBUG] start to fetch task <type: docx, id: baba4174bd6209eb81dd1b071ae5cd256b4df414>
[2017-09-25 11:50:51,739] [DEBUG] start to convert task <type: docx, id: baba4174bd6209eb81dd1b071ae5cd256b4df414>
[2017-09-25 11:50:52,117] [DEBUG] succefully converted <type: docx, id: baba4174bd6209eb81dd1b071ae5cd256b4df414> to pdf
[2017-09-25 11:50:53,135] [DEBUG] successfully convert <type: docx, id: baba4174bd6209eb81dd1b071ae5cd256b4df414> to html
[2017-09-25 11:50:53,135] [DEBUG] removing temporary document /tmp/tmpxwlGUO.docx
[2017-09-25 11:52:26,940] [INFO] starts to send email
[2017-09-25 11:52:26,940] [DEBUG] Running command: “/usr/bin/python2.7” “/home/jinfeng/installed/seafile-pro-server-6.1.8/seahub/manage.py” “send_notices”, cwd = /home/jinfeng/installed/seafile-pro-server-6.1.8/seahub
[2017-09-25 11:52:26,945] [DEBUG] Running command: “/usr/bin/python2.7” “/home/jinfeng/installed/seafile-pro-server-6.1.8/seahub/manage.py” “send_queued_mail”, cwd = /home/jinfeng/installed/seafile-pro-server-6.1.8/seahub
[2017-09-25 11:52:42,925] [INFO] starts to index files
[2017-09-25 11:52:42,926] [DEBUG] Running command: “/usr/bin/python2.7” “-m” “seafes.update_repos” “–logfile” “/home/jinfeng/installed/logs/index.log” “update”, cwd = /home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafes
[2017-09-25 11:56:32,694] [DEBUG] start to fetch task <type: pdf, id: 8ba0b7be13e34318987d1d6b272d9351526b7c50>
[2017-09-25 11:56:38,935] [DEBUG] successfully convert <type: pdf, id: 8ba0b7be13e34318987d1d6b272d9351526b7c50> to html
[2017-09-25 11:56:38,935] [DEBUG] removing temporary document /tmp/tmpWIA6aw.pdf
[2017-09-25 12:02:42,983] [INFO] starts to index files
[2017-09-25 12:02:42,983] [DEBUG] Running command: “/usr/bin/python2.7” “-m” “seafes.update_repos” “–logfile” “/home/jinfeng/installed/logs/index.log” “update”, cwd = /home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafes
[2017-09-25 12:06:05,716] [DEBUG] start to fetch task <type: pdf, id: 135f6159b684044c12dabf63ddd3cc8f6ad53a73>
[2017-09-25 12:06:58,010] [DEBUG] successfully convert <type: pdf, id: 135f6159b684044c12dabf63ddd3cc8f6ad53a73> to html
[2017-09-25 12:06:58,010] [DEBUG] removing temporary document /tmp/tmplinzRC.pdf
[2017-09-25 12:09:19,477] [INFO] exit with code 0
[2017-09-25 12:09:19,477] [INFO] stop libreoffice…
[2017-09-25 12:09:19,478] [INFO] remove pidfile /home/jinfeng/installed/pids/seafevents.pid
[2017-09-25 12:09:27,467] [INFO] audit is enabled
[2017-09-25 12:09:27,468] [INFO] [seafevents] database: mysql, name: seahub-db
[2017-09-25 12:09:27,565] [DEBUG] seafes enabled: True
[2017-09-25 12:09:27,566] [DEBUG] seafes dir: /home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafes
[2017-09-25 12:09:27,566] [DEBUG] seafes logfile: /home/jinfeng/installed/logs/index.log
[2017-09-25 12:09:27,566] [DEBUG] seafes index interval: 600 sec
[2017-09-25 12:09:27,566] [DEBUG] seafes index office/pdf: True
[2017-09-25 12:09:27,566] [DEBUG] seahub email enabled: True
[2017-09-25 12:09:27,566] [DEBUG] seahub dir: /home/jinfeng/installed/seafile-pro-server-6.1.8/seahub
[2017-09-25 12:09:27,566] [DEBUG] send seahub email interval: 1800 sec
[2017-09-25 12:09:27,566] [INFO] LDAP section is not set, disable ldap sync.
[2017-09-25 12:09:27,566] [INFO] [virus_scan] scan_command option is not found in /home/jinfeng/installed/conf/seafile.conf, disable virus scan.
[2017-09-25 12:09:27,567] [DEBUG] office enabled: True
[2017-09-25 12:09:27,571] [DEBUG] office convert workers: 3
[2017-09-25 12:09:27,571] [DEBUG] office outputdir: /tmp/seafile-office-output
[2017-09-25 12:09:27,571] [DEBUG] office convert max pages: 50
[2017-09-25 12:09:27,571] [DEBUG] office convert max size: 10 MB
[2017-09-25 12:09:27,572] [INFO] [seafevents] database: mysql, name: seahub-db
[2017-09-25 12:09:27,593] [DEBUG] using config file /home/jinfeng/installed/conf/ccnet.conf
[2017-09-25 12:09:27,593] [INFO] try to connect to ccnet-server…
[2017-09-25 12:09:27,595] [INFO] connected to ccnet server
[2017-09-25 12:09:27,595] [DEBUG] using config file /home/jinfeng/installed/conf/ccnet.conf
[2017-09-25 12:09:27,600] [INFO] listen to mq: set([‘seaf_server.event’, ‘seahub.stats’])
[2017-09-25 12:09:27,600] [INFO] staring background tasks
[2017-09-25 12:09:27,600] [INFO] search indexer is started, interval = 600 sec
[2017-09-25 12:09:27,600] [INFO] seahub email sender is started, interval = 1800 sec
[2017-09-25 12:09:27,600] [INFO] ldap sync is disabled
[2017-09-25 12:09:27,600] [INFO] virus scan is disabled
[2017-09-25 12:09:28,608] [INFO] unoconv process will use python 3
[2017-09-25 12:09:28,608] [DEBUG] Running command: “/usr/bin/python3” “/home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter/unoconv.py” “-vvv” “–pipe” “seafilepipe” “-l”, cwd = /home/jinfeng/installed/seafile-pro-server-6.1.8/pro/python/seafevents/office_converter
[2017-09-25 12:09:28,625] [INFO] office converter started
[2017-09-25 12:09:44,654] [DEBUG] using config file /home/jinfeng/installed/conf/ccnet.conf
[2017-09-25 12:11:30,049] [DEBUG] start to fetch task <type: pdf, id: e2d2e3f5a4e3fca39e25bc49deb353e7f6cb7224>
[2017-09-25 12:13:39,215] [DEBUG] start to fetch task <type: pdf, id: e36bbcdfef3b8b13268af42aa7e48a1b9e203e01>
[2017-09-25 12:13:48,320] [DEBUG] successfully convert <type: pdf, id: e36bbcdfef3b8b13268af42aa7e48a1b9e203e01> to html
[2017-09-25 12:13:48,321] [DEBUG] removing temporary document /tmp/tmpMJYtkO.pdf
[2017-09-25 12:14:53,771] [DEBUG] successfully convert <type: pdf, id: e2d2e3f5a4e3fca39e25bc49deb353e7f6cb7224> to html
[2017-09-25 12:14:53,771] [DEBUG] removing temporary document /tmp/tmp9XMfWZ.pdf
重启seafile+seahub故障排除
如故障依旧尝试重启服务器
试过了,还是没有解决
试过了,还是没有解决