Project

General

Profile

Redmine on Debian don't work anymore

Added by Holger Seitter over 7 years ago

Hello,

I have Redmine 3.3.0 installed on a actual Debian8 working with Apache. This setup works many weeks. Since a few day I get an internal server error:-( I changed nothing, maybe an apt-get update and apt-get upgrade...

My /etc/apache2/sites-available/redmine.conf:
<VirtualHost *:80>
ServerName redmine.my.domain
RailsEnv production
SetEnv X_DEBIAN_SITEID "default"
PassengerAppGroupName redmine_default
PassengerDefaultUser www-data
Alias "/plugin_assets/" /var/www/redmine/public/plugin_assets/
DocumentRoot /var/www/redmine/public
RailsBaseURI /var/www/redmine
<Directory "/var/www/redmine/public">
Allow from all
Options -MultiViews
Require all granted
</Directory>
ErrorLog /var/log/apache2/redmine-error.log
CustomLog /var/log/apache2/redmine-access.log combined
</VirtualHost>

There is no /var/log/apache2/redmine-error.log!! Don't know why?
But in /var/log/apache2/error.log I get the following:

[ 2016-10-19 15:27:59.0352 8538/7f6302074780 apache2/Hooks.cpp:732 ]: Unexpected error in mod_passenger: Cannot connect to the helper agent at /tmp/passenger.1.0.6019/generation-3/request
Backtrace:
in 'Passenger::FileDescriptor Hooks::connectToHelperAgent()' (Hooks.cpp:291)
in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:546)

There is no passenger.* in /tmp!! (Manual creation of these directories don't help).

I think it's a problem with passanger and not with redmine, but what problem? :-) How can I find it and fix it? :-)

Greetings form Germany
Holger


Replies (6)

RE: Redmine on Debian don't work anymore - Added by Gwyll Gwyllin over 7 years ago

Hello,

have you tried to reinstall the passenger module?
Try the passenger-install-apache2-module command.

RE: Redmine on Debian don't work anymore - Added by Holger Seitter over 7 years ago

Yes, with the same result.. :-(

RE: Redmine on Debian don't work anymore - Added by Gwyll Gwyllin over 7 years ago

Sorry for the delay ... :)

My redmine runs on Debian Jessie ... I can state that redmine runs an Debian 8. But I also don't have that passenger file in /tmp.

As I compared my apache config to your I found one interesting line

My config:

        RailsBaseURI /redmine
        PassengerUserSwitching on
        PassengerUser redmine
        PassengerGroup redmine

Your config:

ServerName redmine.my.domain
RailsEnv production
SetEnv X_DEBIAN_SITEID "default" 
PassengerAppGroupName redmine_default
PassengerDefaultUser www-data
Alias "/plugin_assets/" /var/www/redmine/public/plugin_assets/
DocumentRoot /var/www/redmine/public
RailsBaseURI /var/www/redmine

I don't know much about redmine, but the "URI" doesn't mean a filesystem path for me. I think you should try with "RailsBaseURI /redmine"

Gwyll

RE: Redmine on Debian don't work anymore - Added by Holger Seitter over 7 years ago

Yes, it works no.

But me configuraition works for month.... strange :-)

RE: Redmine on Debian don't work anymore - Added by Holger Seitter about 7 years ago

After some weeks Redmine has worked, now it don't anymore...

passenger-install-apache2-module works but the error is the same.

Any hints?

RE: Redmine on Debian don't work anymore - Added by Holger Seitter about 7 years ago

Now, some weeks later, I have the same error again without changing anything.... I run the passenger-install-apache2-module again and found a different version number in the apache-config. I changed them to the correct number but the error is the same.

Don't know how to fix and what is the reasen for the error

The error is:

[ 2017-02-14 12:05:38.0797 31627/7fdc1c17b780 apa/Hooks.cpp:690 ]: Unexpected error in mod_passenger: Cannot connect to the Passenger core at unix:/tmp/passenger.HAZhpTg/agents.s/core
Backtrace:
in 'Passenger::FileDescriptor Hooks::connectToCore()' (Hooks.cpp:306)
in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:561)

    (1-6/6)