- 
                Notifications
    
You must be signed in to change notification settings  - Fork 385
 
Closed
Labels
kind/bugSomething isn't workingSomething isn't working
Description
Describe the bug
Can't use create or reset admin or migrate database command
To Reproduce
- configure env and database
 - start firezone with the later provided service file
 - try to execute 
docker exec -it firezone bin/create-or-reset-admin 
Expected behavior
Create a user with which I can log in
Screenshots / Logs
Actual output
➜  firezone docker exec -it firezone  bin/create-or-reset-admin  
ip: RTNETLINK answers: File exists
Platform (please complete the following information):
- Firezone Version: 0.7.22 (also tested 0.7.20 and the latest tag)
 - OS: Linux
 - Distro: Ubuntu 20.04
 - Kernel version: 5.4.0-137-generic
 - Deployment method: Custom docker via ansible
 
Additional context
Related to #1497 I guess, but I can't use 0.7.20 or the "fix" so I suspect another issue
Systemd file
[Unit]       
Description=Firezone VPN 
Requires=postgresql.service
After=docker.service
DefaultDependencies=no
[Service]
Type=simple
ExecStartPre=-/usr/bin/env sh -c '/usr/bin/env docker kill firezone 2>/dev/null || true'
ExecStartPre=-/usr/bin/env sh -c '/usr/bin/env docker rm firezone 2>/dev/null || true'
ExecStartPre=/usr/bin/env docker create \
                --rm \
                --name=firezone \
                --log-driver=none \
                --cap-drop=ALL \
                --cap-add=NET_ADMIN \
                --cap-add=SYS_MODULE \
                --sysctl="net.ipv6.conf.all.disable_ipv6=0" \
                --network=firezone \
                -p 13000:13000 \
                --mount type=bind,src=/root/testing/firezone/data,dst=/var/firezone \
                --read-only \
                --env-file=/root/testing/firezone/.env \
                firezone/firezone:0.7.22
ExecStart=/usr/bin/env docker start --attach firezone
ExecStop=-/usr/bin/env sh -c '/usr/bin/env docker kill firezone 2>/dev/null || true'
ExecStop=-/usr/bin/env sh -c '/usr/bin/env docker rm firezone 2>/dev/null || true'
Restart=always
RestartSec=30
SyslogIdentifier=firezone
[Install]
WantedBy=multi-user.target
QEDeD
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working