Hi Support,
I was trying to enable SSL for the aapanel using the Letsencrypt option but i was getting a error popup without any message and it goes away.
Screenshot is attached.
When i looked at the log "/www/server/panel/logs/error.log", I can see the below error.
++++
[2021-03-18 12:15:07,814] ERROR in app: Exception on /config [POST]
Traceback (most recent call last):
File "class/flask_sockets.py", line 30, in call
handler, values = adapter.match()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing.py", line 1945, in match
raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "/www/server/panel/BTPanel/init.py", line 613, in config
return publicObject(config.config(),defs,None,pdata)
File "/www/server/panel/BTPanel/init.py", line 1439, in publicObject
return run_exec().run(toObject,defs,get)
File "/www/server/panel/BTPanel/init.py", line 1386, in run
result = eval(fun)
File "<string>", line 1, in <module>
File "class/config.py", line 705, in SetPanelSSL
sps = sp.set_lets(get)
File "class/setPanelLets.py", line 200, in set_lets
self.copy_cert(domain_cert)
File "class/setPanelLets.py", line 166, in copy_cert
self.__read_site_cert(domain_cert)
File "class/setPanelLets.py", line 96, in read_site_cert
key_file = "{path}{domain}/{key}".format(path=self.vhost_cert_path,domain=domain_cert["subject"],key="privkey.pem")
TypeError: 'NoneType' object is not subscriptable
+++
Please help