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

[WGDashboard] wg2 Error: '[Peer]' is not in list #328

Closed
DaanSelen opened this issue Aug 22, 2024 · 6 comments
Closed

[WGDashboard] wg2 Error: '[Peer]' is not in list #328

DaanSelen opened this issue Aug 22, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@DaanSelen
Copy link
Collaborator

This error:

------------------------------------------------------------
[WGDashboard] Starting WGDashboard with Gunicorn in the background.
[WGDashboard] wg2 Error: '[Peer]' is not in list
[WGDashboard] wg1 Error: '[Peer]' is not in list
[WGDashboard] WGDashboard w/ Gunicorn will be running on 0.0.0.0:10086
[WGDashboard] Access log file is at ./log/access_2024_08_22_11_18_53.log
[WGDashboard] Error log file is at ./log/error_2024_08_22_11_18_53.log
[WGDashboard] Checking if WGDashboard w/ Gunicorn started successfully
[WGDashboard] WGDashboard w/ Gunicorn started successfully
------------------------------------------------------------

Gets thrown for a configuration file like these:

root@61ac0ba87325:/etc/wireguard# cat wg2.conf
[Interface]
PrivateKey = gDKd1e1QLxQyfUr+5YT6haE0Rig7wBE4kfox1NToT3c=
Address = 10.0.2.0/24
ListenPort = 51822
PreUp =
PreDown =
PostUp =
PostDown =
SaveConfig = true

But this is just a newly created or added interface so why is there an error reporting for the peers? An empty interface could also exist. Right?

@DaanSelen DaanSelen added the bug Something isn't working label Aug 22, 2024
@donaldzou
Copy link
Owner

Hi Daan, this is intended for debugging use.. I threw this error so that we know which one is empty :) and this error won't crash the dashboard.

@DaanSelen
Copy link
Collaborator Author

True.

@DaanSelen DaanSelen reopened this Aug 22, 2024
@DaanSelen
Copy link
Collaborator Author

I just noticed because of this:

==> /opt/wireguarddashboard/src/log/error_2024_08_22_12_48_42.log <==
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list
[WGDashboard] wg0 Error: '[Peer]' is not in list

Is there a way you can remove this from wgd.sh start and put it into wgd.sh debug?

@donaldzou
Copy link
Owner

Yes, I can just have it to check if the flask app is ran in __main__, if not that means Gunicorn is running it.

@DaanSelen
Copy link
Collaborator Author

Thanks! Love to hear it when you have an update.

@donaldzou donaldzou mentioned this issue Aug 28, 2024
21 tasks
@donaldzou
Copy link
Owner

Fixed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants