problem running two instance of otrs on one server

Hello to all,
Information:
OS: debian linux
Webserver: Apache
Otrs Version: 1.3.1
I have apache configured for several name based virtual web servers.
I have installed first instance of otrs with following config.
INSTANCE ONE:
Otrs base dir: /opt/otrs
Otrs database: otrs
Otrs SystemID: 10
$Self->{LogModule} = 'Kernel::System::Log::SysLog';
Otrs Webcofnig:
<VirtualHost IPaddr>
ServerAdmin user@domain.com
DocumentRoot /opt/otrs/var/httpd/htdocs/
ServerName webserver.domain.com
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
Alias /otrs/ "/opt/otrs/bin/cgi-bin/"
<IfModule mod_perl.c>

Do the two instances bear different SystemIDs? hth, Robert Kehl Tripal Jadeja schrieb:
Information: OS: debian linux Webserver: Apache Otrs Version: 1.3.1
I have apache configured for several name based virtual web servers. I have installed first instance of otrs with following config. INSTANCE ONE:
Otrs base dir: /opt/otrs Otrs database: otrs Otrs SystemID: 10 $Self->{LogModule} = 'Kernel::System::Log::SysLog'; Otrs Webcofnig: <VirtualHost IPaddr> ServerAdmin user@domain.com DocumentRoot /opt/otrs/var/httpd/htdocs/ ServerName webserver.domain.com Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/" Alias /otrs/ "/opt/otrs/bin/cgi-bin/" <IfModule mod_perl.c>
SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI PerlSendHeader On </Location> </IfModule> </VirtualHost> Configuration for Second instance of otrs on same server. INSTANCE TWO:
Otrs base dir: /opt/otrs1 Otrs database: otrs1 Otrs SystemID: 20 $Self->{LogModule} = 'Kernel::System::Log::SysLog'; Otrs Webcofnig: <VirtualHost IPaddr> ServerAdmin user@domain.com DocumentRoot /opt/otrs1/var/httpd/htdocs/ ServerName webserver1.domain.com Alias /otrs-web/ "/opt/otrs1/var/httpd/htdocs/" Alias /otrs/ "/opt/otrs1/bin/cgi-bin/" <IfModule mod_perl.c>
SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI PerlSendHeader On </Location> </IfModule> </VirtualHost> Now the problem. 1) The following is snip for syslog view of otrs INSTACE TWO. Wed Oct 15 16:24:43 2004 notice OTRS-CGI-20 User: one doesn't exist or is invalid!!! (REMOTE_ADDR: 10.0.0.121) Wed Oct 15 16:24:35 2004 notice OTRS-CGI-20 User: one doesn't exist or is invalid!!! (REMOTE_ADDR: 10.0.0.121) Wed Oct 15 16:24:23 2004 notice OTRS-CGI-20 SessionID: '1097041a8720ba67004a2115157269fdae' is invalid!!! Wed Oct 15 16:20:59 2004 notice OTRS-CGI-20 User: two authentication ok (REMOTE_ADDR: 10.0.0.101). Wed Oct 15 16:18:38 2004 notice OTRS-CGI-20 User: three doesn't exist or is invalid!!! (REMOTE_ADDR: 10.0.0.131) Wed Oct 15 16:18:27 2004 notice OTRS-CGI-20 User: three doesn't
Problem here is user one and two have NEVER tried to login to otrs instance two. I have checked the web server log I do not find any access entry from ip address 10.0.0.121 or 10.0.0.131 to web server of otrs instance two. I do not understand hows this happening.
2) users on otrs instance two are getting logged out suddenly with error session is invalid. I have changed the config for sessions on instance two.
$Self->{SessionModule} = 'Kernel::System::AuthSession::DB'; $Self->{SessionName} = 'Session'; $Self->{SessionCheckRemoteIP} = 1; $Self->{SessionDeleteIfNotRemoteID} = 1; $Self->{SessionMaxTime} = 8*60*60; $Self->{SessionMaxIdleTime} = 4*60*60; $Self->{SessionDeleteIfTimeToOld} = 1; $Self->{SessionUseCookie} = 1; $Self->{SessionUseCookieAfterBrowserClose} = 0;
But does not help. Users are still getting kicked out with error message invalid session.
There are NO problems on otrs instance ONE.
Mit freundlichen Grüßen, Tripalsinh Jadeja Systems Administrator Icompo.net GmbH Phone: +49-331-20136185 Fax : +49-331-20136485
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? =http://www.otrs.de/

