ngoduykhanh / wireguard-ui

Wireguard web interface
MIT License
3.78k stars 464 forks source link

trying to login to the webui #523

Closed SprayzXD closed 5 months ago

SprayzXD commented 5 months ago

So I'm trying to log in with the web UI every time I go to log in with the credentials I set using the compile file it doesn't work can anyone tell me what am i doing wrong here? Update I managed to log in.

Alex-joomla commented 5 months ago

Same for me

zvzz commented 5 months ago

Anyone stumble upon this thread - do not forget to restart the UI daemon before logging in first time.

florin-nechita commented 5 months ago

So after the first docker-compose up -d, it wants, for some reason, a docker restart. Almost gave up until I stumbled upon this thread.

graves501 commented 5 months ago

Sharing this so it might help someone else out there :grin:

I couldn't get the web UI to load... restarting the containers (using docker-compose) did not help. The error in the logs was:

Found WG conf /config/wg_confs/wg0.conf, but it doesn't seem to be valid, skipping.

For whatever reason wg0.conf got created, but it was just an empty file. Manually removing wg0.conf and then restarting the containers fixed the issue :+1:

nebulosa2007 commented 5 months ago

So after the first docker-compose up -d, it wants, for some reason, a docker restart. Almost gave up until I stumbled upon this thread.

Got same error on a new instance but I don't use docker image, systemd service instead

After start at first time, I log in with admin admin, it shows "Logged in successfully" and nothing happened after. Restarting service helps.

Log shows nothing:

...
wireguard-ui[18806]: Git Repo        : https://github.com/ngoduykhanh/wireguard-ui
wireguard-ui[18806]: Authentication        : true
wireguard-ui[18806]: Bind address        : 0.0.0.0:5000
wireguard-ui[18806]: Email from        :
wireguard-ui[18806]: Email from name        : WireGuard UI
wireguard-ui[18806]: Custom wg.conf        :
wireguard-ui[18806]: Base path        : /
wireguard-ui[18806]: Subnet ranges        :
wireguard-ui[18806]: Valid subnet ranges:
wireguard-ui[18806]: ⇨ http server started on [::]:5000
systemd[1]: Stopping A web user interface to manage your WireGuard setup...
systemd[1]: wireguard-ui.service: Deactivated successfully.
systemd[1]: Stopped A web user interface to manage your WireGuard setup.
systemd[1]: wireguard-ui.service: Consumed 13.094s CPU time, 11.9M memory peak, 0B memory swap peak.
0xCA commented 5 months ago

Please test https://github.com/ngoduykhanh/wireguard-ui/pull/534, should allow an immediate login

nebulosa2007 commented 5 months ago

Please test #534, should allow an immediate login

Now works as expected! Thanks!

jearton commented 3 months ago

Restarting container is not working for me

xgbt commented 2 months ago

Sharing this so it might help someone else out there 😁

I couldn't get the web UI to load... restarting the containers (using docker-compose) did not help. The error in the logs was:

Found WG conf /config/wg_confs/wg0.conf, but it doesn't seem to be valid, skipping.

For whatever reason wg0.conf got created, but it was just an empty file. Manually removing wg0.conf and then restarting the containers fixed the issue 👍

delete the /config/wg_confs/wg0.conf in container linuxserver/wireguard, then restart all two containers, that work for me.