Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.8 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

unable to start httpd service after upgrade

after update server from 2.5 to 2.7 httpd unable to start

upgrade followed this link : https://wiki.ocsinventory-ng.org/03.Basic-documentation/Updating-the-server/
@Error Log
[root@localhost ~]# journalctl -xe
Aug 06 13:04:19 localhost.localdomain dbus[670]: [system] Activating service nam
Aug 06 13:04:19 localhost.localdomain dbus[670]: [system] Successfully activated
Aug 06 13:04:39 localhost.localdomain polkitd[680]: Registered Authentication Ag
Aug 06 13:04:39 localhost.localdomain systemd[1]: Starting The Apache HTTP Serve
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit httpd.service has begun starting up.
Aug 06 13:04:40 localhost.localdomain httpd[16811]: [Thu Aug 06 13:04:40.201473
Aug 06 13:04:40 localhost.localdomain httpd[16811]: [Thu Aug 06 13:04:40.201497
Aug 06 13:04:40 localhost.localdomain polkitd[680]: Unregistered Authentication
Aug 06 13:04:40 localhost.localdomain systemd[1]: httpd.service: main process ex
Aug 06 13:04:40 localhost.localdomain systemd[1]: Failed to start The Apache HTT
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit httpd.service has failed.
-- The result is failed.
Aug 06 13:04:40 localhost.localdomain systemd[1]: Unit httpd.service entered fai
Aug 06 13:04:40 localhost.localdomain systemd[1]: httpd.service failed.
lines 3995-4017/4017 (END)
Aug 06 13:04:19 localhost.localdomain dbus[670]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Aug 06 13:04:19 localhost.localdomain dbus[670]: [system] Successfully activated service 'org.freedesktop.problems'
Aug 06 13:04:39 localhost.localdomain polkitd[680]: Registered Authentication Agent for unix-process:16803:7388966 (system bus name :1.450 [/usr/bin/pkttyagent --notify
Aug 06 13:04:39 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit httpd.service has begun starting up.
Aug 06 13:04:40 localhost.localdomain httpd[16811]: [Thu Aug 06 13:04:40.201473 2020] [perl:error] [pid 16811] Can't locate Switch.pm in @INC (@INC contains: /usr/local
Aug 06 13:04:40 localhost.localdomain httpd[16811]: [Thu Aug 06 13:04:40.201497 2020] [perl:error] [pid 16811] Can't load Perl module Apache::Ocsinventory for server (n
Aug 06 13:04:40 localhost.localdomain polkitd[680]: Unregistered Authentication Agent for unix-process:16803:7388966 (system bus name :1.450, object path /org/freedeskt
Aug 06 13:04:40 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Aug 06 13:04:40 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit httpd.service has failed.
-- The result is failed.
Aug 06 13:04:40 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
Aug 06 13:04:40 localhost.localdomain systemd[1]: httpd.service failed.

in OCS Inventory NG server for Unix by (160 points)
edited by

1 Answer

0 votes

It seems perl-Switch is missing. About "Can't load Perl module Apache::Ocsinventory", did you already tried to reinstall ocs server 2.7?

by (2.8k points)
 
Powered by Question2Answer
...