Closed maxconqueror closed 9 months ago
It looks like a bundle install has not been done, since the error says that activerecord-compatible_legacy_migration is not found. Can you please detail the steps involved in the installation?
Hi, I installed it as instructed below :
cd {RAILS_ROOT}/plugins git clone https://github.com/onozaty/redmine-view-customize.git view_customize cd ../ bundle install --without development test bundle exec rake redmine:plugins:migrate RAILS_ENV=production
I checked with the gem list command and found that activerecord-compatible_legacy_migration has been installed
Thank you so very much,
Thank you for sharing your steps.
Are you saying that this error occurs even though activerecord-compatible_legacy_migration is installed?
Am I correct that the error does not occur when executing bundle exec rake redmine:plugins:migrate RAILS_ENV=production
, but it occurs when accessing the Redmine page?
Thanks.
Hi,
This error also occurs when I install some other plugins. I don't have much experience with errors like this, I hope you can help.
Thanks for your patience.
I created a similar environment at hand and tried it. I was able to install and use Redmine without any problems.
I do not know why the error occurs in your environment. The error message is that compatible_legacy_migration is not installed, but I don't know why.
Thanks.
Can you check activerecord-compatible_legacy_migration with the bundle list
command?
Hi,
[root@inservr redmine]# gem list
LOCAL GEMS
actioncable (5.2.6) actionmailer (5.2.6) actionpack (5.2.6) actionpack-xml_parser (2.0.1) actionview (5.2.6) activejob (5.2.6) activemodel (5.2.6) activerecord (5.2.6) activerecord-compatible_legacy_migration (0.1.2) activestorage (5.2.6) activesupport (5.2.6) addressable (2.8.0) arel (9.0.0) benchmark (default: 0.1.0) bigdecimal (default: 2.0.0) builder (3.2.4) bundler (2.2.32, default: 2.1.4) cgi (default: 0.1.0) chronic (0.10.2) chunky_png (1.4.0) concurrent-ruby (1.1.9) ......
Here is result, Thank you!
Please also tell me the result of the bundle list
command.
Hi, thanks for your patience. It here:
[root@insevr redmine]# bundle list Gems included by the bundle:
bundle info
to print more detailed information about a gem
[root@insevr redmine]#I apologize again and again.
Could you please try the bundle list --paths
command as well?
[root@insevr redmine]# bundle list --paths
/root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actioncable-5.2.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionmailer-5.2.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-5.2.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionpack-xml_parser-2.0.1 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/actionview-5.2.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activejob-5.2.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activemodel-5.2.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-5.2.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activestorage-5.2.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-5.2.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/addressable-2.8.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/arel-9.0.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/builder-3.2.4 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/chunky_png-1.4.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/concurrent-ruby-1.1.9 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/crass-1.0.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/css_parser-1.10.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/csv-3.1.9 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/erubi-1.10.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/globalid-0.5.2 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/htmlentities-4.3.4 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/i18n-1.8.11 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/loofah-2.12.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/mail-2.7.1 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/marcel-1.0.2 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/method_source-1.0.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/mini_magick-4.11.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/mini_mime-1.0.3 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/minitest-5.14.4 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/mysql2-0.5.3 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/net-ldap-0.17.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/nio4r-2.5.8 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/nokogiri-1.11.7-x86_64-linux /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/public_suffix-4.0.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/racc-1.6.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-openid-1.4.2 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-test-1.1.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rails-5.2.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rails-dom-testing-2.0.3 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rails-html-sanitizer-1.4.2 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-5.2.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rake-13.0.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rbpdf-1.20.1 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rbpdf-font-1.19.1 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/redcarpet-3.5.1 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/request_store-1.5.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/roadie-4.0.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/roadie-rails-2.2.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rotp-6.2.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rouge-3.26.1 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rqrcode-2.1.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rqrcode_core-1.2.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ruby-openid-2.9.2 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rubyzip-2.3.2 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/sprockets-4.0.2 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/sprockets-rails-3.3.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.1.0 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/thread_safe-0.3.6 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/tzinfo-1.2.9 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/websocket-driver-0.7.5 /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/websocket-extensions-0.1.5
Thank you so much,
Thank you. Maybe there is something wrong with the activerecord-compatible_legacy_migration installation path, as it is not outputting it.
Thank you, I also tried several troubleshooting guides but it doesn't work.
What are the results of the following two commands?
ls -l /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems
gem list -d
Hi, For the first cmd, result here: _total 12 drwxr-xr-x. 3 root root 73 Nov 24 2021 actioncable-5.2.6 drwxr-xr-x. 3 root root 75 Nov 24 2021 actionmailer-5.2.6 drwxr-xr-x. 3 root root 75 Nov 24 2021 actionpack-5.2.6 drwxr-xr-x. 3 root root 49 Nov 24 2021 actionpack-xml_parser-2.0.1 drwxr-xr-x. 3 root root 75 Nov 24 2021 actionview-5.2.6 drwxr-xr-x. 3 root root 73 Nov 24 2021 activejob-5.2.6 drwxr-xr-x. 3 root root 75 Nov 24 2021 activemodel-5.2.6 drwxr-xr-x. 4 root root 91 Nov 24 2021 activerecord-5.2.6 drwxr-xr-x. 6 root root 256 Jan 10 09:17 activerecord-compatible_legacy_migration-0.1.2 drwxr-xr-x. 6 root root 108 Nov 24 2021 activestorage-5.2.6 drwxr-xr-x. 3 root root 75 Nov 24 2021 activesupport-5.2.6 drwxr-xr-x. 6 root root 168 Nov 24 2021 addressable-2.8.0 drwxr-xr-x. 3 root root 76 Nov 24 2021 arel-9.0.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 benchmark-0.1.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 bigdecimal-2.0.0 drwxr-xr-x. 6 root root 166 Nov 24 2021 builder-3.2.4 drwxr-xr-x. 4 root root 106 Jan 14 13:01 bundler-2.2.32 drwxr-xr-x. 2 root root 6 Nov 24 2021 cgi-0.1.0 drwxr-xr-x. 4 root root 155 Jan 8 08:13 chronic-0.10.2 drwxr-xr-x. 9 root root 4096 Nov 24 2021 chunky_png-1.4.0 drwxr-xr-x. 4 root root 115 Nov 24 2021 concurrent-ruby-1.1.9 drwxr-xr-x. 3 root root 173 Nov 24 2021 crass-1.0.6 drwxr-xr-x. 3 root root 36 Nov 24 2021 css_parser-1.10.0 drwxr-xr-x. 4 root root 79 Nov 24 2021 csv-3.1.9 drwxr-xr-x. 2 root root 6 Nov 24 2021 date-3.0.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 dbm-1.1.0 drwxr-xr-x. 6 root root 263 Dec 1 2021 deface-1.5.3 drwxr-xr-x. 2 root root 6 Nov 24 2021 delegate-0.1.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 did_you_mean-1.4.0 drwxr-xr-x. 3 root root 88 Nov 24 2021 erubi-1.10.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 etc-1.1.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 fcntl-1.0.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 fiddle-1.0.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 fileutils-1.4.1 drwxr-xr-x. 2 root root 6 Nov 24 2021 forwardable-1.3.1 drwxr-xr-x. 2 root root 6 Nov 24 2021 getoptlong-0.1.0 drwxr-xr-x. 3 root root 53 Dec 1 2021 globalid-0.5.2 drwxr-xr-x. 3 root root 53 Dec 1 2021 globalid-1.0.0 drwxr-xr-x. 6 root root 230 Jan 10 03:36 haml-6.3.0 drwxr-xr-x. 4 root root 195 Jan 8 08:13 hash-deep-merge-0.1.1 drwxr-xr-x. 5 root root 79 Nov 24 2021 htmlentities-4.3.4 drwxr-xr-x. 3 root root 53 Nov 24 2021 i18n-1.8.11 drwxr-xr-x. 2 root root 6 Nov 24 2021 io-console-0.5.6 drwxr-xr-x. 2 root root 6 Nov 24 2021 ipaddr-1.2.2 drwxr-xr-x. 3 root root 17 Nov 24 2021 irb-1.2.6 drwxr-xr-x. 2 root root 6 Nov 24 2021 json-2.3.0 drwxr-xr-x. 4 root root 262 Jan 8 08:13 lazy_high_charts-1.6.1 drwxr-xr-x. 4 root root 83 Jan 8 08:26 liquid-2.4.1 drwxr-xr-x. 4 root root 83 Jan 8 09:10 liquid-2.6.3 drwxr-xr-x. 2 root root 6 Nov 24 2021 logger-1.4.2 drwxr-xr-x. 3 root root 96 Nov 24 2021 loofah-2.12.0 drwxr-xr-x. 3 root root 53 Nov 24 2021 mail-2.7.1 drwxr-xr-x. 3 root root 75 Nov 24 2021 marcel-1.0.2 drwxr-xr-x. 2 root root 6 Nov 24 2021 matrix-0.2.0 drwxr-xr-x. 5 root root 197 Nov 24 2021 method_source-1.0.0 drwxr-xr-x. 3 root root 52 Nov 24 2021 mini_magick-4.11.0 drwxr-xr-x. 6 root root 229 Nov 24 2021 mini_mime-1.0.3 drwxr-xr-x. 4 root root 148 Nov 24 2021 minitest-5.14.4 drwxr-xr-x. 2 root root 6 Nov 24 2021 mutex_m-0.1.0 drwxr-xr-x. 5 root root 95 Nov 24 2021 mysql2-0.5.3 drwxr-xr-x. 3 root root 121 Nov 24 2021 net-ldap-0.17.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 net-pop-0.1.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 net-smtp-0.1.0 drwxr-xr-x. 8 root root 241 Nov 24 2021 nio4r-2.5.8 drwxr-xr-x. 6 root root 188 Jan 10 08:05 nkf-0.1.3 drwxr-xr-x. 5 root root 144 Nov 24 2021 nokogiri-1.11.7-x86_64-linux drwxr-xr-x. 2 root root 6 Nov 24 2021 observer-0.1.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 open3-0.1.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 openssl-2.1.2 drwxr-xr-x. 2 root root 6 Nov 24 2021 ostruct-0.2.0 drwxr-xr-x. 4 root root 140 Jan 8 08:26 pdf-core-0.2.5 drwxr-xr-x. 3 root root 128 Jan 8 09:59 pdf-core-0.9.0 drwxr-xr-x. 5 root root 278 Jan 8 08:13 pdfkit-0.8.7.3 drwxr-xr-x. 3 root root 89 Dec 1 2021 polyglot-0.3.5 drwxr-xr-x. 6 root root 180 Jan 8 08:26 prawn-1.0.0 drwxr-xr-x. 6 root root 180 Jan 8 09:59 prawn-2.4.0 drwxr-xr-x. 5 root root 121 Jan 8 09:59 prawn-qrcode-0.5.2 drwxr-xr-x. 4 root root 97 Jan 8 09:59 prawn-rails-1.4.2 drwxr-xr-x. 5 root root 141 Jan 8 09:59 prawn-table-0.2.2 drwxr-xr-x. 2 root root 6 Nov 24 2021 prime-0.1.1 drwxr-xr-x. 2 root root 6 Nov 24 2021 pstore-0.1.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 psych-3.1.0 drwxr-xr-x. 7 root root 4096 Nov 24 2021 public_suffix-4.0.6 drwxr-xr-x. 6 root root 135 Nov 24 2021 racc-1.6.0 drwxr-xr-x. 6 root root 192 Nov 24 2021 rack-2.2.3 drwxr-xr-x. 6 root root 192 Jan 14 13:16 rack-2.2.8 drwxr-xr-x. 3 root root 17 Nov 24 2021 rack-openid-1.4.2 drwxr-xr-x. 3 root root 75 Nov 24 2021 rack-test-1.1.0 drwxr-xr-x. 3 root root 71 Jan 14 13:16 rackup-1.0.0 drwxr-xr-x. 2 root root 23 Nov 24 2021 rails-5.2.6 drwxr-xr-x. 4 root root 65 Nov 24 2021 rails-dom-testing-2.0.3 drwxr-xr-x. 4 root root 85 Nov 24 2021 rails-html-sanitizer-1.4.2 drwxr-xr-x. 4 root root 108 Nov 24 2021 railties-5.2.6 drwxr-xr-x. 4 root root 260 Dec 1 2021 rainbow-3.0.0 drwxr-xr-x. 5 root root 117 Nov 24 2021 rake-13.0.6 drwxr-xr-x. 3 root root 211 Nov 24 2021 rbpdf-1.20.1 drwxr-xr-x. 4 root root 143 Nov 24 2021 rbpdf-font-1.19.1 drwxr-xr-x. 3 root root 17 Nov 24 2021 rdoc-6.2.1 drwxr-xr-x. 2 root root 6 Nov 24 2021 readline-0.0.2 drwxr-xr-x. 2 root root 6 Nov 24 2021 readline-ext-0.1.0 drwxr-xr-x. 6 root root 145 Nov 24 2021 redcarpet-3.5.1 drwxr-xr-x. 8 root root 203 Jan 8 09:10 redmine_crm-0.0.63 drwxr-xr-x. 2 root root 6 Nov 24 2021 reline-0.1.5 drwxr-xr-x. 4 root root 162 Nov 24 2021 request_store-1.5.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 rexml-3.2.3 drwxr-xr-x. 4 root root 225 Nov 24 2021 roadie-4.0.0 drwxr-xr-x. 3 root root 244 Nov 24 2021 roadie-rails-2.2.0 drwxr-xr-x. 6 root root 4096 Nov 24 2021 rotp-6.2.0 drwxr-xr-x. 4 root root 79 Nov 24 2021 rouge-3.26.1 drwxr-xr-x. 6 root root 238 Nov 24 2021 rqrcode-2.1.0 drwxr-xr-x. 5 root root 196 Nov 24 2021 rqrcode_core-1.2.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 rss-0.2.8 drwxr-xr-x. 5 root root 131 Jan 8 09:10 ruby-ole-1.2.12.2 drwxr-xr-x. 5 root root 147 Nov 24 2021 ruby-openid-2.9.2 drwxr-xr-x. 4 root root 77 Nov 24 2021 rubyzip-2.3.2 drwxr-xr-x. 2 root root 6 Nov 24 2021 sdbm-1.0.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 singleton-0.1.0 drwxr-xr-x. 7 root root 219 Jan 10 03:21 slim-5.2.0 drwxr-xr-x. 3 root root 69 Jan 10 03:21 slim-rails-3.6.3 drwxr-xr-x. 5 root root 210 Jan 8 09:10 spreadsheet-0.6.9 drwxr-xr-x. 4 root root 65 Nov 24 2021 sprockets-4.0.2 drwxr-xr-x. 3 root root 53 Dec 1 2021 sprockets-rails-3.3.0 drwxr-xr-x. 3 root root 53 Dec 1 2021 sprockets-rails-3.4.1 drwxr-xr-x. 2 root root 6 Nov 24 2021 stringio-0.1.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 strscan-1.0.3 drwxr-xr-x. 4 root root 189 Jan 10 03:21 temple-0.10.3 drwxr-xr-x. 4 root root 143 Nov 24 2021 thor-1.1.0 drwxr-xr-x. 4 root root 123 Jan 14 13:16 thor-1.3.0 drwxr-xr-x. 8 root root 230 Nov 24 2021 thread_safe-0.3.6 drwxr-xr-x. 4 root root 43 Jan 10 03:21 tilt-2.3.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 timeout-0.1.0 drwxr-xr-x. 2 root root 6 Nov 24 2021 tracer-0.1.0 drwxr-xr-x. 5 root root 137 Jan 8 08:26 ttfunk-1.1.1 drwxr-xr-x. 3 root root 110 Jan 8 09:59 ttfunk-1.7.0 drwxr-xr-x. 4 root root 134 Nov 24 2021 tzinfo-1.2.9 drwxr-xr-x. 2 root root 6 Nov 24 2021 uri-0.10.0 drwxr-xr-x. 4 root root 191 Jan 8 09:10 vcard-0.2.16 drwxr-xr-x. 2 root root 6 Nov 24 2021 webrick-1.6.0 drwxr-xr-x. 4 root root 83 Nov 24 2021 websocket-driver-0.7.5 drwxr-xr-x. 3 root root 72 Nov 24 2021 websocket-extensions-0.1.5 drwxr-xr-x. 6 root root 218 Jan 8 08:13 whenever-1.0.0 drwxr-xr-x. 7 root root 269 Jan 8 08:26 wicked_pdf-2.7.0 drwxr-xr-x. 3 root root 17 Jan 8 08:13 wkhtmltopdf-binary-0.12.6.6 drwxr-xr-x. 4 root root 203 Jan 10 08:05 writexlsx-1.11.2 drwxr-xr-x. 2 root root 6 Nov 24 2021 yaml-0.1.0 drwxr-xr-x. 3 root root 53 Jan 14 13:16 zeitwerk-2.6.12 drwxr-xr-x. 2 root root 6 Nov 24 2021 zlib-1.1.0
And the second cmd, result:
_ LOCAL GEMS
actioncable (5.2.6) Authors: Pratik Naik, David Heinemeier Hansson Homepage: http://rubyonrails.org License: MIT Installed at: /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
WebSocket framework for Rails.
actionmailer (5.2.6) Author: David Heinemeier Hansson Homepage: http://rubyonrails.org License: MIT Installed at: /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
Email composition, delivery, and receiving framework (part of
Rails).
actionpack (5.2.6) Author: David Heinemeier Hansson Homepage: http://rubyonrails.org License: MIT Installed at: /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
Web-flow and rendering framework putting the VC in MVC (part of
Rails).
actionpack-xml_parser (2.0.1) Author: Prem Sichanugrist Homepage: http://www.rubyonrails.org License: MIT Installed at: /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
XML parameters parser for Action Pack (removed from core in Rails
4.0)
actionview (5.2.6) Author: David Heinemeier Hansson Homepage: http://rubyonrails.org License: MIT Installed at: /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
Rendering framework putting the V in MVC (part of Rails).
activejob (5.2.6) Author: David Heinemeier Hansson Homepage: http://rubyonrails.org License: MIT Installed at: /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
Job framework with pluggable queues.
activemodel (5.2.6) Author: David Heinemeier Hansson Homepage: http://rubyonrails.org License: MIT Installed at: /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
A toolkit for building modeling frameworks (part of Rails).
activerecord (5.2.6) Author: David Heinemeier Hansson Homepage: http://rubyonrails.org License: MIT Installed at: /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
Object-relational mapper framework (part of Rails).
activerecord-compatible_legacy_migration (0.1.2) Author: sue445 Homepage: https://github.com/sue445/activerecord-compatible_legacy_migration License: MIT Installed at: /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
Compatible migration file between Rails 4.2 and 5+
activestorage (5.2.6) Author: David Heinemeier Hansson Homepage: http://rubyonrails.org License: MIT Installed at: /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
Local and cloud file storage framework.
activesupport (5.2.6) Author: David Heinemeier Hansson Homepage: http://rubyonrails.org License: MIT Installed at: /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
A toolkit of support libraries and Ruby core extensions extracted
from the Rails framework._
.........and more
Thanks,
Could you please execute the following command to try it out?
gem install activerecord-compatible_legacy_migration -v '0.1.2'
Then restart Apache and try to see if Redmine can be displayed.
Hi, I have tried this before but it still shows the same error.
I see the browser displaying this error (can be seen in the first post) : Is this app supposed to be run as the apache user?
. Is it because of it or not?
Hi, I have tried this before but it still shows the same error. I see the browser displaying this error (can be seen in the first post) :
Is this app supposed to be run as the apache user?
. Is it because of it or not?
If you are running Redmine itself under Apache, it will be running as an Apache user. If Redmine runs well with no plug-ins installed, then I don't think it matters which user it is running as.
Can you tell us the contents of .bundle/config
in your Redmine home directory?
Hi,
--- BUNDLE_WITHOUT: "development:test"
On my Redmine, some plugins install and run normally, some have errors. I'm quite confused with this
Thanks.
Sorry for repeating. Could you also try the following command?
ls -la /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-compatible_legacy_migration-0.1.2
Hi,
total 48 drwxr-xr-x. 6 root root 256 Jan 14 15:14 . drwxr-xr-x. 150 root root 8192 Jan 15 09:00 .. -rw-r--r--. 1 root root 1886 Jan 14 15:14 activerecord-compatible_legacy_migration.gemspec drwxr-xr-x. 2 root root 34 Jan 14 15:14 bin -rw-r--r--. 1 root root 628 Jan 14 15:14 CHANGELOG.md -rw-r--r--. 1 root root 46 Jan 14 15:14 .coveralls.yml -rw-r--r--. 1 root root 125 Jan 14 15:14 Gemfile drwxr-xr-x. 2 root root 181 Jan 14 15:14 gemfiles drwxr-xr-x. 3 root root 23 Jan 14 15:14 .github -rw-r--r--. 1 root root 97 Jan 14 15:14 .gitignore drwxr-xr-x. 3 root root 78 Jan 14 15:14 lib -rw-r--r--. 1 root root 1073 Jan 14 15:14 LICENSE.txt -rw-r--r--. 1 root root 51 Jan 14 15:14 Rakefile -rw-r--r--. 1 root root 2867 Jan 14 15:14 README.md -rw-r--r--. 1 root root 53 Jan 14 15:14 .rspec
Thanks,
Sorry for repeating. Could you also try the following command?
ls -la /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/
Thanks.
One more thing, please, also below.
ps -aef | grep Passenger
Sorry for repeating. Could you also try the following command?
ls -la /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/
Thanks.
Hi,
total 24 drwxr-xr-x. 135 root root 4096 Nov 14 2021 . drwxr-xr-x. 8 root root 100 Nov 24 2021 .. drwxr-xr-x. 3 root root 73 Nov 14 2021 actioncable-5.2.0 drwxr-xr-x. 3 root root 73 Nov 14 2021 actioncable-5.2.6 drwxr-xr-x. 3 root root 75 Nov 14 2021 actionmailer-5.2.0 drwxr-xr-x. 3 root root 75 Nov 14 2021 actionmailer-5.2.6 drwxr-xr-x. 3 root root 75 Nov 14 2021 actionpack-5.2.0 drwxr-xr-x. 3 root root 75 Nov 14 2021 actionpack-5.2.6 drwxr-xr-x. 3 root root 49 Nov 14 2021 actionpack-xml_parser-2.0.1 drwxr-xr-x. 3 root root 75 Nov 14 2021 actionview-5.2.0 drwxr-xr-x. 3 root root 75 Nov 14 2021 actionview-5.2.6 drwxr-xr-x. 3 root root 73 Nov 14 2021 activejob-5.2.0 drwxr-xr-x. 3 root root 73 Nov 14 2021 activejob-5.2.6 drwxr-xr-x. 3 root root 75 Nov 14 2021 activemodel-5.2.0 drwxr-xr-x. 3 root root 75 Nov 14 2021 activemodel-5.2.6 drwxr-xr-x. 4 root root 91 Nov 14 2021 activerecord-5.2.0 drwxr-xr-x. 4 root root 91 Nov 14 2021 activerecord-5.2.6 drwxr-xr-x. 6 root root 108 Nov 14 2021 activestorage-5.2.0 drwxr-xr-x. 6 root root 108 Nov 14 2021 activestorage-5.2.6 drwxr-xr-x. 3 root root 75 Nov 14 2021 activesupport-5.2.0 drwxr-xr-x. 3 root root 75 Nov 14 2021 activesupport-5.2.6 drwxr-xr-x. 6 root root 168 Nov 14 2021 addressable-2.8.0 drwxr-xr-x. 3 root root 76 Nov 14 2021 arel-9.0.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 benchmark-0.1.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 bigdecimal-2.0.0 drwxr-xr-x. 6 root root 166 Nov 14 2021 builder-3.2.4 drwxr-xr-x. 3 root root 21 Nov 14 2021 bundler-2.1.4 drwxr-xr-x. 4 root root 106 Nov 14 2021 bundler-2.2.31 drwxr-xr-x. 2 root root 6 Nov 14 2021 cgi-0.1.0 drwxr-xr-x. 9 root root 4096 Nov 14 2021 chunky_png-1.4.0 drwxr-xr-x. 4 root root 115 Nov 14 2021 concurrent-ruby-1.1.9 drwxr-xr-x. 3 root root 173 Nov 14 2021 crass-1.0.6 drwxr-xr-x. 3 root root 36 Nov 14 2021 css_parser-1.10.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 csv-3.1.2 drwxr-xr-x. 4 root root 79 Nov 14 2021 csv-3.1.9 drwxr-xr-x. 2 root root 6 Nov 14 2021 date-3.0.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 dbm-1.1.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 delegate-0.1.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 did_you_mean-1.4.0 drwxr-xr-x. 3 root root 88 Nov 14 2021 erubi-1.10.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 etc-1.1.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 fcntl-1.0.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 fiddle-1.0.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 fileutils-1.4.1 drwxr-xr-x. 2 root root 6 Nov 14 2021 forwardable-1.3.1 drwxr-xr-x. 2 root root 6 Nov 14 2021 getoptlong-0.1.0 drwxr-xr-x. 3 root root 53 Nov 14 2021 globalid-0.5.2 drwxr-xr-x. 5 root root 79 Nov 14 2021 htmlentities-4.3.4 drwxr-xr-x. 3 root root 53 Nov 14 2021 i18n-1.8.11 drwxr-xr-x. 2 root root 6 Nov 14 2021 io-console-0.5.6 drwxr-xr-x. 2 root root 6 Nov 14 2021 ipaddr-1.2.2 drwxr-xr-x. 3 root root 17 Nov 14 2021 irb-1.2.6 drwxr-xr-x. 2 root root 6 Nov 14 2021 json-2.3.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 logger-1.4.2 drwxr-xr-x. 3 root root 96 Nov 14 2021 loofah-2.12.0 drwxr-xr-x. 3 root root 53 Nov 14 2021 mail-2.7.1 drwxr-xr-x. 3 root root 53 Nov 14 2021 marcel-0.3.3 drwxr-xr-x. 3 root root 75 Nov 14 2021 marcel-1.0.2 drwxr-xr-x. 2 root root 6 Nov 14 2021 matrix-0.2.0 drwxr-xr-x. 5 root root 197 Nov 14 2021 method_source-1.0.0 drwxr-xr-x. 4 root root 190 Nov 14 2021 mimemagic-0.3.10 drwxr-xr-x. 3 root root 52 Nov 14 2021 mini_magick-4.11.0 drwxr-xr-x. 6 root root 229 Nov 14 2021 mini_mime-1.0.3 drwxr-xr-x. 6 root root 229 Nov 14 2021 mini_mime-1.1.2 drwxr-xr-x. 4 root root 148 Nov 14 2021 minitest-5.13.0 drwxr-xr-x. 4 root root 148 Nov 14 2021 minitest-5.14.4 drwxr-xr-x. 2 root root 6 Nov 14 2021 mutex_m-0.1.0 drwxr-xr-x. 5 root root 95 Nov 14 2021 mysql2-0.5.3 drwxr-xr-x. 3 root root 121 Nov 14 2021 net-ldap-0.17.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 net-pop-0.1.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 net-smtp-0.1.0 drwxr-xr-x. 4 root root 158 Nov 14 2021 net-telnet-0.2.0 drwxr-xr-x. 8 root root 241 Nov 14 2021 nio4r-2.5.8 drwxr-xr-x. 5 root root 144 Nov 14 2021 nokogiri-1.11.7-x86_64-linux drwxr-xr-x. 6 root root 164 Nov 14 2021 nokogiri-1.12.5-x86_64-linux drwxr-xr-x. 2 root root 6 Nov 14 2021 observer-0.1.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 open3-0.1.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 openssl-2.1.2 drwxr-xr-x. 2 root root 6 Nov 14 2021 ostruct-0.2.0 drwxr-xr-x. 11 root root 4096 Nov 14 2021 passenger-6.0.12 drwxr-xr-x. 4 root root 183 Nov 14 2021 power_assert-1.1.7 drwxr-xr-x. 2 root root 6 Nov 14 2021 prime-0.1.1 drwxr-xr-x. 2 root root 6 Nov 14 2021 pstore-0.1.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 psych-3.1.0 drwxr-xr-x. 7 root root 4096 Nov 14 2021 public_suffix-4.0.6 drwxr-xr-x. 3 root root 17 Nov 14 2021 racc-1.4.16 drwxr-xr-x. 6 root root 135 Nov 14 2021 racc-1.6.0 drwxr-xr-x. 6 root root 192 Nov 14 2021 rack-2.2.3 drwxr-xr-x. 3 root root 17 Nov 14 2021 rack-openid-1.4.2 drwxr-xr-x. 3 root root 75 Nov 14 2021 rack-test-1.1.0 drwxr-xr-x. 2 root root 23 Nov 14 2021 rails-5.2.0 drwxr-xr-x. 2 root root 23 Nov 14 2021 rails-5.2.6 drwxr-xr-x. 4 root root 65 Nov 14 2021 rails-dom-testing-2.0.3 drwxr-xr-x. 4 root root 85 Nov 14 2021 rails-html-sanitizer-1.4.2 drwxr-xr-x. 4 root root 108 Nov 14 2021 railties-5.2.0 drwxr-xr-x. 4 root root 108 Nov 14 2021 railties-5.2.6 drwxr-xr-x. 7 root root 199 Nov 14 2021 rake-13.0.1 drwxr-xr-x. 5 root root 117 Nov 14 2021 rake-13.0.6 drwxr-xr-x. 3 root root 211 Nov 14 2021 rbpdf-1.20.1 drwxr-xr-x. 4 root root 143 Nov 14 2021 rbpdf-font-1.19.1 drwxr-xr-x. 3 root root 17 Nov 14 2021 rdoc-6.2.1 drwxr-xr-x. 2 root root 6 Nov 14 2021 readline-0.0.2 drwxr-xr-x. 2 root root 6 Nov 14 2021 readline-ext-0.1.0 drwxr-xr-x. 6 root root 145 Nov 14 2021 redcarpet-3.5.1 drwxr-xr-x. 2 root root 6 Nov 14 2021 reline-0.1.5 drwxr-xr-x. 4 root root 162 Nov 14 2021 request_store-1.5.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 rexml-3.2.3 drwxr-xr-x. 4 root root 225 Nov 14 2021 roadie-4.0.0 drwxr-xr-x. 3 root root 244 Nov 14 2021 roadie-rails-2.2.0 drwxr-xr-x. 6 root root 4096 Nov 14 2021 rotp-6.2.0 drwxr-xr-x. 4 root root 79 Nov 14 2021 rouge-3.26.1 drwxr-xr-x. 6 root root 238 Nov 14 2021 rqrcode-2.1.0 drwxr-xr-x. 5 root root 196 Nov 14 2021 rqrcode_core-1.2.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 rss-0.2.8 drwxr-xr-x. 5 root root 147 Nov 14 2021 ruby-openid-2.9.2 drwxr-xr-x. 4 root root 77 Nov 14 2021 rubyzip-2.3.2 drwxr-xr-x. 2 root root 6 Nov 14 2021 sdbm-1.0.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 singleton-0.1.0 drwxr-xr-x. 4 root root 65 Nov 14 2021 sprockets-4.0.2 drwxr-xr-x. 3 root root 53 Nov 14 2021 sprockets-rails-3.3.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 stringio-0.1.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 strscan-1.0.3 drwxr-xr-x. 6 root root 137 Nov 14 2021 test-unit-3.3.4 drwxr-xr-x. 4 root root 143 Nov 14 2021 thor-1.1.0 drwxr-xr-x. 8 root root 230 Nov 14 2021 thread_safe-0.3.6 drwxr-xr-x. 2 root root 6 Nov 14 2021 timeout-0.1.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 tracer-0.1.0 drwxr-xr-x. 4 root root 134 Nov 14 2021 tzinfo-1.2.9 drwxr-xr-x. 2 root root 6 Nov 14 2021 uri-0.10.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 webrick-1.6.0 drwxr-xr-x. 4 root root 83 Nov 14 2021 websocket-driver-0.7.5 drwxr-xr-x. 3 root root 72 Nov 14 2021 websocket-extensions-0.1.5 drwxr-xr-x. 4 root root 154 Nov 14 2021 xmlrpc-0.3.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 yaml-0.1.0 drwxr-xr-x. 2 root root 6 Nov 14 2021 zlib-1.1.0
Thanks,
ps -aef | grep Passenger
And here:
root 10813 10619 0 00:23 pts/0 00:00:00 grep --color=auto Passenger root 29746 29725 0 Jan15 ? 00:00:00 PassengerWatchdog root 29749 29746 0 Jan15 ? 00:00:10 PassengerHelperAgent nobody 29754 29746 0 Jan15 ? 00:00:01 PassengerLoggingAgent
Thanks for your patience,
Thank you very much.
Could you please check PassengerDefaultRuby
in the Apache configuration, as we would like to know which ruby is referenced by Passenger.
If there are any other Passenger settings you have configured in Apache, please share them with me.
Hi, This is Passenger and Redmine config:
My redmine.conf:
PassengerRuby /usr/local/rbenv/versions/2.7.2/bin/ruby
#PassengerRuby /usr/bin/ruby
<VirtualHost *:80>
ServerName mydomain
DocumentRoot "/var/www/redmine/public"
ErrorLog logs/redmine_error_log
LogLevel warn
<Directory "/var/www/redmine/public">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
RewriteEngine on
RewriteCond %{SERVER_NAME} =mydomain
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>**
My Passenger.conf
<IfModule mod_passenger.c>
PassengerRoot /usr/share/passenger//phusion_passenger/locations.ini
PassengerRuby /usr/local/rbenv/versions/2.7.2/bin/ruby
PassengerDefaultUser apache
</IfModule>
Thank you,
Thank you very much. I now know the cause of the problem.
When run with Passenger, the gem file will refer to the following.
When you install the plugin, the bundle install
installs the gem in the following.
When you install Redmine, you probably also run the bundle install
command.
Do you remember how you executed it at that time?
Thank you so very much,
I don't remember clearly what I did when installing Bundle at the time of installing Redmine. Recently when installing some Plugins, I also tried to execute the bundle install
command, but the results did not make any difference.
Try executing the following command in the Redmine home directory.
bundle install --path vendor/bundle
This should install the gem under vendor/bundle
.
Also, the following line will be added to .bundle/config
BUNDLE_PATH: "vendor/bundle"
With this setting, Passenger will refer to the gem under vendor/bundle
.
Could you please restart Apache and see if that solves the problem?
Hi,
Yes, BUNDLE_PATH: "vendor/bundle"
added to .bundle/config
. But the following error appears when running the redmine app:
cannot load such file -- nokogiri/nokogiri (LoadError)
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.7-x86_64-linux/lib/nokogiri/extension.rb:25:in `require'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.7-x86_64-linux/lib/nokogiri/extension.rb:25:in `rescue in <top (required)>'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.7-x86_64-linux/lib/nokogiri/extension.rb:4:in `<top (required)>'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.7-x86_64-linux/lib/nokogiri.rb:11:in `require'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.7-x86_64-linux/lib/nokogiri.rb:11:in `<top (required)>'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/roadie-4.0.0/lib/roadie/inliner.rb:4:in `require'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/roadie-4.0.0/lib/roadie/inliner.rb:4:in `<top (required)>'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/roadie-4.0.0/lib/roadie.rb:31:in `require'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/roadie-4.0.0/lib/roadie.rb:31:in `<top (required)>'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/roadie-rails-2.2.0/lib/roadie/rails.rb:8:in `require'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/roadie-rails-2.2.0/lib/roadie/rails.rb:8:in `<top (required)>'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/roadie-rails-2.2.0/lib/roadie-rails.rb:3:in `require'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/roadie-rails-2.2.0/lib/roadie-rails.rb:3:in `<top (required)>'
/usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/runtime.rb:60:in `require'
/usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
/usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/runtime.rb:55:in `each'
/usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/runtime.rb:55:in `block in require'
/usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/runtime.rb:44:in `each'
/usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/runtime.rb:44:in `require'
/usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler.rb:175:in `require'
/var/www/redmine/config/application.rb:18:in `<top (required)>'
/var/www/redmine/config/environment.rb:4:in `require'
/var/www/redmine/config/environment.rb:4:in `<top (required)>'
config.ru:3:in `require'
config.ru:3:in `block in <main>'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in `instance_eval'
/var/www/redmine/vendor/bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in `initialize'
config.ru:1:in `new'
config.ru:1:in `<main>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:112:in `eval'
/usr/share/passenger/helper-scripts/rack-preloader.rb:112:in `preload_app'
/usr/share/passenger/helper-scripts/rack-preloader.rb:158:in `<module:App>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'
I am a little unsure of the cause and would like to think of another way.
First of all, I would like to return to the original state,
vendor/bundle
folder.BUNDLE_PATH: "vendor/bundle"
from .bundle/config
.Now restart Apache and confirm that the error is the same as before.
Please let me know the results of the following command so that I can check the information about your environment.
which gem
gem environment
Hi, I have followed the steps as you instructed, the error is the same as before. This is the result of commands:
which gem:
/root/.rbenv/shims/gem
gem environment:
RubyGems Environment:
- RUBYGEMS VERSION: 3.1.4
- RUBY VERSION: 2.7.2 (2020-10-01 patchlevel 137) [x86_64-linux]
- INSTALLATION DIRECTORY: /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
- USER INSTALLATION DIRECTORY: /root/.gem/ruby/2.7.0
- RUBY EXECUTABLE: /root/.rbenv/versions/2.7.2/bin/ruby
- GIT EXECUTABLE: /bin/git
- EXECUTABLE DIRECTORY: /root/.rbenv/versions/2.7.2/bin
- SPEC CACHE DIRECTORY: /root/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /root/.rbenv/versions/2.7.2/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
- /root/.gem/ruby/2.7.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--no-document"
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /root/.rbenv/versions/2.7.2/bin
- /root/.rbenv/libexec
- /root/.rbenv/plugins/ruby-build/bin
- /root/.rbenv/shims
- /root/.rbenv/bin
- /opt/rh/rh-ruby27/root/usr/local/bin
- /opt/rh/rh-ruby27/root/usr/bin
- /sbin
- /bin
- /usr/sbin
- /usr/bin
- /var/lib/snapd/snap/bin
Thank you,
Could you also tell us the contents of the following file?
Yes, of course, and it's here:
[locations]
natively_packaged=true
native_packaging_method=rpm
bin_dir=/usr/bin
agents_dir=/usr/libexec/passenger/
lib_dir=/usr/lib64/passenger
helper_scripts_dir=/usr/share/passenger/helper-scripts
resources_dir=/usr/share/passenger
include_dir=/usr/share/passenger/include
doc_dir=/usr/share/doc/passenger
ruby_libdir=/usr/share/passenger/
node_libdir=/usr/share/passenger/node
apache2_module_path=/usr/lib64/httpd/modules/mod_passenger.so
ruby_extension_source_dir=/usr/share/passenger/ruby_extension_source
nginx_module_source_dir=/usr/share/passenger/ngx_http_passenger_module
Execute the following command in your Redmine home directory.
export GEM_HOME=/usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
gem install
Could you please restart Apache and see if that solves the problem?
[root@insevr redmine]# export GEM_HOME=/usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
[root@insevr redmine]# gem install
ERROR: While executing gem ... (Gem::CommandLineError)
Please specify at least one gem name (e.g. gem build GEMNAME)
[root@instance5 redmine]
I get still error when running Redmine app,
Thank you,
Sorry, I made a mistake. Please use the following.
export GEM_HOME=/usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
bundle install
Hi, there is no difference, i get still error. Should I uninstall and reinstall the plugin from scratch?
Thanks,
Hi, there is no difference, i get still error. Should I uninstall and reinstall the plugin from scratch?
Error with bundle install
?
Hi, there is no difference, i get still error. Should I uninstall and reinstall the plugin from scratch?
Error with
bundle install
?
No, bundle install
run normally. But when I run redmine, I still get the same error as before
Hi, there is no difference, i get still error. Should I uninstall and reinstall the plugin from scratch?
Error with
bundle install
?No,
bundle install
run normally.
OK.
I believe activerecord-compatible_legacy_migration-0.1.2
is located below, could you please check?
ls -la /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/
Sorry, but I don't see this bundle.
drwxr-xr-x. 3 root root 73 Nov 14 2021 actioncable-5.2.0
drwxr-xr-x. 3 root root 73 Nov 14 2021 actioncable-5.2.6
drwxr-xr-x. 3 root root 75 Nov 14 2021 actionmailer-5.2.0
drwxr-xr-x. 3 root root 75 Nov 14 2021 actionmailer-5.2.6
drwxr-xr-x. 3 root root 75 Nov 14 2021 actionpack-5.2.0
drwxr-xr-x. 3 root root 75 Nov 14 2021 actionpack-5.2.6
drwxr-xr-x. 3 root root 49 Nov 14 2021 actionpack-xml_parser-2.0.1
drwxr-xr-x. 3 root root 75 Nov 14 2021 actionview-5.2.0
drwxr-xr-x. 3 root root 75 Nov 14 2021 actionview-5.2.6
drwxr-xr-x. 3 root root 73 Nov 14 2021 activejob-5.2.0
drwxr-xr-x. 3 root root 73 Nov 14 2021 activejob-5.2.6
drwxr-xr-x. 3 root root 75 Nov 14 2021 activemodel-5.2.0
drwxr-xr-x. 3 root root 75 Nov 14 2021 activemodel-5.2.6
drwxr-xr-x. 4 root root 91 Nov 14 2021 activerecord-5.2.0
drwxr-xr-x. 4 root root 91 Nov 14 2021 activerecord-5.2.6
drwxr-xr-x. 6 root root 108 Nov 14 2021 activestorage-5.2.0
drwxr-xr-x. 6 root root 108 Nov 14 2021 activestorage-5.2.6
drwxr-xr-x. 3 root root 75 Nov 14 2021 activesupport-5.2.0
drwxr-xr-x. 3 root root 75 Nov 14 2021 activesupport-5.2.6
drwxr-xr-x. 6 root root 168 Nov 14 2021 addressable-2.8.0
drwxr-xr-x. 3 root root 76 Nov 14 2021 arel-9.0.0
drwxr-xr-x. 2 root root 6 Nov 14 2021 benchmark-0.1.0
drwxr-xr-x. 2 root root 6 Nov 14 2021 bigdecimal-2.0.0
drwxr-xr-x. 6 root root 166 Nov 14 2021 builder-3.2.4
drwxr-xr-x. 3 root root 21 Nov 14 2021 bundler-2.1.4
drwxr-xr-x. 4 root root 106 Nov 14 2021 bundler-2.2.31
drwxr-xr-x. 2 root root 6 Nov 14 2021 cgi-0.1.0
.....
I changed the GEM_HOME, which should have changed the installation location, Can you please check your settings below?
gem environment
Hi,
RubyGems Environment:
- RUBYGEMS VERSION: 3.1.4
- RUBY VERSION: 2.7.2 (2020-10-01 patchlevel 137) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
- USER INSTALLATION DIRECTORY: /root/.gem/ruby/2.7.0
- RUBY EXECUTABLE: /root/.rbenv/versions/2.7.2/bin/ruby
- GIT EXECUTABLE: /bin/git
- EXECUTABLE DIRECTORY: /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/bin
- SPEC CACHE DIRECTORY: /root/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /root/.rbenv/versions/2.7.2/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
- /root/.gem/ruby/2.7.0
- /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--no-document"
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /root/.rbenv/versions/2.7.2/bin
- /root/.rbenv/libexec
- /root/.rbenv/plugins/ruby-build/bin
- /root/.rbenv/shims
- /root/.rbenv/bin
- /opt/rh/rh-ruby27/root/usr/local/bin
- /opt/rh/rh-ruby27/root/usr/bin
- /sbin
- /bin
- /usr/sbin
- /usr/bin
- /var/lib/snapd/snap/bin
Sorry for repeating myself.
What is in .bundle/config
?
Sorry for repeating myself. What is in
.bundle/config
?
BUNDLE_WITHOUT: "development:test"
Thanks
Once you have done so, please try erasing it below.
rm -rf /root/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-compatible_legacy_migration-0.1.2
Then, please do a bundle install again.
bundle install
Hopefully this will put /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activerecord-compatible_legacy_migration-0.1.2
in place.
YES, Problem solved, Redmine app is running normally, View_customize plugin is installed. You've done a great job supporting your community, although it's possible this error was caused by a misconfiguration on my part. And I may still have to ask for your support in the next few steps when using this plugin. Nice to meet you, thank you so very much!
Hi , What a great plugin, thanks for your contribution. I got below error when install this plugin:
**It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:
bundle install If that didn't work, then the problem is probably caused by your application being run under a different environment than it's supposed to. Please check the following:
Could not find activerecord-compatible_legacy_migration-0.1.2 in any of the sources (Bundler::GemNotFound) /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/definition.rb:502:in'
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in '_**
materialize' /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/definition.rb:189:in
specs' /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/definition.rb:237:inspecs_for' /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/runtime.rb:18:in
setup' /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler.rb:150:insetup' /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/setup.rb:20:in
block in <top (required)>' /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/ui/shell.rb:136:inwith_level' /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/ui/shell.rb:88:in
silence' /usr/local/rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.31/lib/bundler/setup.rb:20:in<top (required)>' /usr/local/rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in
require' /usr/local/rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:inrequire' /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:263:in
block in run_load_path_setup_code' /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:366:inrunning_bundler' /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:261:in
run_load_path_setup_code' /usr/share/passenger/helper-scripts/rack-preloader.rb:100:inpreload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:158:in
<module:PhusionPassenger>' /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in
My Environment: _Redmine version 4.2.3.stable Ruby version 2.7.2-p137 (2020-10-01) [x86_64-linux] Rails version 5.2.6 Environment production Database adapter Mysql2
Sometimes I also encountered this error when installing a few plugins,. Thanks for your help