ngoduykhanh / wireguard-ui

Wireguard web interface
MIT License
4.05k stars 502 forks source link

How do I fix this? #379

Open operationairstrike opened 1 year ago

operationairstrike commented 1 year ago

error: Could not open file db/server/global_settings.json: No such file or directory

I couldn't find this file on GitHub.

ngoduykhanh commented 1 year ago

It will be generated automatically when you starts wireguard-ui for the first time.

operationairstrike commented 1 year ago

I did start the docker image but after stopping and starting again it didn't work yet

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

bertrandoubida commented 1 year ago

"jq: error: Could not open file db/server/global_settings.json: No such file or directory" I got the same problem. That is the message i got when I started the container.

kaganae commented 1 year ago

Same issue.

user@ubuntu-vm:~$ docker run eab7f117bb1c jq: error: Could not open file db/server/global_settings.json: No such file or directory Wireguard UI App Version : dev Git Commit : b55543f Git Ref : N/A Build Time : 09-11-2023 22:39:31 Git Repo : https://github.com/ngoduykhanh/wireguard-ui Authentication : true Bind address : 0.0.0.0:5000 Email from : Email from name : WireGuard UI Custom wg.conf : Base path : / ⇨ http server started on [::]:5000

bertrandoubida commented 1 year ago

I simply just used Docker and pulled the whole project in instead of doing it through the binary. My steps are documented in my medium blog : https://medium.com/@bertrandoubida/set-up-wireguard-and-wireguard-ui-gui-on-aws-ec2-50f552015296

operationairstrike commented 1 year ago

Yeah this is long ago I got it working now.

kaganae commented 1 year ago

Thanks. Your solution worked for me. However, once I get to the login screen and enter the default user id and password (from the docker-compose.yaml), I get an error on the login page: "Cannot query user from DB". Any ideas?

bertrandoubida commented 1 year ago

I would make sure that the -Volume section of the Docker yaml file was created as well ( check the "./db:/app/db" directory), it should have been created when you compose the docker file. You might need to redo from scratch to make sure all the steps are followed.

stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.