hiddify / Hiddify-Manager

Multi-user anti-filtering panel, with an effortless installation and supporting more than 20 protocols to circumvent filtering plus the telegram proxy.
https://hiddify.com
GNU General Public License v3.0
6.51k stars 752 forks source link

Internal server error: Unknown #4517

Closed pourmirzai closed 1 month ago

pourmirzai commented 1 month ago

Internal Error Stacktrace:

Error Message: BaseModelView.delete_view() got an unexpected keyword argument 'cls'

Traceback (most recent call last):
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_admin/base.py", line 369, in _run_view
    return fn(self, *args, **kwargs)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_admin/model/base.py", line 2235, in delete_view
    if self.delete_model(model):
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_admin/contrib/sqla/view.py", line 1216, in delete_model
    if not self.handle_view_exception(ex):
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_admin/contrib/sqla/view.py", line 1133, in handle_view_exception
    return super(ModelView, self).handle_view_exception(exc)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_admin/contrib/sqla/view.py", line 1211, in delete_model
    self.on_model_delete(model)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/hiddifypanel/panel/admin/DomainAdmin.py", line 289, in on_model_delete
    if not hutils.network.cf_api.delete_dns_record(model.domain):
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/hiddifypanel/hutils/network/cf_api.py", line 54, in delete_dns_record
    record = __get_dns_record(zone, domain)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/hiddifypanel/hutils/network/cf_api.py", line 72, in __get_dns_record
    dns_records = __cf.zones.dns_records(zone['id'])
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask/app.py", line 870, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask/app.py", line 855, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_admin/base.py", line 69, in inner
    return self._run_view(f, *args, **kwargs)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_admin/base.py", line 371, in _run_view
    return fn(cls=self, **kwargs)

Details:

Hiddify Version: 10.70.7 Python Version: 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0] OS: Linux-5.15.0-122-generic-x86_64-with-glibc2.35 User Agent: Unknown

litoosh13 commented 1 month ago

1.Make a backup

  1. rebuild server to ubuntu 22.04
  2. install latest version of the panel 4.restore backup you can follow all learning's material about the panel here: hiddify.com/manager