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

Users deleted when server is restarted #179

Open
ABoyle13 opened this issue Sep 4, 2023 · 2 comments
Open

Users deleted when server is restarted #179

ABoyle13 opened this issue Sep 4, 2023 · 2 comments
Labels
v1 Old version of wg-portal

Comments

@ABoyle13
Copy link

ABoyle13 commented Sep 4, 2023

Hello,

I have encountered an issue with v1.0.17. When the server was patched and restarted, the Docker container started automatically but the users and VPN configuration were wiped.
I have checked in the database file (/data/wg-portal.db) but this is empty, as I believe that the database may not be working correctly in this version.
Where are the users stored in v1.0.17? I would then make sure the directory is mounted to the Docker container.

Thanks

@philippderdiedas
Copy link
Contributor

philippderdiedas commented Sep 13, 2023

if you used the example docker-compose.yml with the volume - ./data:/app/data, your database should be at ./data/wg_portal.db and at /app/data/wg_portal.db inside the container. it could be your dash instead of the underscore if you mounted the file not the directory

@h44z h44z added the v1 Old version of wg-portal label Oct 19, 2023
@ebakoba
Copy link

ebakoba commented Oct 20, 2023

Same thing happens for v2, but in that case default sqlite database is not saved into /app/data folder anymore. Could not figure out whats the new path so instead set config to:

database:
  dsn: "app/data/wg-portal.db"

h44z added a commit that referenced this issue Oct 26, 2023
- update docker build
- move default database to /app/data (#179)
- move config file location to /app/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1 Old version of wg-portal
Projects
None yet
Development

No branches or pull requests

4 participants