I have been stumped on this error for a few days now and cant seem to figure out why it is happening. Logs below from the reporting window after trying to do several repairs and updates to the system to try and get the error to go away.
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'
REQUEST_DATE: 2023-10-15 15:19:07
PAN_VERSION: 6.8.31
OS_VERSION: Ubuntu 18.04.6 LTS x86_64(Py3.7.8)
REMOTE_ADDR: 10.0.1.248
REQUEST_URI: POST /warning?action=get_list
REQUEST_FORM: {}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60
Traceback (most recent call last):
File "class/public.py", line 3508, in get_attr
tmp_obj = import(key)
File "class/safe_warning/sw_site_ssl_expire.py", line 15, in
import os,sys,re,public,OpenSSL,time
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/init.py", line 8, in
from OpenSSL import crypto, SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 3268, in
_lib.OpenSSL_add_all_algorithms()
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/BTPanel/init.py", line 1812, in publicObject
return run_exec().run(toObject, defs, get)
File "/www/server/panel/BTPanel/init.py", line 1764, in run
result = getattr(toObject,get.action)(get)
File "class/panelWarning.py", line 36, in get_list
if p[m_name]._level == 0: continue
File "class/public.py", line 3517, in getitem
return self.get_attr(key)
File "class/public.py", line 3513, in get_attr
raise Exception(get_error_info())
Exception: Traceback (most recent call last):
File "class/public.py", line 3508, in get_attr
tmp_obj = import(key)
File "class/safe_warning/sw_site_ssl_expire.py", line 15, in
import os,sys,re,public,OpenSSL,time
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/init.py", line 8, in
from OpenSSL import crypto, SSL
File "/www/server/panel/pyenv/lib/python3.7/site-packages/OpenSSL/crypto.py", line 3268, in
_lib.OpenSSL_add_all_algorithms()
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'