Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Can't migrate or create admin/ip: RTNETLINK answers: File exists #1506

@moan0s

Description

@moan0s

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions