Authentication issues after upgrade to 1.6.0p8cre

I had Check_MK Raw edition 1.5.0p16 on Ubuntu 14.04, i then built a new Ubuntu 18.04 and installed Check_MK Raw edition 1.5.0p16.

I imported the configurations from the Ubuntu 14.04 Check_MK into Ubuntu 18.04 Check_MK and everything was fine.

I then updated Check_MK on Ubuntu 18.04 to 1.6.0p8.

I had an error about mod_python.so not being available which i solved with:

apt-get install libapache2-mod-python
cd /omd/sites/site/lib/apache/modules
ln -s /usr/lib/apache2/modules/mod_python.so .

But now when i try to login i get:

# Authentication Problem

Either you’ve entered an invalid password or the authentication
configuration of your check_mk web pages is incorrect.

On the apache logs I found the following

"[Fri Jan 24 12:44:38.645397 2020] [autoindex:error] [pid 5137] [client 127.0.0.1:51222] AH01276: Cannot serve directory /omd/sites/site/share/check_mk/web/htdocs/: No matching DirectoryIndex (index.py) found, and server-generated directory index forbidden by Options directive
[Fri Jan 24 12:45:01.711632 2020] [:error] [pid 5137] make_obcallback: could not import mod_python.apache.\n
ImportError: No module named mod_python.apache
[Fri Jan 24 12:45:01.711699 2020] [:error] [pid 5137] make_obcallback: Python path being used “[’/omd/sites/site/local/lib/python’, ‘/omd/sites/site/lib/python/_pdbpp_path_hack’, ‘/omd/sites/site/lib/python27.zip’, ‘/omd/sites/site/lib/python2.7’, ‘/omd/sites/site/lib/python2.7/plat-linux2’, ‘/omd/sites/site/lib/python2.7/lib-tk’, ‘/omd/sites/site/lib/python2.7/lib-old’, ‘/omd/sites/site/lib/python2.7/lib-dynload’, ‘/omd/sites/site/lib/python2.7/site-packages’, ‘/omd/sites/site/lib/python’]”.
[Fri Jan 24 12:45:01.711708 2020] [:error] [pid 5137] get_interpreter: no interpreter callback found.
[Fri Jan 24 12:45:01.711714 2020] [:error] [pid 5137] [client 127.0.0.1:51258] python_handler: Can’t get/create interpreter.
[Fri Jan 24 12:45:01.711958 2020] [:error] [pid 5137] make_obcallback: could not import mod_python.apache.\n
ImportError: No module named mod_python.apache "

Can someone help me with this one?

a2enmod python
systemctl restart apache2

?

Karl

Hi Karl

a2enmod python
ERROR: Module python does not exist!

Hi,
let’s start at the beginning:

  1. You have the same CMK releases installed on Ubuntu 14.04 and Ubuntu 18.04?

  2. You have transferred your old installation to the new server with the command:

     omd backup YourSite - | ssh root@YourNewServer 'omd restore -'
    
  3. You have installed the new release of CMK on your new server?

  4. You have stopped the site and done an update?

Karl

2 Likes

Yes to all questions.

There seems to be some Python changes from version 1.5.0p16 to 1.6.0.p8cre that breaks Check_MK.

We have a lot of servers and plugins on 1.5.0.p16 so a new installation of 1.6.0.p8 and creating everything again is not viable.

I wonder if the upgrade is possible, or if this will be like this everytime an upgrade comes out?

If so we might consider leaving Check_MK because the ability to perform upgrades while maintaining our current configuration is vital.

Hi,

It’s possible. I’ve updated some CMK installations from 1.2 to 1.6 without any problems - on Ubuntu also.

Karl