When downloading SSH Key I get:
URL: /apsess_OyjrJpst0OotOi0GeXJIPy4NmFQ92Zmm/ssh_security?action=download_key
An error occurred while the panel was running!
load error: '(' was never closed (ssh_security.py, line 503)
REQUEST_DATE: 2026-06-28 16:20:35
VERSION: Ubuntu 22.04.1 LTS x86_64(Py3.12.3) - 8.0.3
REMOTE_ADDR: ###.##
REQUEST_URI: GET /ssh_security?action=download_key
REQUEST_FORM: {}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Traceback (most recent call last):
File "/www/server/panel/class/public/hook_import.py", line 28, in _aapimport
return oldimport(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/class/ssh_security.py", line 503
public.downloadFile('{}/linux/panel/msg/msg.json'.format(public.OfficialDownloadBase(),cpath)
^
SyntaxError: '(' was never closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/BTPanel/init.py", line 1220, in ssh_security
import ssh_security
File "/www/server/panel/class/public/hook_import.py", line 104, in _aapimport
m = plugin_loader.get_module(potential_file_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/class/public/PluginLoader.py", line 22, in get_module
raise ImportError('{}\n\n{}'.format(filename, module_obj['msg']))
ImportError: /www/server/panel/class/ssh_security.py
load error: '(' was never closed (ssh_security.py, line 503)
Sorry, an unexpected error occurred while the panel was running. Please try to resolve this error in the following order:
- Click the Fix button in the upper right corner of [Home], and log out of the panel and log in again.
- Still unresolved, please take a screenshot of this window and post on the forum for help, address:https://www.aapanel.com/forum/