[GH-ISSUE #5068] [RPM] %post(netbird-0.62.1-1.x86_64) scriptlet failed, exit status 1 #10431

Open
opened 2026-08-05 01:25:53 -04:00 by saavagebueno · 3 comments
Owner

Originally created by @hhenkel on GitHub (Jan 8, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5068

There already was #4808 reported and the fix #4809 was merged but the rpm install still fails due to other issues..

Steps to reproduce the behavior:

  1. Run a Fedora 43 based container: podman run -ti --rm fedora:43 /bin/bash
  2. As pgrep is required and not a dependency Install pgrep via: dnf install procps-ng
  3. Try to install netbird and netbird-ui rpm package: dnf install https://github.com/netbirdio/netbird/releases/download/v0.62.1/netbird-ui_0.62.1_linux_amd64.rpm https://github.com/netbirdio/netbird/releases/download/v0.62.1/netbird_0.62.1_linux_amd64.rpm
Updating and loading repositories:
Repositories loaded.
 https://github.com/netbirdio/netbird/releases/download/v0.62.1/netbird_0.62.1_linux_amd64.rpm                                                                                 100% |   2.3 MiB/s |  13.0 MiB |  00m06s
 https://github.com/netbirdio/netbird/releases/download/v0.62.1/netbird-ui_0.62.1_linux_amd64.rpm                                                                              100% |   2.5 MiB/s |  16.4 MiB |  00m06s

Package                                                                   Arch             Version                                                                   Repository                                    Size
Installing:
 netbird                                                                  x86_64           0.62.1-1                                                                  @commandline                              33.8 MiB
 netbird-ui                                                               x86_64           0.62.1-1                                                                  @commandline                              36.8 MiB

Transaction Summary:
 Installing:         2 packages

Total size of inbound packages is 29 MiB. Need to download 0 B.
After this operation, 71 MiB extra will be used (install 71 MiB, remove 0 B).
Is this ok [y/N]: y
Running transaction
[1/4] Verify package files                                                                                                                                                     100% |   9.0   B/s |   2.0   B |  00m00s
[2/4] Prepare transaction                                                                                                                                                      100% | 400.0   B/s |   2.0   B |  00m00s
[3/4] Installing netbird-0:0.62.1-1.x86_64                                                                                                                                     100% | 131.3 MiB/s |  33.8 MiB |  00m00s
>>> Running %post scriptlet: netbird-0:0.62.1-1.x86_64
>>> Non-critical error in %post scriptlet: netbird-0:0.62.1-1.x86_64
>>> Scriptlet output:
>>>
>>> Error: install service: open /etc/init.d/netbird: no such file or directory
>>> Error: start service: "service" failed: exec: "service": executable file not found in $PATH
>>>
>>> [RPM] %post(netbird-0.62.1-1.x86_64) scriptlet failed, exit status 1
[4/4] Installing netbird-ui-0:0.62.1-1.x86_64                                                                                                                                  100% | 136.4 MiB/s |  36.8 MiB |  00m00s
Transaction failed: Rpm transaction failed.
Warning: skipped OpenPGP checks for 2 packages from repository: @commandline

Expected behavior

The packages should be installed without errors, warnings and with all dependencies.

NetBird version

0.62.1

Additional context

Add any other context about the problem here.

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 @hhenkel on GitHub (Jan 8, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5068 There already was #4808 reported and the fix #4809 was merged but the rpm install still fails due to other issues.. Steps to reproduce the behavior: 1. Run a Fedora 43 based container: `podman run -ti --rm fedora:43 /bin/bash` 2. As pgrep is required and not a dependency Install pgrep via: `dnf install procps-ng` 3. Try to install netbird and netbird-ui rpm package: `dnf install https://github.com/netbirdio/netbird/releases/download/v0.62.1/netbird-ui_0.62.1_linux_amd64.rpm https://github.com/netbirdio/netbird/releases/download/v0.62.1/netbird_0.62.1_linux_amd64.rpm` 4. ``` Updating and loading repositories: Repositories loaded. https://github.com/netbirdio/netbird/releases/download/v0.62.1/netbird_0.62.1_linux_amd64.rpm 100% | 2.3 MiB/s | 13.0 MiB | 00m06s https://github.com/netbirdio/netbird/releases/download/v0.62.1/netbird-ui_0.62.1_linux_amd64.rpm 100% | 2.5 MiB/s | 16.4 MiB | 00m06s Package Arch Version Repository Size Installing: netbird x86_64 0.62.1-1 @commandline 33.8 MiB netbird-ui x86_64 0.62.1-1 @commandline 36.8 MiB Transaction Summary: Installing: 2 packages Total size of inbound packages is 29 MiB. Need to download 0 B. After this operation, 71 MiB extra will be used (install 71 MiB, remove 0 B). Is this ok [y/N]: y Running transaction [1/4] Verify package files 100% | 9.0 B/s | 2.0 B | 00m00s [2/4] Prepare transaction 100% | 400.0 B/s | 2.0 B | 00m00s [3/4] Installing netbird-0:0.62.1-1.x86_64 100% | 131.3 MiB/s | 33.8 MiB | 00m00s >>> Running %post scriptlet: netbird-0:0.62.1-1.x86_64 >>> Non-critical error in %post scriptlet: netbird-0:0.62.1-1.x86_64 >>> Scriptlet output: >>> >>> Error: install service: open /etc/init.d/netbird: no such file or directory >>> Error: start service: "service" failed: exec: "service": executable file not found in $PATH >>> >>> [RPM] %post(netbird-0.62.1-1.x86_64) scriptlet failed, exit status 1 [4/4] Installing netbird-ui-0:0.62.1-1.x86_64 100% | 136.4 MiB/s | 36.8 MiB | 00m00s Transaction failed: Rpm transaction failed. Warning: skipped OpenPGP checks for 2 packages from repository: @commandline ``` **Expected behavior** The packages should be installed without errors, warnings and with all dependencies. **NetBird version** 0.62.1 **Additional context** Add any other context about the problem here. **Have you tried these troubleshooting steps?** - [ ] 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) - [ ] Restarted the NetBird client - [ ] Disabled other VPN software - [ ] Checked firewall settings
saavagebueno added the triage-needed label 2026-08-05 01:25:53 -04:00
Author
Owner

@custardpy commented on GitHub (Jan 20, 2026):

Getting the same errors while trying to build the image using bluebuild dnf module here.

Netbird version: 0.63.0

<!-- gh-comment-id:3772753134 --> @custardpy commented on GitHub (Jan 20, 2026): Getting the same errors while trying to build the image using bluebuild dnf module here. Netbird version: 0.63.0
Author
Owner

@custardpy commented on GitHub (Jan 21, 2026):

Seems like the issue's been going on for quite a long time on Fedora Atomic systems and is connected both to the "check of isSystemd() function that looks for /run/systemd/ path, not detected in postinstall isolated environment" and trying to access the /etc/init.d during the service installation that doesn't exist on rpm-ostree systems as described here.

The only solution in my case is to use rpm-ostree module instead of dnf module when building the image.
However, this solution seems to be temporary since the bluebuild devs announced "transitioning from using rpm-ostree to dnf for package management, as dnf offers a more user-friendly experience and better functionality for managing packages on OSTree-based systems"

<!-- gh-comment-id:3777769603 --> @custardpy commented on GitHub (Jan 21, 2026): Seems like the issue's been going on for quite a long time on Fedora Atomic systems and is connected both to the "check of `isSystemd()` function that looks for `/run/systemd/` path, not detected in postinstall isolated environment" and trying to access the `/etc/init.d` during the service installation that doesn't exist on `rpm-ostree` systems as described [here](https://github.com/netbirdio/netbird/issues/2572). The only solution in my case is to use `rpm-ostree` module instead of `dnf` module when building the image. However, this solution seems to be temporary since the bluebuild devs [announced](https://blue-build.org/blog/dnf-module/) "transitioning from using rpm-ostree to dnf for package management, as dnf offers a more user-friendly experience and better functionality for managing packages on OSTree-based systems"
Author
Owner

@UbioZur commented on GitHub (Mar 15, 2026):

Same error here trying to update my atomic system from fedora 42 to 43.

Version: 0.66.4-1

I also have the error on fedora 42.

<!-- gh-comment-id:4062656134 --> @UbioZur commented on GitHub (Mar 15, 2026): Same error here trying to update my atomic system from fedora 42 to 43. Version: 0.66.4-1 I also have the error on fedora 42.
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#10431