[Check_mk (english)] OMD 1.30: 500 Internal error

Hello,

I am running CentOS 7 and OMD from the <labs.consol.de> YUM repo. When I first installed, OMD 1.20 was installed, and it worked fine. I just did an upgrade fromt he same repo to version 1.30, and now when I try to go to my site, I get a "500 Internal Error".

I checked the Apache error_log for the site in question, and the following comes up when I go to the site:

--- START error_log ---
[Thu Jan 14 16:12:52.938571 2016] [auth_basic:error] [pid 7492] [client 127.0.0.1:40314] AH01617: user omdadmin: authentication failure for "/RCAV/omd/": Password Mismatch
[Thu Jan 14 16:12:56.952802 2016] [:error] [pid 7493] make_obcallback: could not import mod_python.apache.\n
Traceback (most recent call last):
   File "/omd/versions/1.30/lib/python/mod_python/apache.py", line 29, in <module>

     import cgi
   File "/usr/lib64/python2.7/cgi.py", line 50, in <module>
     import mimetools
   File "/usr/lib64/python2.7/mimetools.py", line 6, in <module>
     import tempfile
   File "/usr/lib64/python2.7/tempfile.py", line 35, in <module>
     from random import Random as _Random
   File "/usr/lib64/python2.7/random.py", line 49, in <module>
     import hashlib as _hashlib
   File "/omd/versions/1.30/lib/python/hashlib.py", line 115, in <module>
     f()
TypeError: 'frozenset' object is not callable
[Thu Jan 14 16:12:56.953093 2016] [:error] [pid 7493] make_obcallback: Python path being used "['/omd/versions/1.30/lib/python', '/omd/sites/RCAV/lib/python/pyasn1-0.1.7-py2.7.egg', '/omd/sites/RCAV/lib/python/pysnmp-4.2.4-py2.7.egg', '/omd/sites/RCAV/lib/python/pycrypto-2.6.1-py2.7-linux-x86_64.egg', '/omd/sites/RCAV/lib/python/pysphere-0.1.7-py2.7.egg', '/omd/sites/RCAV/lib/python/setuptools-0.6c11-py2.7.egg', '/omd/sites/RCAV/lib/python/Pyro4-4.18-py2.7.egg', '/omd/sites/RCAV/lib/python/multiprocessing-2.6.2.1-py2.7-linux-x86_64.egg', '/omd/sites/RCAV/lib/python/pymongo-2.5.2-py2.7-linux-x86_64.egg', '/omd/sites/RCAV/lib/python', '/omd/sites/RCAV/local/lib/python', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages']".
[Thu Jan 14 16:12:56.953110 2016] [:error] [pid 7493] get_interpreter: no interpreter callback found.
[Thu Jan 14 16:12:56.953125 2016] [:error] [pid 7493] [client 127.0.0.1:40315] python_handler: Can't get/create interpreter.
--- END error_log ---

The first line about the password mismatch is a bit confusing, because I was logging in with the same password I always have. I even tried resetting the password using 'htpasswd' and restarting the OMD site, but I still get that.

What is more worrying though (and I don;t know if it is at all related to the password mismatch issue) are the Pythin errors about getting "no interpreter callback".

Any ideas what the issue could be? I could try uninstalling the RPM I installed from the repo and download the "official" RPM from the OMDDistro site?

Thanks! :slight_smile:

-Alan

Hi

Did you by chance also update CentOS or python respectively? I noticed a similar error with omd-1.30 when updating from python-2.7.5-16 to python-2.7.5-34. A downgrade of python solved the problem for me.

Cheers, reto

···

On 15 January 2016 01:21:09 CET, Alan Murrell lists@murrell.ca wrote:

Hello,

