[SOLVED]v4 upgrade help unable to start httpd after upgrade

Moderator: crythias

Locked
minijay
Znuny newbie
Posts: 32
Joined: 26 Sep 2011, 17:45
Znuny Version: 5.0.14
Real Name: justin
Company: gigasoft

[SOLVED]v4 upgrade help unable to start httpd after upgrade

Post by minijay »

hi guys

need some help...

ive followed the guide and upgraded to version 4.02 all seemed to go well until i tried to restart the httpd service, basically it wont start

i managed to get into the error log and it displays the below errors.

[Sun Dec 14 03:28:08 2014] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 14 03:28:08 2014] [notice] Digest: done
[Sun Dec 14 03:28:08 2014] [warn] ./mod_dnssd.c: No services found to register
[Sun Dec 14 03:28:08 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Dec 14 22:40:14 2014] [error] [client 112.205.236.8] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /tmUnblock.cgi
[Mon Dec 15 10:24:59 2014] [error] [client 24.240.178.106] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /tmUnblock.cgi
[Mon Dec 15 12:00:41 2014] [notice] caught SIGTERM, shutting down
[Mon Dec 15 12:19:16 2014] [error] Can't locate Apache2/Reload.pm in @INC (@INC contains: /usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 . /etc/httpd) at (eval 145) line 3.\n
[Mon Dec 15 12:19:16 2014] [error] Can't load Perl module Apache2::Reload for server 85-151-250-212.static.virginm.net:0, exiting...
[Mon Dec 15 12:34:43 2014] [error] Can't locate Apache2/Reload.pm in @INC (@INC contains: /usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 . /etc/httpd) at (eval 145) line 3.\n
[Mon Dec 15 12:34:43 2014] [error] Can't load Perl module Apache2::Reload for server 85-151-250-212.static.virginm.net:0, exiting...


Apache2::Reload was listed as an optional requirement so i didnt install it... after seeing the above error i thought i would give it ago so i used cpan and got the below error when trying to install it.

cpan[3]> install Apache2::Reload
CPAN: Storable loaded ok (v2.20)
Going to read '/root/.cpan/Metadata'
Database was generated on Mon, 15 Dec 2014 14:53:32 GMT
Running install for module 'Apache2::Reload'
CPAN: Data::Dumper loaded ok (v2.124)
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/root/.cpan/prefs'
Running make for P/PH/PHRED/Apache-Reload-0.12.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
CPAN: Compress::Zlib loaded ok (v2.021)
Checksum for /root/.cpan/sources/authors/id/P/PH/PHRED/Apache-Reload-0.12.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
CPAN: Archive::Tar loaded ok (v1.58)
Apache-Reload-0.12/
Apache-Reload-0.12/Changes
Apache-Reload-0.12/lib/
Apache-Reload-0.12/LICENSE
Apache-Reload-0.12/Makefile.PL
Apache-Reload-0.12/MANIFEST
Apache-Reload-0.12/META.json
Apache-Reload-0.12/META.yml
Apache-Reload-0.12/README
Apache-Reload-0.12/RELEASE
Apache-Reload-0.12/t/
Apache-Reload-0.12/t/all.t
Apache-Reload-0.12/t/conf/
Apache-Reload-0.12/t/lib/
Apache-Reload-0.12/t/reload.t
Apache-Reload-0.12/t/lib/Apache/
Apache-Reload-0.12/t/lib/Apache2/
Apache-Reload-0.12/t/lib/Apache2/TestReload.pm
Apache-Reload-0.12/t/lib/Apache/TestReload.pm
Apache-Reload-0.12/t/conf/extra.last.conf.in
Apache-Reload-0.12/lib/Apache/
Apache-Reload-0.12/lib/Apache2/
Apache-Reload-0.12/lib/Apache2/Reload.pm
Apache-Reload-0.12/lib/Apache/Reload.pm
CPAN: File::Temp loaded ok (v0.22)

CPAN.pm: Going to build P/PH/PHRED/Apache-Reload-0.12.tar.gz

Can't locate ModPerl/MM.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at Makefile.PL line 41.
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
Warning (usually harmless): 'YAML' not installed, will not store persistent state
PHRED/Apache-Reload-0.12.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read '/root/.cpan/build/Apache-Reload-0.12-VA9ui8/META.yml'. Falling back to other methods to determine prerequisites
Failed during this command:
PHRED/Apache-Reload-0.12.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512

i have tried this on our 6.5 centos and again after it was upgraded to 6.6 so i know its not the version of centos im running... we are currently using otrs 3.3.9 and i thought this would be a simple upgrade to get the latest version.. looks like i was wrong :(

can anyone help me and explain what i have done wrong and tell me what i need to do in order to fix this...

ive had to roll back to a previous version so people can use the system but i would love to know what i did wrong so i can have another go at getting this up to date.

thanks

Justin
Last edited by minijay on 17 Dec 2014, 09:27, edited 1 time in total.
MatjazBF
Znuny newbie
Posts: 21
Joined: 29 Oct 2013, 12:11
Znuny Version: 4.0.10
Real Name: Matjaz Batic Finzgar

Re: v4 upgrade help unable to start httpd after upgrade

Post by MatjazBF »

try renaming IfModule mod_perl.c -> IfModule mod_perl.so
in /etc/httpd/conf.d/zzz_otrs.conf

hope it helps
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

Re: v4 upgrade help unable to start httpd after upgrade

Post by eandrex »

Hi,

you ran into an OTRS bug
[Mon Dec 15 12:19:16 2014] [error] Can't locate Apache2/Reload.pm in
see fix here
http://bugs.otrs.org/show_bug.cgi?id=10926
or update to OTRS 4.0.3
minijay
Znuny newbie
Posts: 32
Joined: 26 Sep 2011, 17:45
Znuny Version: 5.0.14
Real Name: justin
Company: gigasoft

Re: v4 upgrade help unable to start httpd after upgrade

Post by minijay »

HI guys

thanks so much for your help i have re tried the upgrade with 4.0.3 and have managed to upgrade but now i have a new problem and thats that im unable to get to the login screen in order to applied the package updates.

surely i cant be the only one having the issue...

we removed the /otrs/ section of the address so it was just http://domain/ and that was working fine but now i just get the apache configuration screen.

if i add /otrs.index.pl i get a page saying internal server error...

what have i done wrong this time.. i followed everything the guide said so i cant see what i have missed.

please can some one help me asap i have no idea what i need to do

thanks

jay
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: v4 upgrade help unable to start httpd after upgrade

Post by reneeb »

When you get an internal server error, please have a look at the apache error log!
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
minijay
Znuny newbie
Posts: 32
Joined: 26 Sep 2011, 17:45
Znuny Version: 5.0.14
Real Name: justin
Company: gigasoft

Re: v4 upgrade help unable to start httpd after upgrade

Post by minijay »

Hi Reneeb

i have checked the error log but im not sure what im looking for

Code: Select all

[Sun Dec 14 03:28:08 2014] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 14 03:28:08 2014] [notice] Digest: done
[Sun Dec 14 03:28:08 2014] [warn] ./mod_dnssd.c: No services found to register
[Sun Dec 14 03:28:08 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Dec 14 22:40:14 2014] [error] [client 112.205.236.8] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /tmUnblock.cgi
[Mon Dec 15 10:24:59 2014] [error] [client 24.240.178.106] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /tmUnblock.cgi
[Mon Dec 15 16:48:44 2014] [error] Apache2::RequestIO::read: (70014) End of file found at (eval 169) line 5
[Tue Dec 16 00:40:05 2014] [error] [client 216.20.131.111] File does not exist: /opt/otrs/bin/cgi-bin/user
[Tue Dec 16 01:32:25 2014] [error] [client 125.64.35.67] File does not exist: /opt/otrs/bin/cgi-bin/r
[Tue Dec 16 01:40:06 2014] [error] [client 110.45.136.50] File does not exist: /opt/otrs/bin/cgi-bin/w00tw00t.at.blackhats.romanian.anti-sec:)
[Tue Dec 16 01:40:06 2014] [error] [client 110.45.136.50] File does not exist: /opt/otrs/bin/cgi-bin/phpMyAdmin
[Tue Dec 16 01:40:07 2014] [error] [client 110.45.136.50] File does not exist: /opt/otrs/bin/cgi-bin/phpmyadmin
[Tue Dec 16 01:40:07 2014] [error] [client 110.45.136.50] File does not exist: /opt/otrs/bin/cgi-bin/pma
[Tue Dec 16 01:40:08 2014] [error] [client 110.45.136.50] File does not exist: /opt/otrs/bin/cgi-bin/myadmin
[Tue Dec 16 01:40:09 2014] [error] [client 110.45.136.50] File does not exist: /opt/otrs/bin/cgi-bin/MyAdmin
[Tue Dec 16 02:47:41 2014] [error] [client 149.129.150.42] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /tmUnblock.cgi
[Tue Dec 16 09:49:29 2014] [error] [client 62.254.3.148] File does not exist: /opt/otrs/bin/cgi-bin/default.large.gif, referer: http://ticket.gigasoftdatabackup.org/index.pl?Action=AgentTicketAttachment;Subaction=HTMLView;ArticleID=86625;FileID=2;OTRSAgentInterface=suKfwhISumb1YBAxLijeGVrq1MrOMbpz
[Tue Dec 16 10:53:54 2014] [notice] child pid 27171 exit signal Segmentation fault (11)
[Tue Dec 16 10:53:54 2014] [notice] child pid 25884 exit signal Segmentation fault (11)
[Tue Dec 16 10:55:55 2014] [notice] child pid 7987 exit signal Segmentation fault (11)
[Tue Dec 16 10:57:56 2014] [notice] child pid 7991 exit signal Segmentation fault (11)
[Tue Dec 16 11:00:00 2014] [notice] child pid 24094 exit signal Segmentation fault (11)
[Tue Dec 16 11:37:34 2014] [notice] caught SIGTERM, shutting down
[Tue Dec 16 11:37:42 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Dec 16 11:37:48 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Dec 16 11:37:48 2014] [notice] Digest: done
[Tue Dec 16 11:37:48 2014] [warn] ./mod_dnssd.c: No services found to register
[Tue Dec 16 11:37:48 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue Dec 16 11:39:55 2014] [notice] caught SIGTERM, shutting down
[Tue Dec 16 11:43:04 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Dec 16 11:43:10 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Dec 16 11:43:10 2014] [notice] Digest: done
[Tue Dec 16 11:43:10 2014] [warn] ./mod_dnssd.c: No services found to register
[Tue Dec 16 11:43:10 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue Dec 16 11:47:53 2014] [notice] caught SIGTERM, shutting down
[Tue Dec 16 12:08:34 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Dec 16 12:08:38 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Dec 16 12:08:38 2014] [notice] Digest: done
[Tue Dec 16 12:08:39 2014] [warn] ./mod_dnssd.c: No services found to register
[Tue Dec 16 12:08:39 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue Dec 16 12:09:17 2014] [error] [client 62.254.3.148] File does not exist: /opt/otrs/bin/cgi-bin/favicon.ico
[Tue Dec 16 12:09:31 2014] [error] [client 62.254.3.148] Directory index forbidden by Options directive: /opt/otrs/bin/cgi-bin/
[Tue Dec 16 12:09:36 2014] [error] slurp_filename('/opt/otrs/bin/cgi-bin/otrs') / opening: (2) No such file or directory at /usr/lib/perl5/vendor_perl/ModPerl/RegistryCooker.pm line 541
[Tue Dec 16 12:09:41 2014] [error] [client 62.254.3.148] Attempt to serve directory: /opt/otrs/bin/cgi-bin/
[Tue Dec 16 12:09:55 2014] [error] [client 62.254.3.148] Attempt to serve directory: /opt/otrs/bin/cgi-bin/
[Tue Dec 16 12:10:01 2014] [error] [client 62.254.3.148] Directory index forbidden by Options directive: /opt/otrs/bin/cgi-bin/
[Tue Dec 16 12:10:20 2014] [notice] caught SIGTERM, shutting down
[Tue Dec 16 12:11:50 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Dec 16 12:11:57 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Dec 16 12:11:57 2014] [notice] Digest: done
[Tue Dec 16 12:11:57 2014] [warn] ./mod_dnssd.c: No services found to register
[Tue Dec 16 12:11:57 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue Dec 16 12:12:09 2014] [error] [client 62.254.3.148] Directory index forbidden by Options directive: /opt/otrs/bin/cgi-bin/
[Tue Dec 16 12:12:15 2014] [error] [client 62.254.3.148] Attempt to serve directory: /opt/otrs/bin/cgi-bin/
[Tue Dec 16 12:17:33 2014] [error] [client 62.254.3.148] Directory index forbidden by Options directive: /opt/otrs/bin/cgi-bin/
[Tue Dec 16 12:17:36 2014] [error] [client 62.254.3.148] Attempt to serve directory: /opt/otrs/bin/cgi-bin/
[Tue Dec 16 12:17:55 2014] -e: 	(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.
[Tue Dec 16 12:17:55 2014] [error] [Tue Dec 16 12:17:55 2014] -e: Got no DBObject! at /opt/otrs//Kernel/System/Stats/Dynamic/ITSMTicketFirstLevelSolutionRate.pm line 37.\n\t(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.\n
[Tue Dec 16 12:20:59 2014] -e: 	(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.
[Tue Dec 16 12:20:59 2014] [error] [Tue Dec 16 12:20:59 2014] -e: Got no DBObject! at /opt/otrs//Kernel/System/Stats/Dynamic/ITSMTicketFirstLevelSolutionRate.pm line 37.\n\t(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.\n
[Tue Dec 16 12:21:07 2014] [error] [client 62.254.3.148] Directory index forbidden by Options directive: /opt/otrs/bin/cgi-bin/
[Tue Dec 16 12:21:11 2014] [error] [client 62.254.3.148] Attempt to serve directory: /opt/otrs/bin/cgi-bin/
[Tue Dec 16 12:21:18 2014] -e: 	(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.
[Tue Dec 16 12:21:18 2014] [error] [Tue Dec 16 12:21:18 2014] -e: Got no DBObject! at /opt/otrs//Kernel/System/Stats/Dynamic/ITSMTicketFirstLevelSolutionRate.pm line 37.\n\t(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.\n
[Tue Dec 16 12:33:13 2014] -e: 	(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.
[Tue Dec 16 12:33:13 2014] [error] [Tue Dec 16 12:33:13 2014] -e: Got no DBObject! at /opt/otrs//Kernel/System/Stats/Dynamic/ITSMTicketFirstLevelSolutionRate.pm line 37.\n\t(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.\n
[Tue Dec 16 12:34:28 2014] [notice] caught SIGTERM, shutting down
[Tue Dec 16 12:36:00 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Dec 16 12:36:07 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Dec 16 12:36:07 2014] [notice] Digest: done
[Tue Dec 16 12:36:07 2014] [warn] ./mod_dnssd.c: No services found to register
[Tue Dec 16 12:36:07 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue Dec 16 12:37:04 2014] -e: 	(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.
[Tue Dec 16 12:37:04 2014] [error] [Tue Dec 16 12:37:04 2014] -e: Got no DBObject! at /opt/otrs//Kernel/System/Stats/Dynamic/ITSMTicketFirstLevelSolutionRate.pm line 37.\n\t(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.\n
[Tue Dec 16 12:37:10 2014] [error] [client 62.254.3.148] Directory index forbidden by Options directive: /opt/otrs/bin/cgi-bin/
i hope this makes more sense to you.

please let me know what i need to do to get this back up and working again at the moment im at a loss

thanks again

jay
Last edited by crythias on 16 Dec 2014, 15:25, edited 1 time in total.
Reason: [code] tags for sanity
minijay
Znuny newbie
Posts: 32
Joined: 26 Sep 2011, 17:45
Znuny Version: 5.0.14
Real Name: justin
Company: gigasoft

Re: [SOLVED]v4 upgrade help unable to start httpd after upgrade

Post by minijay »

i have marked this one as solved as the first part of the problem has been

the solution was to use the 4.0.3 installer which fixed the problem of not being able to start httpd

i have opened another thread for the new issue as i think it will stand more of a chance of being read and fixed quicker

thanks for all your help so far i really appreciate it

Jay
Locked