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

Add try catch for method update_wg_usage to show propper error cause #3930

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

devlifeX
Copy link

@devlifeX devlifeX commented Apr 1, 2024

I faced error in refreshing usage and find out there is not interface hiddifywg running.
This command raised error and not working:
wg_raw_output = subprocess.check_output(['wg', 'show', 'hiddifywg', 'transfer'])
after change port number wireguard in admin panel and apply changes it's worked.

@hiddify-com
Copy link
Collaborator

We know it but we want to have error in case of issue so we can find if an error occured

@heinnge
Copy link

heinnge commented Jul 6, 2024

I faced error in refreshing usage and find out there is not interface hiddifywg running. This command raised error and not working: wg_raw_output = subprocess.check_output(['wg', 'show', 'hiddifywg', 'transfer']) after change port number wireguard in admin panel and apply changes it's worked.

hello. which port number did you change to? is the wg interface does not register properly because of port conflicts?

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

Successfully merging this pull request may close these issues.

4 participants