Project

General

Profile

Redmine - Internal Server error?

Added by Tempes 2k almost 14 years ago

Hey,

Redmine was running perfect till now...

we get Internal Server error

Error logs show

S-7861:/etc/apache2/sites-enabled# tail -f /var/log/apache2/error.log
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:277:in `run_callbacks'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:559:in `send'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:559:in `prepare_dispatcher'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:173:in `process'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:112:in `send'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:112:in `run'
from /usr/share/redmine/public/../config/environment.rb:28
from /usr/share/redmine/public/dispatch.fcgi:21:in `require'
from /usr/share/redmine/public/dispatch.fcgi:21
[Mon Feb 21 12:00:49 2011] [notice] mod_fcgid: process /usr/share/redmine/public/dispatch.fcgi(18178) exit(communication error), terminated by calling exit(), return code: 1

S-7861:/etc/apache2/sites-enabled# tail -f /var/customers/logs/pm-kk-error.log
[Mon Feb 21 11:54:33 2011] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Mon Feb 21 11:54:33 2011] [error] [client 193.254.xx.233] Premature end of script headers: dispatch.fcgi [Mon Feb 21 11:54:42 2011] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Mon Feb 21 11:54:42 2011] [error] [client 193.254.xx.233] Premature end of script headers: dispatch.fcgi [Mon Feb 21 11:54:43 2011] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Mon Feb 21 11:54:43 2011] [error] [client 193.254.xx.233] Premature end of script headers: dispatch.fcgi


Replies (11)

RE: Redmine - Internal Server error? - Added by Etienne Massip almost 14 years ago

Tail is too short, please post the full exception trace (use tail -n #lines ).

Are you using some redmine plugins ?

RE: Redmine - Internal Server error? - Added by Tempes 2k almost 14 years ago

we tried to install a plugin to paste screenshots from clipboard to redmine.

This was last week?... i tried to type in in ssh console

-> rake db:migrate:plugins RAILS_ENV=production

i don't know if this command worked .... i couldnt find any change in redmine...
3 days later... internal error Code 500 -> redmine is not working...

maybe i should delete oder rename the plugin and restart redmine?
how do i restart redmine ? or is it only possible to restart the server?

thanks for your help

RE: Redmine - Internal Server error? - Added by Etienne Massip almost 14 years ago

You should really paste here the result of tail -n 30 -f /var/log/apache2/error.log first.

I don't know much about apache with ruby, guess you should restart apache.

What Redmine version are you using ?

What's your plugin + version ? Is this this one ?

RE: Redmine - Internal Server error? - Added by Tempes 2k almost 14 years ago

Plugin Version is redmine_screenshot_paste-1.1.0

S-7861:/etc/init.d# tail -n 30 -f /var/log/apache2/error.log
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:112:in `run'
from /usr/share/redmine/public/../config/environment.rb:28
from /usr/share/redmine/public/dispatch.fcgi:21:in `require'
from /usr/share/redmine/public/dispatch.fcgi:21
[Mon Feb 21 13:42:38 2011] [notice] mod_fcgid: process /usr/share/redmine/public/dispatch.fcgi(22636) exit(communication error), terminated by calling exit(), return code: 1
/usr/share/redmine/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method': undefined method `attach_files' for class `Class' (NameError)
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method_chain'
from /usr/share/redmine/vendor/plugins/_redmine_screenshot_paste-1.1.0/init.rb:42:in `included'
from /usr/share/redmine/vendor/plugins/_redmine_screenshot_paste-1.1.0/init.rb:40:in `class_eval'
from /usr/share/redmine/vendor/plugins/_redmine_screenshot_paste-1.1.0/init.rb:40:in `included'
from /usr/share/redmine/vendor/plugins/_redmine_screenshot_paste-1.1.0/init.rb:66:in `include'
from /usr/share/redmine/vendor/plugins/_redmine_screenshot_paste-1.1.0/init.rb:66:in `send'
from /usr/share/redmine/vendor/plugins/_redmine_screenshot_paste-1.1.0/init.rb:66:in `evaluate_init_rb'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `call'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `evaluate_method'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:166:in `call'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `each'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `send'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:277:in `run_callbacks'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:559:in `send'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:559:in `prepare_dispatcher'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:173:in `process'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:112:in `send'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:112:in `run'
from /usr/share/redmine/public/../config/environment.rb:28
from /usr/share/redmine/public/dispatch.fcgi:21:in `require'
from /usr/share/redmine/public/dispatch.fcgi:21
[Mon Feb 21 13:46:04 2011] [notice] mod_fcgid: process /usr/share/redmine/public/dispatch.fcgi(22799) exit(communication error), terminated by calling exit(), return code: 1

RE: Redmine - Internal Server error? - Added by Etienne Massip almost 14 years ago

I think you are using this plugin with an incompatible version of Redmine.

According to PluginScreenshotPaste :

Plugin Version Redmine compatibility
1.0.2 0.9.x releases
0.9.stable
1.1.0 0.9.devel (r3523 and above)

What Redmine version are you using ?

RE: Redmine - Internal Server error? - Added by Tempes 2k almost 14 years ago

Where can i see my Redmine Version, Redmine ist not working .....
If REdmine would work ... ;) no problem...

is there any possiblity to get redmine work??

i tried to delete /usr/share/redmine/vendor/plugins/PLUGINNAME
but no chance - redmine does not work...

i need ideas.. to fix this problem ! ;(

RE: Redmine - Internal Server error? - Added by Etienne Massip almost 14 years ago

If you delete your plugin, then restart your server.

Deleting the plugin should work.

You can see Redmine version in your doc/CHANGELOG file =)

RE: Redmine - Internal Server error? - Added by Tempes 2k almost 14 years ago

perfect redmine is working

first delete the plugin from your vendor folder

then restart apache2

fixed

ok.. now the next problem ->
which plugin should i install

we have Redmine 0.9.1.stable (MySQL) installed!

RE: Redmine - Internal Server error? - Added by Etienne Massip almost 14 years ago

As there is only 2 versions, try the other one (1.0.2) !

RE: Redmine - Internal Server error? - Added by Tempes 2k almost 14 years ago

hey thanks

i copied this plugin to my vendor folder

after that i restarted my apache2

Redmine is working - in my adminstration panel i can see the plugin:

Screenshot Paste
Allow pasting a screenshot from the clipboard on the issue form.
Jean-Philippe Lang 1.0.2

If i want to read tickets or open a new ticket i get

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.

my apache error log shows:

linux:~# tail n 30 -f /var/log/apache2/error.log
/usr/share/redmine/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method': undefined method `attach_files' for class `Class' (NameError)
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method_chain'
from /usr/share/redmine/vendor/plugins/_redmine_screenshot_paste-1.1.0/init.rb:42:in `included'
from /usr/share/redmine/vendor/plugins/_redmine_screenshot_paste-1.1.0/init.rb:40:in `class_eval'
from /usr/share/redmine/vendor/plugins/_redmine_screenshot_paste-1.1.0/init.rb:40:in `included'
from /usr/share/redmine/vendor/plugins/_redmine_screenshot_paste-1.1.0/init.rb:66:in `include'
from /usr/share/redmine/vendor/plugins/_redmine_screenshot_paste-1.1.0/init.rb:66:in `send'
from /usr/share/redmine/vendor/plugins/_redmine_screenshot_paste-1.1.0/init.rb:66:in `evaluate_init_rb'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `call'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `evaluate_method'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:166:in `call'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `each'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `send'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run'
from /usr/share/redmine/vendor/rails/activesupport/lib/active_support/callbacks.rb:277:in `run_callbacks'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:559:in `send'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:559:in `prepare_dispatcher'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:173:in `process'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:112:in `send'
from /usr/share/redmine/public/../config/../vendor/rails/railties/lib/initializer.rb:112:in `run'
from /usr/share/redmine/public/../config/environment.rb:28
from /usr/share/redmine/public/dispatch.fcgi:21:in `require'
from /usr/share/redmine/public/dispatch.fcgi:21
[Mon Feb 21 13:50:35 2011] [notice] mod_fcgid: process /usr/share/redmine/public/dispatch.fcgi(23009) exit(communication error), terminated by calling exit(), return code: 1
[Mon Feb 21 14:19:15 2011] [notice] caught SIGTERM, shutting down
[Mon Feb 21 14:19:17 2011] [notice] Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 configured -
resuming normal operations
[Mon Feb 21 14:38:27 2011] [notice] caught SIGTERM, shutting down
[Mon Feb 21 14:38:27 2011] [notice] mod_fcgid: process /usr/share/redmine/public/dispatch.fcgi(24522) exit(shutting down), terminated by calling exit(), return code: 0
[Mon Feb 21 14:38:28 2011] [notice] Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations

RE: Redmine - Internal Server error? - Added by Etienne Massip almost 14 years ago

This error is the previous one, meaning there is no error in log ?

    (1-11/11)