OpenWrt: configuration may be lost #2168

Open
opened 2025-11-20 07:05:06 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @wehagy on GitHub (Aug 11, 2025).

Describe the problem

You may lose the configuration files after upgrading to any version later than 0.52.0.

To Reproduce

Steps to reproduce the behavior:

  1. Upgrade to any version after 0.52.0
  2. Reboot or flash new image.

Expected behavior

Avoid losing configuration files by using a persistent directory.

Are you using NetBird Cloud?

NetBird Cloud

NetBird version

0.54.0

Is any other VPN software installed?

no

Additional context

The version 0.52.0 introduced the profiles feature, changing the default configuration directory from /etc/netbird to /var/lib/netbird. In OpenWrt, this directory is a symbolic link to /tmp, which is a temporary directory. As a result, the configuration is lost after rebooting or flashing new image. As the maintainer of the netbird package in OpenWrt, I can easily change to another directory using the env NB_STATE_DIR, but I believe not everyone is aware of this option.

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @wehagy on GitHub (Aug 11, 2025). **Describe the problem** You may lose the configuration files after upgrading to any version later than `0.52.0`. **To Reproduce** Steps to reproduce the behavior: 1. Upgrade to any version after `0.52.0` 2. Reboot or flash new image. **Expected behavior** Avoid losing configuration files by using a persistent directory. **Are you using NetBird Cloud?** `NetBird Cloud` **NetBird version** `0.54.0` **Is any other VPN software installed?** `no` **Additional context** The version `0.52.0` introduced the profiles feature, changing the default configuration directory from `/etc/netbird` to `/var/lib/netbird`. In OpenWrt, this directory is a symbolic link to `/tmp`, which is a temporary directory. As a result, the configuration is lost after rebooting or flashing new image. As the maintainer of the `netbird` package in OpenWrt, I can easily change to another directory using the env `NB_STATE_DIR`, but I believe not everyone is aware of this option. **Have you tried these troubleshooting steps?** - [x] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [x] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [x] Restarted the NetBird client - [x] Disabled other VPN software - [x] Checked firewall settings
saavagebueno added the triage-needed label 2025-11-20 07:05:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2168