We do not support any modification of our config files (e.g. apache, .profile etc.). If you do that and the site is broken, you will run out of support, especially on the Checkmk Appliance.
We saw the bottom error several times especially when dealing with check_sql.
libpython3.9.so.1.0: cannot open shared object file: No such file or directory
Problem
The default for LD_LIBARY_PATH should be:
LD_LIBRARY_PATH=$OMD_ROOT/local/lib:$OMD_ROOT/lib
But for some reasons the .profile file of the site user seems to be broken and after the restart of the site you will face the following issue:
Starting apache...apache2: Syntax error on line 236 of /omd/sites/mysite/etc/apache/apache.conf: Syntax error on line 2 of /omd/sites/mysite/etc/apache/conf.d/01_wsgi.conf: Cannot load /omd/sites/mysite/lib/apache/modules/mod_wsgi.so into server: libpython3.9.so.1.0: cannot open shared object file: No such file or directory ..........ERROR
Solution
Check if env is right
su - test OMD[test]:~$ echo $LD_LIBRARY_PATH /omd/sites/test/local/lib:/omd/sites/test/lib
Check if the libary is available
restore the default variable
set the LD_LIBARY_PATH the right way
Related articles
Filter by label
There are no items with the selected labels at this time.