Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.4.8.2 install error #134

Closed
ayapapa opened this issue Sep 27, 2020 · 4 comments
Closed

3.4.8.2 install error #134

ayapapa opened this issue Sep 27, 2020 · 4 comments
Assignees

Comments

@ayapapa
Copy link
Owner

ayapapa commented Sep 27, 2020

以下、いくつかの問題がある模様:

  1. /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:10: warning: constant Gem::ConfigMap is deprecatedが大量に表示される。ときどき、/var/lib/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/rubygems_integration.rb:200: warning: constant Gem::ConfigMap is deprecatedが、表示される。ヒントによると、gemのバージョンが3.xとなってしまい、互換性の問題がある模様。

  2. rake aborted!が発生

    Sprockets::Railtie::ManifestNeededError: Expected to find a manifest file in `app/assets/config/manifest.js`
    But did not, please create this file and use it to link any assets that need
    to be rendered by your app:
    
    Example:
    //= link_tree ../images
    //= link_directory ../javascripts .js
    //= link_directory ../stylesheets .css
    and restart your server
    
    For more information see: https://github.com/rails/sprockets/blob/070fc01947c111d35bb4c836e9bb71962a8e0595/UPGRADING.md#manifestjs
    /opt/alminium/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.2/lib/sprockets/railtie.rb:106:in `block in <class:Railtie>'
    /opt/alminium/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11/lib/rails/initializable.rb:30:in `instance_exec'
    /opt/alminium/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11/lib/rails/initializable.rb:30:in `run'
    /opt/alminium/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11/lib/rails/initializable.rb:55:in `block in run_initializers'
    /opt/alminium/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11/lib/rails/initializable.rb:54:in `run_initializers'
    /opt/alminium/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11/lib/rails/application.rb:352:in `initialize!'
    /opt/alminium/config/environment.rb:14:in `<top (required)>'
    /opt/alminium/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11/lib/rails/application.rb:328:in `require'
    /opt/alminium/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11/lib/rails/application.rb:328:in `require_environment!'
    /opt/alminium/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11/lib/rails/application.rb:457:in `block in run_tasks_blocks'
    /opt/alminium/vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
    Tasks: TOP => db:migrate => environment
    ...
    

    上記は、*** run initialize DB ***の直後から、数回出ているため、DB初期化に失敗している模様。ヒントによると、sprockets ver.4から発生しているとのこと。ちなみに、下記の通り、まさしく、ver4が使われていた。

    Fetching sprockets 4.0.2
    Installing sprockets 4.0.2
    
  3. *** run initialize SQL ***にて、ERROR 1146 (42S02) at line 8: Table 'alminium.trackers' doesn't existのようなエラーが複数回発生。おそらく、2.のためにDB初期化ができていないためと思われる。

@ayapapa ayapapa self-assigned this Sep 27, 2020
@ayapapa
Copy link
Owner Author

ayapapa commented Sep 27, 2020

1&2に対応したところで、3は無くなったが、新たに以下の問題が発生。これを本issueの4番目の問題として対応する。

  1. redmine_importer にると、すでにReadmine4対応がなされているようなので、Redmine3対応版を指定する必要がありそう。
Migrating redmine_importer (Issue Importer)...
-- [](4.2)
-- [](4.2)
rake aborted!
NoMethodError: undefined method `[]' for #<ActiveRecord::Migration:0x0000557aefdc9ed8>
/opt/alminium/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11/lib/active_record/migration.rb:664:in `block in method_missing'
/opt/alminium/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11/lib/active_record/migration.rb:634:in `block in say_with_time'

@ayapapa
Copy link
Owner Author

ayapapa commented Sep 27, 2020

CentOS6へのインストールテストを実施した結果、以下のエラーが発覚。

  1. プラグイン(redmine_plugin_views_revisions )インストールエラー
ext=zip in http://www.redmine.org/attachments/download/7705/redmine_plugin_views_revisions_v001.zip
--2020-09-27 21:05:44--  http://www.redmine.org/attachments/download/7705/redmine_plugin_views_revisions_v001.zip
www.redmine.org をDNSに問いあわせています... 94.130.94.3
www.redmine.org|94.130.94.3|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 301 Moved Permanently
場所: https://www.redmine.org/attachments/download/7705/redmine_plugin_views_revisions_v001.zip [続く]
--2020-09-27 21:05:44--  https://www.redmine.org/attachments/download/7705/redmine_plugin_views_revisions_v001.zip
www.redmine.org|94.130.94.3|:443 に接続しています... 接続しました。
エラー: www.redmine.org の証明書(発行者: `/C=FR/ST=Paris/L=Paris/O=Gandi/CN=Gandi Standard SSL CA 2')の検証に失敗しました:
  自己署名証明書です。
www.redmine.org に安全の確認をしないで接続するには、`--no-check-certificate' を使ってください。
unzip:  cannot find or open cache/redmine_plugin_views_revisions_v001.zip, cache/redmine_plugin_views_revisions_v001.zip.zip or cache/redmine_plugin_views_revisions_v001.zip.ZIP.
mv: cannot stat `redmine_plugin_views_revisions': そのようなファイルやディレクトリはありません
  1. ImageMagik関連のバージョン不整合
    ヒント

Installing rmagick 4.1.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /opt/alminium/vendor/bundle/ruby/2.5.0/gems/rmagick-4.1.2/ext/RMagick
/root/.rbenv/versions/2.5.1/bin/ruby -r ./siteconf20200927-20677-1bgz16m.rb extconf.rb
checking for brew... no
checking for pacman... no
checking for Ruby version >= 2.3.0... yes
checking for pkg-config... yes
checking for outdated ImageMagick version (<= 6.7.7)...

ERROR: Can't install RMagick 4.1.2. You must have ImageMagick 6.7.7 or later.

ayapapa added a commit that referenced this issue Sep 28, 2020
…ne/setup/install-plugins) and -6(modifed inst-script/rhel6/packages.lst, inst-script/rhel6/pre-install)
@ayapapa
Copy link
Owner Author

ayapapa commented Oct 3, 2020

  1. gitインストールエラー
    以下の部分でエラーとなる
curl -s https://setup.ius.io/ | bash
yum install -y git2u

対処法:gitをビルドするようにした

ayapapa pushed a commit that referenced this issue Oct 3, 2020
@ayapapa
Copy link
Owner Author

ayapapa commented Oct 4, 2020

  1. jenkinsのインストールに失敗
jenkins-2.259-1.1.noarch.rpm の公開鍵がインストールされていません

公開鍵のURLが変更されたもよう(参考1, 参考2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant