[BUG] Error to start Apache after upgrade to 3.1.7

Moderator: crythias

Locked
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

[BUG] Error to start Apache after upgrade to 3.1.7

Post by SuperDOS »

Hi,

I noticed that after upgrading to 3.1.7 I got an error when try to start OTRS

Starting OTRS
Checking Apache ... failed!
--> Please start the web server first! (rcapache22 start) <--

had to edit /etc/sysconfig/otrs so it reads rcapache2 and not rcapache22 :)

# Used webserver [apache]
#
OTRS_USED_WEBSERVER=Apache
OTRS_USED_WEBSERVER_RCSCRIPT=rcapache2
Schlumpf
Znuny advanced
Posts: 119
Joined: 12 Jan 2010, 14:41
Znuny Version: 3.0.x

Re: [BUG] Error to start Apache after upgrade to 3.1.7

Post by Schlumpf »

Hi,

same error here...

Tried to install OTRS 3.1.7 on openSuse 12.1 with MySQL 5.5 and Apache 2.2. Apache and MySQL is running but I can't start OTRS - only get the error massage

Code: Select all

Aug  1 11:45:57 linux-qxwd otrs[2676]: Starting OTRS
Aug  1 11:45:57 linux-qxwd otrs[2676]: Checking Apache ... failed!
Aug  1 11:45:57 linux-qxwd otrs[2676]: --> Please start the web server first! (rcapache22 start) <--
Aug  1 11:45:57 linux-qxwd systemd[1]: otrs.service: control process exited, code=exited status=1
Aug  1 11:45:57 linux-qxwd systemd[1]: Unit otrs.service entered failed state.
So i corrected the statement in the /etc/sysconfig/otrs and changed the "22" to a "2". The message the is still the same but with "rcapache2"

Code: Select all

Aug  1 11:47:56 linux-qxwd otrs[2727]: Starting OTRS
Aug  1 11:47:56 linux-qxwd otrs[2727]: Checking Apache ... failed!
Aug  1 11:47:56 linux-qxwd otrs[2727]: --> Please start the web server first! (rcapache2 start) <--
Aug  1 11:47:56 linux-qxwd systemd[1]: otrs.service: control process exited, code=exited status=1
Aug  1 11:47:56 linux-qxwd systemd[1]: Unit otrs.service entered failed state.
Is there anything else to fix? The apache errorlog says nothing, so I have only these few lines of text in the /var/log/messages file.

Hope there is anybody having the necessary hint for me.. I am looking forward it.

Regards
M.
OTRS: 3.0.8
OS: SuSE
Module: Apache2, MySQL
CSL
Znuny expert
Posts: 159
Joined: 11 Nov 2011, 19:27
Znuny Version: 3.0.11

Re: [BUG] Error to start Apache after upgrade to 3.1.7

Post by CSL »

Looks like it's trying to start apache using the wrong service name? Have a look inside /etc/init.d to see what your webserver service is called. On many distro's apache is called httpd. If httpd is present inside init.d then I'd change the line from rcapache2 to httpd.
Backend: OTRS 3.0.11 RedHat Enterprise Linux 6.2, Apache, MySQL with replication
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
Schlumpf
Znuny advanced
Posts: 119
Joined: 12 Jan 2010, 14:41
Znuny Version: 3.0.x

Re: [BUG] Error to start Apache after upgrade to 3.1.7

Post by Schlumpf »

In /etc/init.d/ I see a service called apache2. When I try to insert
rcapache2 force-start
on command line it works. Same happens when I insert
/etc/init.d/apache2 start
.

The error message from above does also appear when the webserver is allready running. It doesn't care about its state.

Nevertheless I tried changing the value in the /etc/sysconfig/otrs into "httpd". But this also doesn't have any effect.
OTRS: 3.0.8
OS: SuSE
Module: Apache2, MySQL
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: [BUG] Error to start Apache after upgrade to 3.1.7

Post by crythias »

I never start otrs as a service ... it doesn't make sense to me. If the web server works, mysql works, and cron works, otrs should work because it's a web application. It's not an executable/daemon. It doesn't really *run*, but rather "reacts" to input, etc.
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
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: [BUG] Error to start Apache after upgrade to 3.1.7

Post by Wolfgangf »

did you check your startup script (which is used in /etc/apache2/conf.d/otrs) for errors (uninstalled Perl modules, db connection, ...)
did you check /var/log/apache2/error_log
did you check /var/log/apache2/rcapache2.out
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
Locked