[SOLVED] Error after upgrade OTRS

Moderator: crythias

Locked
klausneil
Znuny superhero
Posts: 682
Joined: 29 May 2012, 22:47
Znuny Version: 6.0.24
Real Name: Klaus Salazar
Location: Perú

[SOLVED] Error after upgrade OTRS

Post by klausneil »

Greetings, this day I did the upgrade and everything loads fine but my attention the following message

root@was:/opt/otrs/bin# /etc/init.d/apache2 restart
Restarting web server: apache2[Thu Dec 06 13:44:31 2012] [warn] The ScriptAlias directive in /etc/apache2/conf.d/otrs.conf at line 7 will probably never match because it overlaps an earlier ScriptAlias.
[Thu Dec 06 13:44:31 2012] [warn] The Alias directive in /etc/apache2/conf.d/otrs.conf at line 8 will probably never match because it overlaps an earlier Alias.
... waiting .[Thu Dec 06 13:44:33 2012] [warn] The ScriptAlias directive in /etc/apache2/conf.d/otrs.conf at line 7 will probably never match because it overlaps an earlier ScriptAlias.
[Thu Dec 06 13:44:33 2012] [warn] The Alias directive in /etc/apache2/conf.d/otrs.conf at line 8 will probably never match because it overlaps an earlier Alias.
.

Know someone referred?
Last edited by klausneil on 09 Dec 2012, 01:13, edited 1 time in total.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Error after upgrade OTRS

Post by reneeb »

Please do not open several threads for each topic: Please stick to viewtopic.php?f=63&t=18369&p=72162#p72162
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Error after upgrade OTRS

Post by jojo »

Hi,

I closed the thread. It seems to e the same issue like on you other post. Check very carefully your apache configs. There might be another config for OTRS in the apache configs.

Please post the otrs.conf file.

You should also read some basic documentation on:

- Linux basic tools like find, grep
- Apache
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
klausneil
Znuny superhero
Posts: 682
Joined: 29 May 2012, 22:47
Znuny Version: 6.0.24
Real Name: Klaus Salazar
Location: Perú

Re: Error after upgrade OTRS

Post by klausneil »

Hi, i send mi file, the error is in the line 7 and 8 of otrs.conf
Last edited by klausneil on 19 Dec 2012, 00:29, edited 1 time in total.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Error after upgrade OTRS

Post by jojo »

there is another otrs config active ..
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
klausneil
Znuny superhero
Posts: 682
Joined: 29 May 2012, 22:47
Znuny Version: 6.0.24
Real Name: Klaus Salazar
Location: Perú

Re: Error after upgrade OTRS

Post by klausneil »

You can tell me which of these files need

/ etc/apache2/sites-available/otrs.conf
/ etc/apache2/conf.d/otrs.conf
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Error after upgrade OTRS

Post by jojo »

the default file is / etc/apache2/conf.d/otrs.conf so the other one can be deleted
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
klausneil
Znuny superhero
Posts: 682
Joined: 29 May 2012, 22:47
Znuny Version: 6.0.24
Real Name: Klaus Salazar
Location: Perú

Re: Error after upgrade OTRS

Post by klausneil »

ok thanks i deleted this file, now this is the otrs.conf that you asked me:

# --
# added for OTRS (http://otrs.org/)
# $Id: apache2-httpd.include.conf,v 1.25 2011/11/05 17:39:09 mb Exp $
# --

# agent, admin and customer frontend
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"

# activate this if you are using an Oracle database
#SetEnv ORACLE_HOME /path/to/your/oracle/
#SetEnv ORACLE_SID YOUR_SID
#SetEnv NLS_LANG AMERICAN_AMERICA.UTF8
#SetEnv NLS_DATE_FORMAT 'YYYY-MM-DD HH24:MI:SS'

# if mod_perl is used
<IfModule mod_perl.c>

# load all otrs modules
Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl

# Apache::Reload - Reload Perl Modules when Changed on Disk
PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlModule Apache2::RequestRec

# set mod_perl2 options
<Location /otrs>
# ErrorDocument 403 /otrs/customer.pl
ErrorDocument 403 /otrs/index.pl
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
PerlOptions +SetupEnv
Order allow,deny
Allow from all
</Location>

# set mod_perl2 option for generic interface
<Location /otrs/nph-genericinterface.pl>
PerlOptions -ParseHeaders
</Location>

</IfModule>

# directory settings
<Directory "/opt/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_headers.c>
<Directory "/opt/otrs/var/httpd/htdocs/skins/*/*/css-cache">
<FilesMatch "\.(css|CSS)$">
Header set Cache-Control "max-age=2592000 must-revalidate"
</FilesMatch>
</Directory>

<Directory "/opt/otrs/var/httpd/htdocs/js/js-cache">
<FilesMatch "\.(js|JS)$">
Header set Cache-Control "max-age=2592000 must-revalidate"
</FilesMatch>
</Directory>
</IfModule>

MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 4000
klausneil
Znuny superhero
Posts: 682
Joined: 29 May 2012, 22:47
Znuny Version: 6.0.24
Real Name: Klaus Salazar
Location: Perú

Re: Error after upgrade OTRS

Post by klausneil »

please anybody can help me? now when restart apache say:

root@was:~# /etc/init.d/apache2 restart
Restarting web server: apache2[Sat Dec 08 14:27:21 2012] [warn] The ScriptAlias directive in /etc/apache2/conf.d/otrs.conf at line 7 will probably never match because it overlaps an earlier ScriptAlias.
[Sat Dec 08 14:27:21 2012] [warn] The Alias directive in /etc/apache2/conf.d/otrs.conf at line 8 will probably never match because it overlaps an earlier Alias.
... waiting .[Sat Dec 08 14:27:23 2012] [warn] The ScriptAlias directive in /etc/apache2/conf.d/otrs.conf at line 7 will probably never match because it overlaps an earlier ScriptAlias.
[Sat Dec 08 14:27:23 2012] [warn] The Alias directive in /etc/apache2/conf.d/otrs.conf at line 8 will probably never match because it overlaps an earlier Alias.
.
root@was:~# /etc/init.d/apache2 status
Apache2 is running (pid 3665).
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Error after upgrade OTRS

Post by crythias »

It means what it says. there's a conflict between this file and another file that *also* is set up for otrs

"what can I do to find this?"

cd /etc/apache2 (or /etc/apache)
grep -sir "otrs" *

and see what files have otrs in the name. Chances are, there is more than one. If so, check the dates of install, hide/remove/backup the old file and try again.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
klausneil
Znuny superhero
Posts: 682
Joined: 29 May 2012, 22:47
Znuny Version: 6.0.24
Real Name: Klaus Salazar
Location: Perú

Re: Error after upgrade OTRS

Post by klausneil »

Excelente my friend crythias this are the files:

/etc/apache2/conf.d/otrs.conf
/etc/apache2/conf.d/otrs-no_ssl.conf

i'm backup and delete one now Apache is working!! thank you.
monitoreo
Znuny newbie
Posts: 2
Joined: 18 Dec 2012, 06:05
Znuny Version: 3.1.10
Real Name: Carlos Bernal
Company: TVSA

Re: [SOLVED] Error after upgrade OTRS

Post by monitoreo »

I have an other issue, when I upgrade otrs from 3.1.10 to 3.1.11 according to patch notes, in one point of the procedure say to make a ln -s from old version to the new version. When I finished the complete procedure and restart the processes, I logued in the web interface but in the bottom still appears the advices to get update to 3.1.11 and below these the 3.1.10 version stands.

So, how do I know if the new version was correctly installed?
The soft link "ln -s" made during the process will be for ever? What will it happen when I get a new patch notes upgrade?

Thanks in advanced.
klausneil
Znuny superhero
Posts: 682
Joined: 29 May 2012, 22:47
Znuny Version: 6.0.24
Real Name: Klaus Salazar
Location: Perú

Re: [SOLVED] Error after upgrade OTRS

Post by klausneil »

Hi follow the next link http://doc.otrs.org/3.1/en/html/upgrading.html here say step by step, please post the topic as new

p.d= refresh the configuration with

#> bin/otrs.RebuildConfig.pl
#> bin/otrs.DeleteCache.pl


Remember always post it as new topic.
Locked