Project

General

Profile

Internal Error

Added by Erich Rockman almost 14 years ago

Hello. I keep getting an Internal Error from redmine but nothing is logged in the production.log file. Is there a way to turn up the logging? It is happening at random times so I have not found a pattern. I am using thin webserver as a windows service with postgres 8.4.3.1. Below is some more info on the environment.

C:\redmine-0.9.4>gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/Ruby/lib/ruby/gems/1.8
- RUBY EXECUTABLE: C:/Ruby/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/Ruby/lib/ruby/gems/1.8
- C:/Documents and Settings/administrator/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/

C:\redmine-0.9.4>gem list

  • LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
eventmachine (0.12.10)
fastthread (1.0.7)
gem_plugin (0.2.3)
mongrel (1.1.5)
postgres-pr (0.6.3)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
thin (1.2.7)
win32-api (1.4.6)
windows-api (0.4.0)
windows-pr (1.0.9)


Replies (7)

RE: Internal Error - Added by Erich Rockman almost 14 years ago

One other thing. thin is still running listening on port 7000 but redmine has stopped.

RE: Internal Error - Added by Dave Carpeneto almost 14 years ago

Is there a way to turn up the logging?

Hi - add the following line to redmine/config/environments/production.rb :

config.log_level = :debug

... this seems to log quite a bit, esp. SQL

RE: Internal Error - Added by Erich Rockman almost 14 years ago

It crashed again with an Internal Server error but nothing was logged to the debug log file. The last entries were about selecting the list of projects. It has failed a few times at this point. Any known issues around that?

RE: Internal Error - Added by Erich Rockman almost 14 years ago

It seems to me that this is happening because it is losing the connection to the postgres db. Anyone have any ideas how to maintain the connections?

RE: Internal Error - Added by Felix Schäfer almost 14 years ago

Maybe see if there are known issues between the postgresql rails adapter you are using and the version of postgresql you use. I also seem to remember that the pg gem worked better than others…

RE: Internal Error - Added by Erich Rockman almost 14 years ago

Thanks. I was using postgres-pr. How do I tell the app to use pg vs postgres-pr? Thanks.

RE: Internal Error - Added by Felix Schäfer almost 14 years ago

Just deinstall postgres-pr, though I recommend googling it just to be sure.

    (1-7/7)