• Redmine More Previews不能预览文件
    yangbo  •  13天前  •  463次点击

    安装的是Redmine More Previews5.0.8,在服务器上也安装了LibreOffice7.6.4.1(X86-64)版本,

    在浏览器客户端打开Redmine(5.0.3)还是预览不了WORD等文件。

    问题可能 出在哪里?

  • Redminecn Admin 5个月前
    #1
    1. 检查后台LibreOffice是否为打勾状态(证明系统已检测到已安装的LibreOffice)
    2. 检查项目配置中是否启用勾选了 "Redmine More Previews"
    3. 如果都没问题就重启下Redmine再试试
  • Redminecn Admin 5个月前
    #2

    同时在插件配置里要检查下想要预览的文件格式是否勾选上了

  • yangbo 5个月前
    #3

    这里是是不是表现插件没有识别到已安装的LibreOffiec???

    LibreOffice上是否还需要 配置?

  • yangbo 5个月前
    #4

    Redminecn Admin同志,你服务器上否可以成功预览,LibreOffice版本是什么?

  • Redminecn Admin 5个月前
    #5
    yangbo #4 回复

    安装官网最新的版本就可以

  • yangbo 5个月前
    #6

    可使用LibreOffice显示叹号,看来是没有识别,还需要其它配置嘛?

  • Redminecn Admin 5个月前
    #7
    yangbo #6 回复

    需要保证 libreoffice 和 redmine服务在同一环境

  • Redminecn Admin 5个月前
    #8

    无需额外配置

  • yangbo 5个月前
    #9

    我理解就是在服务器端,将两个软件安装部署在一起,用户应该不用再安装了吧?

  • Redminecn Admin 5个月前
    #10
    yangbo #9 回复

    对的,用户不需要安装,网页上就可以直接浏览内容

  • yangbo 5个月前
    #11

    5.0.3版本这块“可使用 libreoffice”这块就是显示叹号,找不到原因?

  • Redminecn Admin 5个月前
    #12
    yangbo #11 回复

    你的redmine是bitnami安装的吗?还是linux?

  • yangbo 5个月前
    #13

    是的,WIN2022上安装Redmine的bitnami一键安装版

  • yangbo 3个月前
    #14

    最近重装Redmine More Previews5.0.8,bundle install命令后,Thin redmine和Thine redmine2 服务就起不来。

    安装命令如下,没看出有什么问题:

    在production.log下内容,也看不出问题在哪?

    W, [2024-03-06T23:06:39.143155 #9044]  WARN -- : Creating scope :system. Overwriting existing method Enumeration.system.
    W, [2024-03-06T23:06:39.234276 #7360]  WARN -- : Creating scope :system. Overwriting existing method Enumeration.system.
    I, [2024-03-06T23:06:39.719357 #9044]  INFO -- : RedmineMorePreviews:
    scanning plugins
    I, [2024-03-06T23:06:39.719863 #9044]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/cliff
    I, [2024-03-06T23:06:39.719945 #9044]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/libre
    I, [2024-03-06T23:06:39.720009 #9044]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/maggie
    I, [2024-03-06T23:06:39.720106 #9044]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/mark
    I, [2024-03-06T23:06:39.720170 #9044]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/nil_text
    I, [2024-03-06T23:06:39.720231 #9044]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/pass
    I, [2024-03-06T23:06:39.720290 #9044]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/peek
    I, [2024-03-06T23:06:39.720448 #9044]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/teddie
    I, [2024-03-06T23:06:39.720514 #9044]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/vince
    I, [2024-03-06T23:06:39.720731 #9044]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/zippy
    I, [2024-03-06T23:06:39.813464 #7360]  INFO -- : RedmineMorePreviews: scanning plugins
    I, [2024-03-06T23:06:39.813793 #7360]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/cliff
    I, [2024-03-06T23:06:39.813896 #7360]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/libre
    I, [2024-03-06T23:06:39.813964 #7360]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/maggie
    I, [2024-03-06T23:06:39.814025 #7360]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/mark
    I, [2024-03-06T23:06:39.814085 #7360]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/nil_text
    I, [2024-03-06T23:06:39.814144 #7360]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/pass
    I, [2024-03-06T23:06:39.814203 #7360]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/peek
    I, [2024-03-06T23:06:39.814262 #7360]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/teddie
    I, [2024-03-06T23:06:39.814321 #7360]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/vince
    I, [2024-03-06T23:06:39.814395 #7360]  INFO -- : D:/Bitnami/redmine-5.0.3-0/apps/redmine/htdocs/plugins/redmine_more_previews/converters/zippy
    W, [2024-03-06T23:06:40.558033 #9044]  WARN -- : Creating scope :sorted. Overwriting existing method User.sorted.
    W, [2024-03-06T23:06:40.558504 #7360]  WARN -- : Creating scope :sorted. Overwriting existing method User.sorted.
    W, [2024-03-06T23:07:28.614285 #6212]  WARN -- : Creating scope :system. Overwriting existing method Enumeration.system.
    W, [2024-03-06T23:07:29.003448 #6212]  WARN -- : Creating scope :sorted. Overwriting existing method User.sorted.
    W, [2024-03-06T23:07:29.476857 #6212]  WARN -- : Creating scope :visible. Overwriting existing method FavoriteProjectsQuery.visible.
    W, [2024-03-06T23:07:29.577191 #6212]  WARN -- : Creating scope :visible. Overwriting existing method PeopleQuery.visible.
    W, [2024-03-06T23:07:29.991999 #6212]  WARN -- : Creating scope :sorted. Overwriting existing method Group.sorted.
    W, [2024-03-06T23:07:31.562525 #9420]  WARN -- : Creating scope :system. Overwriting existing method Enumeration.system.
    W, [2024-03-06T23:07:31.949659 #9420]  WARN -- : Creating scope :sorted. Overwriting existing method User.sorted.
    W, [2024-03-06T23:07:32.401552 #9420]  WARN -- : Creating scope :visible. Overwriting existing method FavoriteProjectsQuery.visible.
    W, [2024-03-06T23:07:32.501890 #9420]  WARN -- : Creating scope :visible. Overwriting existing method PeopleQuery.visible.
    W, [2024-03-06T23:07:32.920126 #9420]  WARN -- : Creating scope :sorted. Overwriting existing method Group.sorted.
    I, [2024-03-06T23:07:34.776184 #6212]  INFO -- : [bdf10cd2-86e6-4a86-8dd1-281c564a215b] Started GET "/redmine/" for 111.197.236.69 at 2024-03-06 23:07:34 +0800
    I, [2024-03-06T23:07:34.777325 #6212]  INFO -- : [bdf10cd2-86e6-4a86-8dd1-281c564a215b] Processing by WelcomeController#index as HTML
    I, [2024-03-06T23:07:34.900010 #6212]  INFO -- : [bdf10cd2-86e6-4a86-8dd1-281c564a215b]   Current user: anonymous
    I, [2024-03-06T23:07:35.224105 #6212]  INFO -- : [bdf10cd2-86e6-4a86-8dd1-281c564a215b]   Rendered welcome/index.html.erb within layouts/base (Duration: 56.4ms | Allocations: 14810)
    I, [2024-03-06T23:07:35.329561 #6212]  INFO -- : [bdf10cd2-86e6-4a86-8dd1-281c564a215b]   Rendered layout layouts/base.html.erb (Duration: 162.0ms | Allocations: 31833)
    I, [2024-03-06T23:07:35.330459 #6212]  INFO -- : [bdf10cd2-86e6-4a86-8dd1-281c564a215b] Completed 200 OK in 553ms (Views: 104.0ms | ActiveRecord: 220.8ms | Allocations: 137318)
     

  • Redminecn Admin 3个月前
    #15
    yangbo #14 回复

    看下启动时的错误日志

  • Redminecn Admin 3个月前
    #16
    yangbo #14 回复

    或者先进入 use_redmine.bat 然后进入到htdoc目录下执行下面的命令,也能看出报错信息:

    bundle exec rails server -p 3000 -b 0.0.0.0 -e production

     

  • yangbo 3个月前
    #17

  • yangbo 3个月前
    #18

  • Redminecn Admin 3个月前
    #19
    yangbo #17 回复


    是这个插件的问题,先把这个插件移出掉再试

  • yangbo 3个月前
    #20

    是的,已经删除 后,Thine服务不报错,可以运行起来,但在插件界面中点击配置,就打不开了。

  • yangbo 3个月前
    #21

    在哪里可以找到错误日志??

     

  • yangbo 3个月前
    #22

    点击“配置”过一会,报502错误,如下图:

  • Redminecn Admin 3个月前
    #23
    yangbo #22 回复

    看起来是响应超时,估计是连接 office 有问题

  • yangbo 3个月前
    #24

    我感觉跟libreOffice没有什么关系吧,只是安装好插件,配置按钮都点不开。此外刚更新的“Redmine DMSF 支持审批、版本管理、预览和编辑 Office 文档管理系统功能插件”可以取代Redmine More Previews嘛?能实现Word,excel在线预览?

  • Redminecn Admin 3个月前
    #25
    yangbo #24 回复

    因为没看到日志,现在只是分析:
    你说的现象是点击配置然后过一会才出现的这个报错,很有可能是配置页面含有检测服务是否正常的机制,Proxy Error里又是和连接有关,所以有这个猜测,最好是能看到连接过程的日志(apache服务的日志)
     

  • yangbo 3个月前
    #26

  • yangbo 3个月前
    #27

    查了5184,就是Apache服务,如下图所示:

  • yangbo 3个月前
    #28

    看代理错误,涉及111.197.236.69这个IP几个端口,我在自己笔记本上测试端口都不通。

  • Redminecn Admin 3个月前
    #29
    yangbo #28 回复

    这几个端口上是什么服务?把防火墙关掉试试呢

  • yangbo 2个月前
    #30

    原来安装好用的服务器上,该配件的:”配置“也点不开,但不影响在线预览WORD和Excel。

     

  • yangbo 2个月前
    #31

    已解决,插件与LibreOffice版本兼容性有问题。

  • chenxu 13天前
    #32
    yangbo #31 回复

    请问LibreOffice最后装的哪个版本解决的

  • 为 Redmine 爱好者打造的知识社区,其中包含 Redmine 插件资源、使用交流、二次开发、插件安装、配置优化等
    已注册用户请 登录
  • 参与人
© 2023 Redminecn.com 版权所有

辽ICP备18016669号-2

粤公网安备 44030602007921号