Project

General

Profile

plugin for office preview

Added by isaac gao almost 3 years ago

Hi
I deployed the redmine system with Docker, mainly for wikis.
Now I want to install a plugin to preview attachments in the wiki (doc, Excel, PDF....) I found two plugins available as redmine_more_previews and onlyOffice-Redmine.
I try the plugin redmine_more_previews first, and install libreoffice in dockers (apt-get install libreoffice)
The following error occurred when I followed the plug-in's installation instructions and finally executed the "bundle install".

================================================================================================================================================
[!] There was an error parsing `Gemfile`:
[!] There was an error parsing `Gemfile`:
[!] There was an error parsing `Gemfile`: You cannot specify the same gem twice with different version requirements.
You specified: rubyzip (~> 2.3.0) and rubyzip (>= 0). Bundler cannot continue.

  1. from /usr/src/redmine/plugins/redmine_more_previews/converters/zippy/Gemfile:1
  2. -------------------------------------------
    > gem 'rubyzip'
  3. gem 'zlib'
  4. -------------------------------------------
    . Bundler cannot continue.
  1. from /usr/src/redmine/plugins/redmine_more_previews/Gemfile:3
  2. -------------------------------------------
  3. Dir.glob File.expand_path("../converters/*/{Gemfile,PluginGemfile}", FILE) do |file|
    > eval_gemfile file
  4. end
  5. -------------------------------------------
    . Bundler cannot continue.
  1. from /usr/src/redmine/Gemfile:109
  2. -------------------------------------------
  3. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", FILE) do |file|
    > eval_gemfile file
  4. end
  5. -------------------------------------------
================================================================================================================================================

Then I replaced Gemfile in the plug-in with Gemfile in the root directory of RedMine, and no error was reported. But when I restart the RedMine container, it exits automatically.

Has anyone had this problem?

The systeminfomation as below.
Environment:
Redmine version 4.2.3.stable
Ruby version 2.7.4-p191 (2021-07-07) [x86_64-linux]
Rails version 5.2.6
Environment production
Database adapter PostgreSQL
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Subversion 1.10.4
Mercurial 4.8.2
Bazaar 2.8.0
Git 2.20.1
Filesystem
Redmine plugins:
redmine_wiki_extensions 0.9.3