プロジェクト

全般

プロフィール

Vote #80621

未完了

Upgrading from Redmine v4.0.5 to v4.1.0 gives 2 errors

Admin Redmine さんが約2年前に追加.

ステータス:
Needs feedback
優先度:
通常
担当者:
-
カテゴリ:
-
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
0
version_id:
0
issue_org_id:
32852
author_id:
440023
assigned_to_id:
0
comments:
3
status_id:
10
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
127
ステータス-->[Needs feedback]

説明

Upgrading from Redmine v4.0.5 to v4.1.0 gives NoMethodError and Sprockets::Railtie::ManifestNeededError errors
I wrote the steps I took, the environment.

procedure

# svn sw ^/branches/4.1-stable
# bundle exec rake db:migrate RAILS_ENV=production
rake aborted!
NoMethodError: undefined method `assets' for #
Did you mean?  asset_host

I removed the comment out of require "sprockets/railtie” in config/application.rb.

# bundle exec rake db:migrate RAILS_ENV=production
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

I created the file as per the example and ran it again.
Processing succeeded, Redmine 4.1.0 started successfully.

environment

# uname -a
Linux yomi-sv01.localdomain 3.10.0-1062.1.2.el7.x86_64 #1 SMP Mon Sep 30 14:19:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

# mysql --version
mysql  Ver 14.14 Distrib 5.7.29, for Linux (x86_64) using  EditLine wrapper

# ruby bin/about
Environment:
  Redmine version                4.1.0.stable.19426
  Ruby version                   2.6.2-p47 (2019-03-13) [x86_64-linux]
  Rails version                  5.2.4.1
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp

I always use Redmine. Thank you!


journals

--------------------------------------------------------------------------------
With your described changes, yoy are basically enabling the assets pipeline in Rails which we don't use currently. These changes will likely result in hard to debug errors down the line such as missing or broken assets, strange CSS, ...

In any case, the underlying issue should already be fixed in Redmine 4.1.0 with #32223.

When updating your Redmine, please make sure that you have no local changes in your @config/application.rb@ files (or any other ruby file in @config@ for that matter). It looks like you are still using some files from your Redmine 4.0 installation here.
--------------------------------------------------------------------------------
Holger Just wrote:

> When updating your Redmine, please make sure that you have no local changes in your @config/application.rb@ files (or any other ruby file in @config@ for that matter). It looks like you are still using some files from your Redmine 4.0 installation here.

Thank you for answering

When I checked my Redmine's config directory, I found additional_environment.rb, which was an old style.
The contents of the additional_environment.rb file are as follows.
<pre>
config.log_level =: error
</pre>
I modified the contents of this file by referring to "Installation Guide":https://www.redmine.org/projects/redmine/wiki/RedmineInstall .
--------------------------------------------------------------------------------


related_issues

relates,Closed,32223,Disable sprockets to avoid Sprockets::Railtie::ManifestNeededError raised by sprockets 4.0.0

表示するデータがありません

他の形式にエクスポート: Atom PDF

いいね!0