Web site not available after do-release-upgrade

Runing Check MK RAW 2.0p7 on Ubuntu 18.04.
After upgrading Ubuntu to 20.04 the check mk web site is not found.

The requested URL was not found on this server.

I guess this is something with the Apache2 config?
How can I get it working?

I followed this instructions to upgrade. This has worked before.

It is only that the web interface is not reachable or?
“omd status” gives all services as started?

Yes all other services is running fine:

omd status
Doing ‘status’ on site master:
mkeventd: running
rrdcached: running
npcd: running
nagios: running
apache: running
redis: running
xinetd: running
crontab: running

Overall state: running

Ok then the system Apache has a problem, any error messages inside the system Apache log files?
You can also test with a curl to the localhost with the port of you site Apache if you get the login page as anwser.

I cannot see anything that looks strang except the 404 error (page not found).

/var/log/apache2/error.log:
[Sun Jul 11 17:56:19.728611 2021] [mpm_event:notice] [pid 1229:tid 139747090185280] AH00489: Apache/2.4.41 (Ubuntu) configured – resuming normal >
[Sun Jul 11 17:56:19.730573 2021] [core:notice] [pid 1229:tid 139747090185280] AH00094: Command line: ‘/usr/sbin/apache2’

/var/log/apache2/access.log:
x.x.x.x - - [11/Jul/2021:18:04:01 +0200] “GET /master/check_mk HTTP/1.1” 404 487 “-” "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.>

I cannot find where apache2 points to check_mk web site. Where should that be configured?

Inside your “/etc/apache2/conf-enabled/” there should be a link to the “zzz_omd.conf” inside “conf-available”.
This config file is very basic and can be created of not there.

content of “zzz_omd.conf”


Include /omd/apache/*.conf
2 Likes

How did you upgrade?

Upgrading the distribution means to deinstall checkmk first and then afterwards install the matching checkmk for the new distribution version.

I did the upgrade by following this:

I think the small Apache config file is missing or it has a problem loading the site configs.

Thank you very much Andreas, that was it!

I did the following and that worked:

cd /etc/apache2/conf-enabled
ln -s /etc/apache2/conf-available/zzz_omd.conf zzz_omd.conf
service apache2 restart

5 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.