ONLYOFFICE / onlyoffice-redmine

The app which enables the users to edit office documents from Redmine using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and to save back those changes to Redmine
Apache License 2.0
22 stars 11 forks source link

Unable to install dependencies #171

Open Plinsboorg opened 5 months ago

Plinsboorg commented 5 months ago

Hi. I'm trying to install your plugin for the first time on my homelab redmine setup. Unfortuantley I can't install the bundle correctly. Please see the log below:

bundle install Fetching gem metadata from https://rubygems.org/......... Using rake 13.0.6 Using minitest 5.19.0 Using zeitwerk 2.6.11 Using builder 3.2.4 Using erubi 1.12.0 Using concurrent-ruby 1.2.2 Using crass 1.0.6 Using rack 2.2.8 Using websocket-extensions 0.1.5 Using marcel 1.0.2 Using date 3.3.3 Using mini_mime 1.1.5 Using timeout 0.4.0 Using bundler 2.4.10 Using jwt 2.7.1 Using mustache 1.1.1 Using thor 1.2.2 Using sorbet-runtime 0.5.10969 Using i18n 1.10.0 Using tzinfo 2.0.6 Using rack-test 2.1.0 Using sprockets 4.2.0 Using websocket-driver 0.7.6 Using net-protocol 0.2.1 Using method_source 1.0.0 Using activesupport 6.1.4.7 Using net-imap 0.3.7 Using net-pop 0.1.2 Using globalid 1.1.0 Using activemodel 6.1.4.7 Using net-smtp 0.3.3 Using activejob 6.1.4.7 Using activerecord 6.1.4.7 Using mail 2.8.1 Installing racc 1.7.1 with native extensions Installing nio4r 2.5.9 with native extensions Bundler::DirectoryRemovalError: Could not delete previous installation of /usr/local/bundle/extensions/x86_64-linux/3.2.0/racc-1.7.1. The underlying error was ArgumentError: parent directory is world writable, Bundler::FileUtils#remove_entry_secure does not work; abort: "/usr/local/bundle/extensions/x86_64-linux/3.2.0/racc-1.7.1" (parent directory mode 40777), with backtrace: /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/vendor/fileutils/lib/fileutils.rb:1387:in remove_entry_secure' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler.rb:340:inrm_rf' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/rubygems_gem_installer.rb:111:in strict_rm_rf' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/rubygems_gem_installer.rb:20:ininstall' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/source/rubygems.rb:200:in install' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/installer/gem_installer.rb:54:ininstall' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/installer/gem_installer.rb:16:in install_from_spec' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/installer/parallel_installer.rb:156:indo_install' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/installer/parallel_installer.rb:147:in block in worker_pool' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/worker.rb:62:inapply_func' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/worker.rb:57:in block in process_queue' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/worker.rb:54:inloop' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/worker.rb:54:in process_queue' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/worker.rb:90:inblock (2 levels) in create_threads'

Bundler Error Backtrace: /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/rubygems_gem_installer.rb:115:in rescue in strict_rm_rf' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/rubygems_gem_installer.rb:110:instrict_rm_rf' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/rubygems_gem_installer.rb:20:in install' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/source/rubygems.rb:200:ininstall' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/installer/gem_installer.rb:54:in install' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/installer/gem_installer.rb:16:ininstall_from_spec' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/installer/parallel_installer.rb:156:in do_install' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/installer/parallel_installer.rb:147:inblock in worker_pool' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/worker.rb:62:in apply_func' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/worker.rb:57:inblock in process_queue' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/worker.rb:54:in loop' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/worker.rb:54:inprocess_queue' /usr/local/bundle/gems/bundler-2.4.10/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

An error occurred while installing racc (1.7.1), and Bundler cannot continue.

In Gemfile: render_parent was resolved to 0.1.0, which depends on rails was resolved to 6.1.4.7, which depends on actioncable was resolved to 6.1.4.7, which depends on actionpack was resolved to 6.1.4.7, which depends on actionview was resolved to 6.1.4.7, which depends on rails-dom-testing was resolved to 2.2.0, which depends on nokogiri was resolved to 1.15.4, which depends on racc

Plugin source code: release v3.1.0 Environment: Redmine version 5.1.1.stable Ruby version 3.2.3-p157 (2024-01-18) [x86_64-linux] Rails version 6.1.7.6 Environment production Database adapter PostgreSQL

I struggled to find on your github page what Redmine version is supported by your plugin. Please, let me know if you support the version 5.1.1 and if I should take the code from some other branch for it to work. Thank you