https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292023-03-07T17:56:57ZRedmineRedmine - Defect #38337: Export Time as CSV : FrozenError (can't modify frozen String: "")https://www.redmine.org/issues/38337?journal_id=1094702023-03-07T17:56:57ZHolger Just
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Cant reproduce</i></li></ul><p>Redmine 4.0 does not officially support Ruby 2.7. Also Redmine 4.0.x does not receive any updates and is not supported by the Redmine project anymore. You should update Redmine to a newer version.</p>
<p>With that being said, Redmine does not usually freeze any string, specifically not in the code path you have shown. Thus, this is likely to only occur if you force Ruby to create frozen strings by default (which will break a lot of areas in Redmine) by e.g. using <code>RUBYOPT="--enable-frozen-string-literal"</code> or similar. You should remove any such environment variables and configure your application server to not configure Ruby with frozen strings.</p> Redmine - Defect #38337: Export Time as CSV : FrozenError (can't modify frozen String: "")https://www.redmine.org/issues/38337?journal_id=1094722023-03-07T18:45:55ZPavel Rosický
<ul></ul><p>There's probably nil.to_s somewhere. It returns a frozen string since Ruby 2.7. nil.to_s.frozen? => true.</p>
<p>But as has already been said, upgrading to a supported Redmine version will most likely fix the problem...</p> Redmine - Defect #38337: Export Time as CSV : FrozenError (can't modify frozen String: "")https://www.redmine.org/issues/38337?journal_id=1094772023-03-08T08:26:16ZAlexandre Russo
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>thank you for your answer,</p>
<p>i upgrade redmine debian package v4.0 to v5.0.x</p>
<p>But now i have 500 error :</p>
<pre>
Processing by WelcomeController#index as HTML
Current user: alexandre (id=1)
Rendering welcome/index.html.erb within layouts/base
Rendered welcome/index.html.erb within layouts/base (33.8ms)
Completed 500 Internal Server Error in 132ms (ActiveRecord: 15.4ms)
ActionView::Template::Error (undefined method `atom_key' for #<User:0x0000555bd4ac6db0>
Did you mean? to_key):
21: </div>
22:
23: <% content_for :header_tags do %>
24: <%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.atom_key, :format => 'atom'},
25: :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
26: <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.atom_key, :format => 'atom'},
27: :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
app/views/welcome/index.html.erb:24:in `block in _app_views_welcome_index_html_erb__4256216469183124722_73320'
app/views/welcome/index.html.erb:23:in `_app_views_welcome_index_html_erb__4256216469183124722_73320'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
</pre>
<p>Forgot to do something ?</p>
<pre>
bundle exec rake db:migrate RAILS_ENV=production
rake aborted!
NoMethodError: undefined method `assets' for #<Rails::Application::Configuration:0x0000565003c055b8>
Did you mean? asset_host
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/railtie/configuration.rb:97:in `method_missing'
/usr/share/redmine/config/initializers/assets.rb:4:in `<top (required)>'
/var/lib/gems/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:326:in `load'
/var/lib/gems/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:326:in `block in load'
/var/lib/gems/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:299:in `load_dependency'
/var/lib/gems/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:326:in `load'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/engine.rb:681:in `block in load_config_initializer'
/var/lib/gems/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/notifications.rb:205:in `instrument'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/engine.rb:680:in `load_config_initializer'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/engine.rb:634:in `block (2 levels) in <class:Engine>'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/engine.rb:633:in `each'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/engine.rb:633:in `block in <class:Engine>'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:in `instance_exec'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:in `run'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:50:in `each'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:50:in `tsort_each_child'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:60:in `run_initializers'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/application.rb:391:in `initialize!'
/usr/share/redmine/config/environment.rb:16:in `<top (required)>'
/var/lib/gems/2.7.0/gems/zeitwerk-2.6.7/lib/zeitwerk/kernel.rb:38:in `require'
/var/lib/gems/2.7.0/gems/zeitwerk-2.6.7/lib/zeitwerk/kernel.rb:38:in `require'
/var/lib/gems/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `block in require'
/var/lib/gems/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:299:in `load_dependency'
/var/lib/gems/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `require'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/application.rb:367:in `require_environment!'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/application.rb:533:in `block in run_tasks_blocks'
/var/lib/gems/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
</pre>
<p>Thank you</p> Redmine - Defect #38337: Export Time as CSV : FrozenError (can't modify frozen String: "")https://www.redmine.org/issues/38337?journal_id=1094782023-03-08T10:15:25ZAlexandre Russo
<ul></ul><p>i run</p>
<pre>gem update</pre>
<p>now i have this error</p>
<pre>
bundle exec rake db:migrate RAILS_ENV=production
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
/usr/lib/ruby/2.7.0/cgi/util.rb:30: warning: already initialized constant CGI::Util::TABLE_FOR_ESCAPE_HTML__
/var/lib/gems/2.7.0/gems/cgi-0.3.6/lib/cgi/util.rb:63: warning: previous definition of TABLE_FOR_ESCAPE_HTML__ was here
/usr/lib/x86_64-linux-gnu/ruby/2.7.0/psych.so: warning: already initialized constant Psych::Parser::ANY
/usr/lib/x86_64-linux-gnu/ruby/2.7.0/psych.so: warning: already initialized constant Psych::Parser::UTF8
/usr/lib/x86_64-linux-gnu/ruby/2.7.0/psych.so: warning: already initialized constant Psych::Parser::UTF16LE
/usr/lib/x86_64-linux-gnu/ruby/2.7.0/psych.so: warning: already initialized constant Psych::Parser::UTF16BE
rake aborted!
TypeError: superclass mismatch for class StringIO
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/application.rb:3:in `require'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails/application.rb:3:in `<top (required)>'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails.rb:13:in `require'
/var/lib/gems/2.7.0/gems/railties-6.1.7.2/lib/rails.rb:13:in `<top (required)>'
/usr/share/redmine/config/application.rb:5:in `require'
/usr/share/redmine/config/application.rb:5:in `<top (required)>'
/usr/share/redmine/Rakefile:4:in `require'
/usr/share/redmine/Rakefile:4:in `<top (required)>'
/var/lib/gems/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)
</pre> Redmine - Defect #38337: Export Time as CSV : FrozenError (can't modify frozen String: "")https://www.redmine.org/issues/38337?journal_id=1094792023-03-08T10:45:07ZAlexandre Russo
<ul></ul><p>It's ok, problem with plugin. Sorry.</p>
<p>i update to v5 and now it's ok.</p>
<p>thank you</p> Redmine - Defect #38337: Export Time as CSV : FrozenError (can't modify frozen String: "")https://www.redmine.org/issues/38337?journal_id=1094972023-03-13T02:00:54ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li><li><strong>Resolution</strong> changed from <i>Cant reproduce</i> to <i>Invalid</i></li></ul>