Dashboard docker container does not check exit code of init_react_envs.sh #2091

Open
opened 2025-11-20 06:12:36 -05:00 by saavagebueno · 1 comment
Owner

Originally created by @AbsurdlySuspicious on GitHub (Jul 21, 2025).

Describe the problem

When starting dashboard container, if any checks fail within init_react_envs.sh container continues to run ignoring non-zero exit code

Also, there's sane defaults in the script after the checks, but they are completely useless given -z checks above them, which is strange

To Reproduce

Steps to reproduce the behavior:

  1. Do not set any of required env vars (e.g. AUTH_AUTHORITY)
  2. Start dashboard container
  3. See logs
  4. Check that container is still running, does not restart or fail

Expected behavior

Container fails to start when prerequisites fail

Are you using NetBird Cloud?

Self-hosted

NetBird version

0.51.1

Is any other VPN software installed?

No

Debug output

N/A

Screenshots

N/A

Additional context

N/A

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 @AbsurdlySuspicious on GitHub (Jul 21, 2025). **Describe the problem** When starting dashboard container, if any checks fail within init_react_envs.sh container continues to run ignoring non-zero exit code Also, there's sane defaults in the script after the checks, but they are completely useless given `-z` checks above them, which is strange **To Reproduce** Steps to reproduce the behavior: 1. Do not set any of required env vars (e.g. AUTH_AUTHORITY) 2. Start dashboard container 3. See logs 4. Check that container is still running, does not restart or fail **Expected behavior** Container fails to start when prerequisites fail **Are you using NetBird Cloud?** Self-hosted **NetBird version** `0.51.1` **Is any other VPN software installed?** No **Debug output** N/A **Screenshots** N/A **Additional context** N/A **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 bugtriage-neededself-hosting labels 2025-11-20 06:12:36 -05:00
Author
Owner

@nazarewk commented on GitHub (Jul 22, 2025):

seems like we might need to revise the supervisord config 8e2cbe1d2a/docker/supervisord.conf (L66)

@nazarewk commented on GitHub (Jul 22, 2025): seems like we might need to revise the supervisord config https://github.com/netbirdio/dashboard/blob/8e2cbe1d2a1dbaf8d9b5702143f4c1b60decb408/docker/supervisord.conf#L66
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2091