I am running CentOS 7 and OMD from the <[labs.consol.de](http://labs.consol.de)> YUM repo.
When I first installed, OMD 1.20 was installed, and it worked fine. I
just did an upgrade fromt he same repo to version 1.30, and now when I
try to go to my site, I get a "500 Internal Error".

I checked the Apache error_log for the site in question, and the
following comes up when I go to the site:

--- START error_log ---
[Thu Jan 14 16:12:52.938571 2016] [auth_basic:error] [pid 7492]
[client 127.0.0.1:40314] AH01617: user omdadmin: authentication
failure for "/RCAV/omd/": Password Mismatch
[Thu Jan 14 16:12:56.952802 2016] [:error] [pid 7493] make_obcallback:
could not import mod_python.apache.\n
Traceback (most recent call last):
   File "/omd/versions/1.30/lib/python/mod_python/[apache.py](http://apache.py)", line 29,
in <module>
> 
import cgi
   File "/usr/lib64/python2.7/[cgi.py](http://cgi.py)", line 50, in <module>
     import mimetools
   File "/usr/lib64/python2.7/[mimetools.py](http://mimetools.py)", line 6, in <module>
     import tempfile
   File "/usr/lib64/python2.7/[tempfile.py](http://tempfile.py)", line 35, in <module>
     from random import Random as _Random
   File "/usr/lib64/python2.7/[random.py](http://random.py)", line 49, in <module>
     import hashlib as _hashlib
   File "/omd/versions/1.30/lib/python/[hashlib.py](http://hashlib.py)", line 115, in <module>
     f()
TypeError: 'frozenset' object is not callable
[Thu Jan 14
16:12:56.953093 2016] [:error] [pid 7493] make_obcallback:
Python path being used "['/omd/versions/1.30/lib/python',
'/omd/sites/RCAV/lib/python/pyasn1-0.1.7-py2.7.egg',
'/omd/sites/RCAV/lib/python/pysnmp-4.2.4-py2.7.egg',
'/omd/sites/RCAV/lib/python/pycrypto-2.6.1-py2.7-linux-x86_64.egg',
'/omd/sites/RCAV/lib/python/pysphere-0.1.7-py2.7.egg',
'/omd/sites/RCAV/lib/python/setuptools-0.6c11-py2.7.egg',
'/omd/sites/RCAV/lib/python/Pyro4-4.18-py2.7.egg',
'/omd/sites/RCAV/lib/python/multiprocessing-[2.6.2.1](http://2.6.2.1)-py2.7-linux-x86_64.egg',
'/omd/sites/RCAV/lib/python/pymongo-2.5.2-py2.7-linux-x86_64.egg',
'/omd/sites/RCAV/lib/python', '/omd/sites/RCAV/local/lib/python',
'/usr/lib64/python27.zip', '/usr/lib64/python2.7',
'/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk',
'/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload',
'/usr/lib64/python2.7/site-packages',
'/usr/lib/python2.7/site-packages']".
[Thu Jan 14 16:12:56.953110 2016] [:error] [pid 7493] get_interpreter:
no interpreter callback found.
[Thu Jan 14 16:12:56.953125 2016] [:error] [pid 7493] [client
127.0.0.1:40315] python_handler: Can't get/create interpreter.
--- END error_log ---

The first line about the password mismatch is a bit confusing, because
I was logging in with the same password I always have. I even tried
resetting the password using 'htpasswd' and restarting the OMD site,
but I still get that.

What is more worrying though (and I don;t know if it is at all related
to the password mismatch issue) are the Pythin errors about getting
"no interpreter callback".

Any ideas what the issue could be? I could try uninstalling the RPM I
installed from the repo and download the "official" RPM from
the
OMDDistro site?

Thanks! :-)

-Alan


---


checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
[http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)

Sent from my Android device with K-9 Mail. Please excuse my brevity.

Thanks for the reply. Sorry for my own late reply :frowning:

Did you by chance also update CentOS or python respectively? I noticed a

I do regular updates, so yes, to updating CentOS, but I can't confirm regarding python specifically.

I actually ended up resolving the issue by uninstalling the RPMs from the repository and compiling from the latest source. I didn't realise until after that there is an option to "make RPM" (or something like that) installed of "make install" (so you can still keep things with the package management system), but I am back up and running again :slight_smile:

Regards,

Alan

···

On 15/01/2016 12:24 AM, Reto Gantenbein wrote: