perara / wg-manager

A easy to use WireGuard dashboard and management tool
MIT License
594 stars 74 forks source link

Method #2: Bare Metal - RuntimeError: Database does not exist and no ADMIN_USER is set #27

Closed aniston closed 4 years ago

aniston commented 4 years ago

Hi, given the screen shots this seems to be exactly what I need ;) but the Docker approach is not possible for me, so I had to go the Method #2: Bare Metal way on a Debian 10 Server and after a clean install I followed the guidelines in Method 2#.

But the main problem comes at uvicorn main:app --host=0.0.0.0 exits with RuntimeError: Database does not exist and no ADMIN_USER is set At this point I'm not sure if the database has to be seperately created before and the admin user and password to be set by hand, if so a small how-to will help.

anyone with success on Debian bare-metal way ?

perara commented 4 years ago

You must set the appropriate environment variables. see https://github.com/perara/wg-manager#environment-variables

aniston commented 4 years ago

That worked ! straight on target and thanks for the quick reply :+1:

I see you already clarified the error message meaning in the code output.

good work and best regards, Ansiton.