Various "Internal error" after upgrading from 0.7.1 to 0.7.2

Added by Dennis K about 2 years ago

I upgraded from r1477 to r1555 and recieve "Internal Errors" on following Modules:
Activity, Forums, Project Archive.

I use mysql and svn as backend on a debian lenny machine.

Any hints?

Greetings,
slazZ

Replies (13)

RE: Various "Internal error" after upgrading from 0.7.1 to 0.7.2 - Added by Dennis K about 2 years ago

I consult the logfile:

ActionView::TemplateError (undefined method `length' for #<Enumerable::Enumerator:0x2b2e829655b0>) on line #49 of boards/show.rhtml:
46:       <td class="last_message">
47:         <% if topic.last_reply %>
48:         <%= authoring topic.last_reply.created_on, topic.last_reply.author %><br />
49:         <%= link_to_message topic.last_reply %>
50:         <% end %>
51:       </td>
52:     </tr>

    vendor/rails/actionpack/lib/action_view/helpers/text_helper.rb:50:in `truncate'
    app/helpers/messages_helper.rb:22:in `link_to_message'
    app/views/boards/show.rhtml:49:in `_run_erb_47app47views47boards47show46rhtml'
    app/views/boards/show.rhtml:40:in `each'
    app/views/boards/show.rhtml:40:in `_run_erb_47app47views47boards47show46rhtml'
    vendor/rails/actionpack/lib/action_view/base.rb:637:in `send'
    vendor/rails/actionpack/lib/action_view/base.rb:637:in `compile_and_render_template'
    vendor/rails/actionpack/lib/action_view/base.rb:365:in `render_template'
    vendor/rails/actionpack/lib/action_view/base.rb:316:in `render_file'
    vendor/rails/actionpack/lib/action_controller/base.rb:1100:in `render_for_file'
    vendor/rails/actionpack/lib/action_controller/base.rb:858:in `render_with_no_layout'
    vendor/rails/actionpack/lib/action_controller/base.rb:872:in `render_with_no_layout'
    vendor/rails/actionpack/lib/action_controller/layout.rb:262:in `render_without_benchmark'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
    app/controllers/boards_controller.rb:48:in `show'
    app/controllers/boards_controller.rb:34:in `index'
    vendor/rails/actionpack/lib/action_controller/base.rb:1158:in `send'
    vendor/rails/actionpack/lib/action_controller/base.rb:1158:in `perform_action_without_filters'
    vendor/rails/actionpack/lib/action_controller/filters.rb:697:in `call_filters'
    vendor/rails/actionpack/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
    vendor/rails/actionpack/lib/action_controller/caching.rb:678:in `perform_action'
    vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
    vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
    vendor/rails/actionpack/lib/action_controller/caching.rb:677:in `perform_action'
    vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send'
    vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters'
    vendor/rails/actionpack/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
    vendor/rails/actionpack/lib/action_controller/session_management.rb:123:in `process'
    vendor/rails/actionpack/lib/action_controller/base.rb:388:in `process'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:171:in `handle_request'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in `dispatch'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch'
    vendor/rails/railties/lib/fcgi_handler.rb:101:in `process_request'
    vendor/rails/railties/lib/fcgi_handler.rb:149:in `with_signal_handler'
    vendor/rails/railties/lib/fcgi_handler.rb:99:in `process_request'
    vendor/rails/railties/lib/fcgi_handler.rb:77:in `process_each_request'
    /usr/lib/ruby/1.8/fcgi.rb:612:in `each_cgi'
    /usr/lib/ruby/1.8/fcgi.rb:609:in `each'
    /usr/lib/ruby/1.8/fcgi.rb:609:in `each_cgi'
    vendor/rails/railties/lib/fcgi_handler.rb:76:in `process_each_request'
    vendor/rails/railties/lib/fcgi_handler.rb:50:in `process!'
    vendor/rails/railties/lib/fcgi_handler.rb:24:in `process!'
    public/dispatch.fcgi:24

RE: Various "Internal error" after upgrading from 0.7.1 to 0.7.2 - Added by Gwenael Pellen about 2 years ago

Hi,

can you change truncate function by this in vendor/rails/actionpack/lib/action_view/helpers/text_helper.rb
this code is the truncate function on rails 1.1.6 debian package source.

def truncate(text, length = 30, truncate_string = "...")
        if text.nil? then return end
        l = length - truncate_string.length
        if $KCODE == "NONE" 
          text.length > length ? text[0...l] + truncate_string : text
        else
          chars = text.split(//)
          chars.length > length ? chars[0...l].join + truncate_string : text
        end
      end

best regards.
---
Gwenael Pellen

RE: Various "Internal error" after upgrading from 0.7.1 to 0.7.2 - Added by Thomas Lecavelier about 2 years ago

Have you check that you haven't files in conflict in your svn tree?
Which version of rails is frozen in your redmine?
The better should be to display the result of:

$ ruby script/about

RE: Various "Internal error" after upgrading from 0.7.1 to 0.7.2 - Added by Dennis K about 2 years ago

Thanks to both of you for your replies :)

@Gwenael Pellen:
Your code snippet makes redmine working again, thanks!

@Thomas Lecavelier:
Everything alright with the files, no conflicts.
For "ruby script/about" I had to create a development-database configuration. Here's the output:

$ ruby script/about 
About your application's environment
Ruby version              1.8.7 (x86_64-linux)
RubyGems version          1.1.1
Rails version             2.0.2
Active Record version     2.0.2
Action Pack version       2.0.2
Active Resource version   2.0.2
Action Mailer version     2.0.2
Active Support version    2.0.2
Edge Rails revision       rel_2-0-2
Application root          /var/www/redmine
Environment               development
Database adapter          mysql
Database schema version   92

To clear thinks up:
For the "undefined method 'length'" failure ruby 1.8.7 is to blame. I completly overlooked the upgrade of ruby from 1.8.6 to 1.8.7 on my system..
But with Gwenael Pellen's solution, redmine now works even with ruby 1.8.7! :)

Also see #1457

RE: Various "Internal error" after upgrading from 0.7.1 to 0.7.2 - Added by Thomas Lecavelier about 2 years ago

FYI, you can use the RAILS_ENV env variable to see your production config:

$ ruby script/about RAILS_ENV=production

RE: Various "Internal error" after upgrading from 0.7.1 to 0.7.2 - Added by Dennis K about 2 years ago

Unfortunately not :/

ruby script/about RAILS_ENV=production
/var/www/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:217:in `establish_connection': development database is not configured (ActiveRecord::AdapterNotSpecified)

RE: Various "Internal error" after upgrading from 0.7.1 to 0.7.2 - Added by Jason Fournier about 2 years ago

I'm trying to install Redmine (to be honest, this is my first rails app ever) and I'm getting Internal Server Errors as well. Any help would be AWESOME. I've searched the forums and found other errors, but nothing that seems to change my case.

Here's my info:

ruby script/about:
About your application's environment
Ruby version 1.8.7 (i686-linux)
RubyGems version 1.1.1
Rails version 2.0.2
Active Record version 2.0.2
Action Pack version 2.0.2
Active Resource version 2.0.2
Action Mailer version 2.0.2
Active Support version 2.0.2
Application root /var/www/redmine
Environment development
Database adapter mysql
Database schema version 92

And the log:
Logfile created on Tue Jun 17 19:03:33 +0000 2008/!\ FAILSAFE /!\ Tue Jun 17 19:04:43 +0000 2008
Status: 500 Internal Server Error
wrong number of arguments (2 for 1)
/usr/lib/ruby/1.8/cgi/session.rb:267:in `respond_to?'
/usr/lib/ruby/1.8/cgi/session.rb:267:in `initialize_without_cgi_reader'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/session.rb:39:in `initialize'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_process.rb:130:in `new'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_process.rb:130:in `session'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_process.rb:166:in `stale_session_check!'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_process.rb:114:in `session'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1131:in `assign_shortcuts_without_flash'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/flash.rb:167:in `assign_shortcuts'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:518:in `process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:112:in `handle_dispatch'
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:78:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:62:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/webrick.rb:66
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
script/server:3

RE: Various "Internal error" after upgrading from 0.7.1 to 0.7.2 - Added by Thomas Lecavelier about 2 years ago

Next time, please open a new thread.

Start by trying with mongrel:

sudo gem install mongrel

It's transparent for you (you can run ruby script/server without any change) and could work better.

RE: Various "Internal error" after upgrading from 0.7.1 to 0.7.2 - Added by Jason Fournier about 2 years ago

I installed mongrel and I'm having the same issues. I've started a new thread here:
http://www.redmine.org/boards/2/topics/show/1381

Thanks for the help Thomas, previously and any additional advice you might have.

I need an advice - Added by mulkinualuavy mulkinualuavy over 1 year ago

Hello!
I'm new here. I've been browsing tons of forums for an idea of what to do. I was laid off from my job about 3 month ago. I've been looking for a job since then, but did not even get a single interview. I worked as a web designer for a publishing company for the last 5 years. Looks like www.redmine.org is an active forum with active members and may be someone has some experience working as a freelance web designer. May be this category is not the most appropriate for this question, but I want to try anyways to get some opinions before I go ahead with my life. I'm wondering if it is possible in the current economy to find work for a freelance web designer and make enough to pay for rent and groceries. I was able to find a small project on craigslist and I developed a website for a company. It was a small project and took me only a week to complete. I got paid $800 for 1 week of work which is not bad. Please people give me some ideas. I have 2 kids and my wife is out of work as well. Thank you in advance.

good morning every one ... - Added by breexyweeri breexyweeri over 1 year ago

off the bat i simply really want to show my thanks to whoever runs this page...
Ive just been through a tough time and hanging out here has kept me sane...
everything is alright now, ive started do under writing for a broker selling <a href=http://minimedical.net><font color=black>individual health insurance</font></a> policies, and it is great...

muchas gracias every one...

Spam deleted - Added by Enlable Enlable 12 months ago

Spam deleted. Locked account.

Whey Protein Side Effects - Added by BrumsBort BrumsBort 10 months ago

Whey protein is a chosen portion of clean concentrate that is stray through a unsophisticated motorial treat. To get overlarge quantities that are advert viable, whey protein is produced as a outcome in cheeseflower creation. Whey protein is largely collected of fine protein. It is one of the two proteins in river, with the else sis protein beingness casein. The benefits of whey protein are individual used in the food affix industries. This is a multi-million note manufacture whose production finds secondary in both formulated and nonindustrial countries. Among the statesman rich assemblage, whey protein postscript are mostly desirable by body builders who are awake of their shapes and metric. Where resources including nutrient are specific, the whey protein affix is victimised an immune booster or in direction of starving persons. A few users of whey protein postscript somebody reportable experiencing supersensitized reactions. These are popularly referred to as whey protein sidelong personalty. These hypersensitive reactions bed in few cases been related indiscriminately with the whey protein activity and metabolism. An apprehension of the mechanisms by which whey protein surface personalty could occur is a prototypal maneuver towards revelation a user of whey protein attach.

Two byproducts of whey digestion and alveolate metabolism are disaccharide and lactalbumin. Lactalbumin is a protein corpuscle that can boost be tamed kill to radical acids. Metastasis of the peptides and group acids direction to abstinence of the utility of opposite peptides much as glutathione. Glutathione is a tripeptide that includes a treat span and overnight glutamate amino pane artefact. Its system is model as an anti-oxidant. Anti-oxidants are the released new sinks and protect the cell membranes from misconduct. Glutathione also serves as an anti-cancer and anti-inflammatory matter. The suspected whey protein select effects are also conditional on another welfare position indices of an organism. Where an somebody feeds on passable alternative sources of anti-oxidant specified as vitamin C and vitamin E, the chances of opinion effects are significantly reduced from whey protein view effects.

Though whey protein is suspected of feat the surface effects, its missy protein casein is a statesman drive of the supersensitised response. A purer whey protein achieved all the way through thoroughgoing alteration procedures would hit smallest whey protein endorse effects.

The wellbeing benefits of whey protein also far prevail the small indorse effects. Moreover, whey protein support personalty can be significantly reduced by purification and increased uptake of anti-oxidants.

Read More: <a href=http://wheyproteinsideeffects.net>Whey Protein Side Effects</a>

(1-13/13)