...
Check if the env is right
Code Block language bash theme RDark su - mysite OMD[mysite]:~$ echo $LD_LIBRARY_PATH /omd/sites/mysite/opt/oracle/instantclient_21_4
In that case, the env is not correct. The env is pointing only to the libraries of the Oracle instantclient
Check if the library is available.
Code Block language bash theme RDark OMD[mysite]:~$ find -L -name "*libpython3.9.so.1.0*" ./version/lib/libpython3.9.so.1.0 ./lib/libpython3.9.so.1.0
In that case, the library is only available in the origin and default path of LD_LIBRARY_PATH
Restore the default variable
You will find the original files of .profile or .bashrc in "/omd/versions/2.1.0b7.cee/skel"
Code Block language bash theme RDark ➜ /omd/versions/2.1.0b7.cee/skel ls -altr insgesamt 36 -rw-r--r-- 1 root root 2055 Apr 25 00:02 .profile -rw-r--r-- 1 root root 1091 Apr 25 00:02 .bashrc
One way would be to copy the LD_LIBRARY_PATH value from .profile and put it directly to the .profile of the site user:
Code Block language bash theme RDark su - mysite OMD[mysite]:~$ vi .profile
And to To make the changes permanent, please enter:Code Block language bash theme RDark OMD[mysite]:~$ source .profile
set the LD_LIBARY_PATH the right way
extend the LD_LIBRARY_PATH like that ":path/to/oracle/instanclient"
Code Block language bash theme RDark OMD[mysite]:~$ vi .profile OMD[mysite]:~$ source .profile
At In the end, it should look like thatthis:Code Block language bash theme RDark OMD[mysite]:~$ echo $LD_LIBRARY_PATH /omd/sites/mysite/local/lib:/omd/sites/testmysite/lib:path/to/oracle/instanclient
- Now after a restart of the site apache Apache the error should be gone!
...