Yes , It is mentioned in my first post. Have a look. Thanks, tripal -----Ursprüngliche Nachricht----- Von: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] Im Auftrag von Robert Kehl Gesendet: Wednesday, October 27, 2004 12:20 PM An: User questions and discussions about OTRS. Betreff: Re: [otrs] problem running two instance of otrs on one server Do the two instances bear different SystemIDs? hth, Robert Kehl Tripal Jadeja schrieb:
Information: OS: debian linux Webserver: Apache Otrs Version: 1.3.1
I have apache configured for several name based virtual web servers. I have installed first instance of otrs with following config. INSTANCE ONE:
Otrs base dir: /opt/otrs Otrs database: otrs Otrs SystemID: 10 $Self->{LogModule} = 'Kernel::System::Log::SysLog'; Otrs Webcofnig: <VirtualHost IPaddr> ServerAdmin user@domain.com DocumentRoot /opt/otrs/var/httpd/htdocs/ ServerName webserver.domain.com Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/" Alias /otrs/ "/opt/otrs/bin/cgi-bin/" <IfModule mod_perl.c>
SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI PerlSendHeader On </Location> </IfModule> </VirtualHost> Configuration for Second instance of otrs on same server. INSTANCE TWO:
Otrs base dir: /opt/otrs1 Otrs database: otrs1 Otrs SystemID: 20 $Self->{LogModule} = 'Kernel::System::Log::SysLog'; Otrs Webcofnig: <VirtualHost IPaddr> ServerAdmin user@domain.com DocumentRoot /opt/otrs1/var/httpd/htdocs/ ServerName webserver1.domain.com Alias /otrs-web/ "/opt/otrs1/var/httpd/htdocs/" Alias /otrs/ "/opt/otrs1/bin/cgi-bin/" <IfModule mod_perl.c>
SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI PerlSendHeader On </Location> </IfModule> </VirtualHost> Now the problem. 1) The following is snip for syslog view of otrs INSTACE TWO. Wed Oct 15 16:24:43 2004 notice OTRS-CGI-20 User: one doesn't exist or is invalid!!! (REMOTE_ADDR: 10.0.0.121) Wed Oct 15 16:24:35 2004 notice OTRS-CGI-20 User: one doesn't exist or is invalid!!! (REMOTE_ADDR: 10.0.0.121) Wed Oct 15 16:24:23 2004 notice OTRS-CGI-20 SessionID: '1097041a8720ba67004a2115157269fdae' is invalid!!! Wed Oct 15 16:20:59 2004 notice OTRS-CGI-20 User: two authentication ok (REMOTE_ADDR: 10.0.0.101). Wed Oct 15 16:18:38 2004 notice OTRS-CGI-20 User: three doesn't exist or is invalid!!! (REMOTE_ADDR: 10.0.0.131) Wed Oct 15 16:18:27 2004 notice OTRS-CGI-20 User: three doesn't
Problem here is user one and two have NEVER tried to login to otrs instance two. I have checked the web server log I do not find any access entry from ip address 10.0.0.121 or 10.0.0.131 to web server of otrs instance two. I do not understand hows this happening.
2) users on otrs instance two are getting logged out suddenly with error session is invalid. I have changed the config for sessions on instance two.
$Self->{SessionModule} = 'Kernel::System::AuthSession::DB'; $Self->{SessionName} = 'Session'; $Self->{SessionCheckRemoteIP} = 1; $Self->{SessionDeleteIfNotRemoteID} = 1; $Self->{SessionMaxTime} = 8*60*60; $Self->{SessionMaxIdleTime} = 4*60*60; $Self->{SessionDeleteIfTimeToOld} = 1; $Self->{SessionUseCookie} = 1; $Self->{SessionUseCookieAfterBrowserClose} = 0;
But does not help. Users are still getting kicked out with error message invalid session.
There are NO problems on otrs instance ONE.
Mit freundlichen Grüßen, Tripalsinh Jadeja Systems Administrator Icompo.net GmbH Phone: +49-331-20136185 Fax : +49-331-20136485
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? =http://www.otrs.de/
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/

Tripal Jadeja schrieb:
SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI PerlSendHeader On </Location> SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI PerlSendHeader On </Location>
Now I see. The problem is related to mod_perl not being able to decide which code base to work in. The perl startup scripts both load the same set of modules, which prevents OTRS from working correctly. I know this explanation is stumbling, sorry. Solution: Switch one of the two (or both) to CGI. This should work. hth, Robert Kehl

Thanks Robert, As a workaround I have already switched to two physical server solution which is not what exactly I planed, but now as I have solution from you I shall try it. Greetings, Tripal -----Ursprüngliche Nachricht----- Von: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] Im Auftrag von Robert Kehl Gesendet: Thursday, November 04, 2004 11:21 AM An: User questions and discussions about OTRS. Betreff: Re: [otrs] problem running two instance of otrs on one server Tripal Jadeja schrieb:
SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI PerlSendHeader On </Location> SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI PerlSendHeader On </Location>
Now I see. The problem is related to mod_perl not being able to decide which code base to work in. The perl startup scripts both load the same set of modules, which prevents OTRS from working correctly. I know this explanation is stumbling, sorry. Solution: Switch one of the two (or both) to CGI. This should work. hth, Robert Kehl _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
participants (2)
-
Robert Kehl
-
Tripal Jadeja