M0dEx / quincy

QUIC-based VPN
MIT License
114 stars 11 forks source link

ERROR quincy_server: A critical error occurred: missing field `users_file` #58

Closed vukitoso closed 8 months ago

vukitoso commented 8 months ago

Hi.

Debian 12 x86_64 https://github.com/M0dEx/quincy/releases/tag/0.8.3

When starting the server it gives an error. Are you able to run the server on this version?

$ ./quincy-server --config-path examples/server.toml
2024-03-20T10:11:11.858091Z ERROR quincy_server: A critical error occurred: missing field `users_file`
$ cat examples/server.toml
# Name of the server instance (currently not used as the name of the interface)
name = "tun0"
# Path to the certificate used for TLS
certificate_file = "examples/cert/server_cert.pem"
# Path to the certificate key used for TLS
certificate_key_file = "examples/cert/server_key.pem"
# The address of the tunnel endpoint and base address of the address pool available to clients
address_tunnel = "10.0.0.1"
# Netmask used to generate the address pool available to clients
address_mask = "255.255.255.0"

[authentication]
# Path to the file containing user credentials
users_file = "examples/users"

[connection]
# The MTU used by the QUIC tunnel and the spawned TUN interface
mtu = 1400

[log]
# The log level
level = "info"
$ cat examples/users 
test:$argon2id$v=19$m=19456,t=2,p=1$S9rMLOcz/dnYN4cnyc/TJg$ES0p+DErLfcWoUJ2tvZlxZSSIGYNUEe0ZpKBDz7MOj0
M0dEx commented 8 months ago

Hi!

Thank you for noticing this, it is a discrepancy between the main branch and the 0.8.3 tag.

Please use the example configuration files from the tag equal to the version of Quincy you are using.

vukitoso commented 8 months ago

thx. Work