Hiddify-Manager icon indicating copy to clipboard operation
Hiddify-Manager copied to clipboard

update hiddify-panel error

Open akrhin opened this issue 3 years ago • 10 comments

I tried to update the panel via the web and via bash, the result is below. How to fix? Hiddify 8.6.11

common/utils.sh: line 31: cd: /opt/hiddify-server/hiddify-panel: No such file or directory
/usr/local/lib/python3.10/dist-packages/flask_sqlalchemy/__init__.py:851: UserWarning: Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. Defaulting SQLALCHEMY_DATABASE_URI to "sqlite:///:memory:".
  warnings.warn(
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.10/dist-packages/hiddifypanel/__main__.py", line 13, in <module>
    main()
  File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/flask/cli.py", line 567, in main
    return super().main(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/flask/cli.py", line 407, in decorator
    return __ctx.invoke(f, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/hiddifypanel/panel/cli.py", line 50, in all_configs
    valid_users = [u.to_dict() for u in User.query.filter((User.usage_limit_GB > User.current_usage_GB)).all() if is_user_active(u)]
  File "/usr/local/lib/python3.10/dist-packages/hiddifypanel/panel/cli.py", line 50, in <listcomp>
    valid_users = [u.to_dict() for u in User.query.filter((User.usage_limit_GB > User.current_usage_GB)).all() if is_user_active(u)]
  File "/usr/local/lib/python3.10/dist-packages/hiddifypanel/models/user.py", line 148, in to_dict
    'added_by_uuid': d.admin.uuid,
AttributeError: 'NoneType' object has no attribute 'uuid'
parse error: Invalid numeric literal at line 1, column 11
cat: /opt/hiddify-server/VERSION: No such file or directory
Creating a backup ...


XXX
5
Checking for Update...
Hiddify Panel
XXX
Error: Option '-v' requires an argument.
Unknown package mode: 

akrhin avatar Nov 08 '23 10:11 akrhin

i have this exact problem too

ashkanzayeromali avatar Nov 08 '23 11:11 ashkanzayeromali

I have this problem too, I think the hiddibot made some error on users database!

sadjad1011001 avatar Nov 08 '23 14:11 sadjad1011001

i have this exact problem too

younes2513 avatar Nov 08 '23 17:11 younes2513

i have this exact problem too

did you set up the hiddibot on your server too?

sadjad1011001 avatar Nov 09 '23 11:11 sadjad1011001

i have this exact problem too

did you set up the hiddibot on your server too? yes i did

ashkanzayeromali avatar Nov 09 '23 12:11 ashkanzayeromali

This seems to be a duplicate of #3362

I have given instructions on what I did to fix this there.

pjrobertson avatar Nov 10 '23 06:11 pjrobertson

@hiddify-com @HiddifyOfficial No ones wants to resolve such important update issue!?

sadjad1011001 avatar Nov 12 '23 09:11 sadjad1011001

hello is any one there?

sadjad1011001 avatar Nov 22 '23 13:11 sadjad1011001

Pls update to the latest version. The issue should be solved. If it exists pls open this issue.

lymanjre avatar Jan 26 '24 12:01 lymanjre

I could solve it after downgrading via Advanced menu in the Terminal. After downgrading from development to standard ( Although I was already on standard mode) it allowed me to update again flawlessly.

nimadn avatar Feb 08 '24 11:02 nimadn