Support / KnowledgeBase

 
Search the KnowledgeBase Search

(gs) Ruby on Rails and Instiki 0.11.0

  • Applies to: (gs)

  • Difficulty: Easy

  • Time needed: 5 minutes

  • Tools needed: None

 

Details:

Instiki is a lightweight Ruby on Rails based wiki application.

Version 0.11.0 of Instiki is compatible with the (gs) Grid-Service, however there is one modification that must be made due to the way that Instiki 0.11.0 is packaged.

Instiki comes with a version of Ruby on Rails frozen in the vendor subdirectory. This version opened one database connection per thread, and since Mongrel is multi-threaded, after a few requests, Instiki has opened enough connections to cause the connection limit to be reached. When the connection limit is reached, Instiki begins to show "500 Server Error".

The solution is to disable database concurrency (which is now the default in Rails) by adding the following line to config/environment.rb:

ActiveRecord::Base.allow_concurrency = false

Note that this applies to version 0.11.0 of Instiki. Future versions may not have this issue.

Revisions:

07-20-2009: Minor Fixes
 


User Comments

No visitor comments posted. Post a comment

Fields marked with an asterisk(*) are required. Comment on this article

Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue