Httpd won't start after 6.10 to 7.7 upgrade-tool upgrade

Upgraded my server to 7.7 today using the upgrade-tool. Appeared to go fine, as I can get into the admin gui on both ports (980 & 9090). httpd fails to start due to unknown auth in pnp4nagios.conf - ldap

Anyone else experience this?
Thanks for any assistance.

Do I understand correctly that you have an external application (Nagios) installed? This could be very tricky. AFAIK the upgrade tool is especially designed for Nethserver with offical modules only. Is there an option to remove Nagios and reinstall after upgrade? (maybe with backup of database that can be re-imported afterwards)?

Didn’t install anything outside of Neth universe.

[root@neth ~]# systemctl status httpd.service
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/httpd.service.d
└─quick_kill.conf
Active: failed (Result: exit-code) since Mon 2020-01-27 11:17:38 CST; 1h 1min ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 6987 (code=exited, status=1/FAILURE)
Jan 27 11:17:38 neth.qzoneinc.com systemd[1]: Starting The Apache HTTP Server…
Jan 27 11:17:38 neth.qzoneinc.com httpd[6987]: AH00526: Syntax error on line 47 of /etc/httpd/conf.d/pnp4nagios.conf:
Jan 27 11:17:38 neth.qzoneinc.com httpd[6987]: Unknown Authn provider: ldap
Jan 27 11:17:38 neth.qzoneinc.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 27 11:17:38 neth.qzoneinc.com kill[7013]: kill: cannot find process “”
Jan 27 11:17:38 neth.qzoneinc.com systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 27 11:17:38 neth.qzoneinc.com systemd[1]: Failed to start The Apache HTTP Server.
Jan 27 11:17:38 neth.qzoneinc.com systemd[1]: Unit httpd.service entered failed state.
Jan 27 11:17:38 neth.qzoneinc.com systemd[1]: httpd.service failed.
Jan 27 11:17:38 neth.qzoneinc.com systemd[1]: Unit httpd.service cannot be reloaded because it is inactive.

pnp4nagios.conf states it is a system modified template…

It was required by nethserver-adagios which is not supported on NethServer7:

nethserver-ocsinventory, nethserver-adagios: due to compatibility problems with Nagios, these modules will be mantained only on NethServer 6 release

If nethserver-adagios is no longer installed (due to the upgrade), there might be some remnants that shall be safe to remove (like /etc/httpd/conf.d/pnp4nagios.conf).

If it’s of help:

3 Likes

This was part of base system statistics? Or bandwidth management?

Are you suggesting to just delete the pnp4nagios.conf file?

Thanks…

[root@neth ~]# ls -l /etc/httpd/conf.d
total 136
-rw-r–r--. 1 root root 1318 May 24 2016 adagios.conf.rpmsave
-rw-r–r-- 1 root root 127 Jan 23 03:38 apacheStatus.conf
-rw-r–r-- 1 root root 463 Aug 2 2017 authnz_pam.conf
-rw-r–r-- 1 root root 2926 Aug 8 06:41 autoindex.conf
-rw-r–r-- 1 root root 524 Jan 27 10:06 cgp.conf
-rw-r–r--. 1 root root 685 May 31 2016 collectd-web.conf
-rw-r–r-- 1 root root 905 Jan 27 10:03 default-virtualhost.inc
-rw-r–r-- 1 root root 231 Apr 17 2018 letsencrypt.conf
-rw-r–r-- 1 root root 578 Jan 27 10:08 lightsquid.conf
-rw-r–r-- 1 root root 1613 Jan 16 2019 nagios.conf
-rw-r–r-- 1 root root 1733 Jan 27 10:03 nethserver.conf
-rw-r–r--. 1 root root 1320 May 24 2016 ocsinventory-reports.conf.rpmsave
-rw-r–r--. 1 root root 13104 May 24 2016 ocsinventory-server.conf.rpmsave
-rw-r–r-- 1 root root 386 Jan 27 10:06 owncloud.conf
-rw-r–r-- 1 root root 1752 Nov 4 06:15 perl.conf
-rw-r–r-- 1 root root 691 Nov 1 11:06 php.conf
-rw-r–r--. 1 root root 1561 May 24 2016 pnp4nagios.conf
-rw-r–r-- 1 root root 261 Jan 27 10:03 proxypass.conf
-rw-r–r-- 1 root root 366 Aug 8 06:42 README
-rw-r–r--. 1 root root 804 Jul 19 2015 smbaudit.conf
-rw-r–r-- 1 root root 311 Jan 27 10:07 SOGo.conf
-rw-r–r-- 1 root root 356 Jul 7 2016 sogo-thunderbird.conf
-rw-r–r-- 1 root root 298 Sep 14 2017 squid.conf
-rw-r–r-- 1 root root 9443 Aug 6 08:44 ssl.conf
-rw-r–r-- 1 root root 1252 Aug 6 08:44 userdir.conf
-rw-r–r-- 1 root root 417 Jan 27 10:50 virtualhosts.conf
-rw-r–r-- 1 root root 1296 Jan 27 10:03 welcome.conf
-rw-r–r-- 1 root root 598 Jan 27 10:07 wpad.conf
-rw-r–r-- 1 root root 1811 Jan 27 10:07 zzz_SOGo.conf

I see those old packages you referenced…

Thanks for the help. I appended .rpmsave to the end of the conf filename and restarted httpd. It has started and I can get to SOGo and OwnCloud pages.

1 Like

It was part of system and network monitoring. Your server still has those packages installed?

rpm -qa \*nagios \*ocsinventory

If you need further help someone who upgraded from nethserver 6 shall provide better recommendations on what to do (if monitoring is required).
Regards.