Internal Error while updating Issues in REDMINE
Added by Jo V about 9 years ago
Hi
My current REDMINE environment is as follows:
Environment:
Operating System Centos 6.5 64bit
Redmine version 2.4.0.stable
Ruby version 2.1.0-p0 (2013-12-25) [x86_64-linux]
Rails version 3.2.15
Environment production
Database adapter MySQL
SCM:
Subversion 1.6.11
Git 1.7.1
Filesystem
Redmine plugins:
no plugin installed
I notice whenever I copy some texts from other environment to the REDMINE issues and click on the update or Create button I encounter the following error:
"Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error."
After that I am unable to get into that issue and I seem to have lost all my previous update on that issue.
I have searched for some help on this issue and none was helpful.
I would greatly appreciate if some experts in this forum could help me to resolve this issue.
Regards
JJohn
Replies (3)
RE: Internal Error while updating Issues in REDMINE - Added by Jo V almost 9 years ago
Hi Team
I went through some forum related to this same REDMNE error and found people asking to run the following command on the REDMIE server to get the details: So I also did run the following command on my REDMINE server and I have the following output.
[root@RedmineUAT ~]# RAILS_ENV=production rake redmine:load_default_data
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/usr/local/rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
[root@RedmineUAT ~]# RAILS_ENV=production rake redmine:load_default_data --trace
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/usr/local/rvm/gems/ruby-2.1.0/gems/rake-10.1.1/lib/rake/application.rb:632:in `raw_load_rakefile'
/usr/local/rvm/gems/ruby-2.1.0/gems/rake-10.1.1/lib/rake/application.rb:94:in `block in load_rakefile'
/usr/local/rvm/gems/ruby-2.1.0/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.1.0/gems/rake-10.1.1/lib/rake/application.rb:93:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.1.0/gems/rake-10.1.1/lib/rake/application.rb:77:in `block in run'
/usr/local/rvm/gems/ruby-2.1.0/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.1.0/gems/rake-10.1.1/lib/rake/application.rb:75:in `run'
/usr/local/rvm/gems/ruby-2.1.0/gems/rake-10.1.1/bin/rake:33:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.1.0/bin/rake:23:in `load'
/usr/local/rvm/gems/ruby-2.1.0/bin/rake:23:in `<main>'
/usr/local/rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'
[root@RedmineUAT ~]# rake generate_secret_token
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/usr/local/rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
Could someone let me know where am I going wrong with the REDMINE setup that gives me the "Internal Error" while copying texts from other applications to REDMINE.
Looking for some help on this issue.
Regards
JJohn
RE: Internal Error while updating Issues in REDMINE - Added by Jo V almost 9 years ago
Hi Guys
Whenever I get this error while updating or creating an Issue in REDMINE, my production.log file has the following entry:
*"Processing by IssuesController#show as HTML
Parameters: {"id"=>"221"}
Current user: xxxx (id=3)
Rendered issues/_action_menu.html.erb (4.6ms)
Rendered issues/show.html.erb within layouts/base (61.5ms)
Completed 500 Internal Server Error in 126.7ms
ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT):
78:
79: <p><strong><%=l(:field_description)%></strong></p>
80: <div class="wiki">
81: <%= textilizable @issue, :description, :attachments => @issue.attachments >
82: </div>
83: </div>
84: < end %>
app/views/issues/show.html.erb:81:in `_app_views_issues_show_html_erb__2346713043955061947_70282549897920'
app/controllers/issues_controller.rb:124:in `block (2 levels) in show'
app/controllers/issues_controller.rb:121:in `show'*
Could some from the community give some assistance to resolve this issue. Looking forward to hearing from you
Regards
JJohn
RE: Internal Error while updating Issues in REDMINE - Added by Jo V almost 9 years ago
I have managed to find a solution that worked for me to fix this reported issue: Though there were different solutions recommended below is the one that worked for me.
It looks like this results from concatenating UTF8 and ASCII character strings. I found a Redmine bug report about it ( https://www.redmine.org/issues/13520 ) and a suggestion there is to try trying switching to use the mysql2 database adapter, instead of mysql.
I did a `gem install mysql2` and switch the database adapter in database.yml. After that restarted the httpd service and it started working for me.
Hopefully it will be useful for someone who face the similar issue.
This issue can now be closed.
Thanks
JJohn