Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Bug #3362

Closed
itsalivafaei opened this issue Oct 27, 2023 · 14 comments
Closed

Update Bug #3362

itsalivafaei opened this issue Oct 27, 2023 · 14 comments

Comments

@itsalivafaei
Copy link

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

@Graninius
Copy link

Graninius commented Oct 27, 2023

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:

@Amir2241
Copy link

سلام

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

ubuntu 22.04
Panel V. 8.6.11

@mrvcoder
Copy link

Same

@alirezarah
Copy link

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

@pjrobertson
Copy link

pjrobertson commented Nov 10, 2023

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

@alirezarah
Copy link

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
Copy link

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

@Graninius
Copy link

Graninius commented Nov 14, 2023

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

@h-behgam
Copy link

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

@alirezarah
Copy link

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?

@h-behgam
Copy link

h-behgam commented Nov 28, 2023

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

@alirezarah
Copy link

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

@lymanjre
Copy link
Contributor

pls update to the latest version. should be solved

@mrvcoder
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants