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

Update Bug

Open ryanvafaei opened this issue 3 years ago • 14 comments

On Ubuntu 22.04 I installed panel version 8.6.10 and when I try to update it stops in the following line:

Error: Option '-v' requires an argument. Unknown package mode:

image

ryanvafaei avatar Oct 27 '23 03:10 ryanvafaei

Have the same issue The pannel vers. 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
Creating a backup ...
XXX
5
Checking for Update...
Hiddify Panel
XXX
Error: Option '-v' requires an argument.
Unknown package mode:

Graninius avatar Oct 27 '23 06:10 Graninius

سلام

من هم تقریبا دو هفته هست که همین مشکل رو دارم و نمیتونم آپدیت کنم

ubuntu 22.04 Panel V. 8.6.11

Amir2241 avatar Oct 30 '23 09:10 Amir2241

Same

mrvcoder avatar Oct 30 '23 22:10 mrvcoder

منم همین مشکل رو دارم یعنی برای آپدیت باید هر سری سرور رو پاک کنیم دوباره ورژن جدید رو بریزیم

alirezarah avatar Nov 06 '23 10:11 alirezarah

I was having the same problem, here's what I did:

  1. SSH into the sever and exit the hiddify screen
  2. Run the following commands to manually pull the latest update.sh (and relevant) scripts:
wget https://raw.githubusercontent.com/hiddify/Hiddify-Manager/main/common/utils.sh -O common/utils.sh
wget https://raw.githubusercontent.com/hiddify/Hiddify-Manager/main/update.sh -O update.sh
chmod +x update.sh
ln -s /opt/hiddify-config /opt/hiddify-manager
  1. Run the update with sudo bash update.sh - to get the latest files from the server
  2. I had to then run sudo bash update.sh one more time to actually perform the update

pjrobertson avatar Nov 10 '23 06:11 pjrobertson

I was having the same problem, here's what I did:

  1. SSH into the sever and exit the hiddify screen
  2. Run the following commands to manually pull the latest update.sh (and relevant) scripts:
wget https://raw.githubusercontent.com/hiddify/Hiddify-Manager/main/common/utils.sh -O common/utils.sh
wget https://raw.githubusercontent.com/hiddify/Hiddify-Manager/main/update.sh -O update.sh
chmod +x update.sh
ln -s /opt/hiddify-config /opt/hiddify-manager
  1. Run the update with sudo bash update.sh - to get the latest files from the server
  2. I had to then run sudo bash update.sh one more time to actually perform the update

I used these instructions of yours, the services do not come up anymore

alirezarah avatar Nov 14 '23 07:11 alirezarah

I was having the same problem, here's what I did:

  1. SSH into the sever and exit the hiddify screen
  2. Run the following commands to manually pull the latest update.sh (and relevant) scripts:
wget https://raw.githubusercontent.com/hiddify/Hiddify-Manager/main/common/utils.sh -O common/utils.sh
wget https://raw.githubusercontent.com/hiddify/Hiddify-Manager/main/update.sh -O update.sh
chmod +x update.sh
ln -s /opt/hiddify-config /opt/hiddify-manager
  1. Run the update with sudo bash update.sh - to get the latest files from the server
  2. I had to then run sudo bash update.sh one more time to actually perform the update

I had to delete the server and reinstall it

alirezarah avatar Nov 14 '23 07:11 alirezarah

After today's update got this message:

e3q8
Oops! something went wrong.

(pymysql.err.OperationalError) (1054, "Unknown column 'user.lang' in 'field list'") [SQL: SELECT user.id AS user_id, user.uuid AS user_uuid, user.name AS user_name, user.last_online AS user_last_online, user.expiry_time AS user_expiry_time, user.usage_limit AS user_usage_limit, user.package_days AS user_package_days, user.mode AS user_mode, user.monthly AS user_monthly, user.start_date AS user_start_date, user.current_usage AS user_current_usage, user.last_reset_time AS user_last_reset_time, user.comment AS user_comment, user.telegram_id AS user_telegram_id, user.added_by AS user_added_by, user.max_ips AS user_max_ips, user.enable AS user_enable, user.lang AS user_lang, user.ed25519_private_key AS user_ed25519_private_key, user.ed25519_public_key AS user_ed25519_public_key FROM user] (Background on this error at: https://sqlalche.me/e/14/e3q8)

After using the solution from above got Can't connect the server

Graninius avatar Nov 14 '23 08:11 Graninius

for solving this bug first connect to ssh after that restart services from hiddify panel then select update

h-behgam avatar Nov 28 '23 10:11 h-behgam

for solving this bug first connect to ssh after that restart services from hiddify panel then select update

Hello, please write the instructions Does this solve the update problem?

alirezarah avatar Nov 28 '23 11:11 alirezarah

for solving this bug first connect to ssh after that restart services from hiddify panel then select update

Hello, please write the instructions Does this solve the update problem?

first connect to ssh with putty then hiddify menu appearance in menu choose restart services item wait for restarting then select update item just it Enjoy the new version

h-behgam avatar Nov 28 '23 14:11 h-behgam

for solving this bug first connect to ssh after that restart services from hiddify panel then select update

Hello, please write the instructions Does this solve the update problem?

first connect to ssh with putty then hiddify menu appearance in menu choose restart services item wait for restarting then select update item just it Enjoy the new version

This is the same as the previous version Could not update to the new version of the panel

alirezarah avatar Dec 05 '23 09:12 alirezarah

pls update to the latest version. should be solved

lymanjre avatar Jan 25 '24 14:01 lymanjre

how to update , when the update script in old versions has issue??

mrvcoder avatar Feb 18 '24 18:02 mrvcoder