Unable to install FWCloud Agent on RHEL 7. | FWCloud Forum

Unable to install FWCloud Agent on RHEL 7.

Jeremy M

New member
I've tried installing the FWCloud Agent on several RHEL 7 server machines, but it's failing with glibc compatibility issues. I've tried the agent distributed from https://pkg.fwcloud.net/fwcloud-agent/rpm/fwcloud-agent-1.2.1-1.x86_64.rpm (which was linked from your Downloads link) and the agent https://packagecloud.io/SOLTECSIS/FWCloud/el/7/x86_64/fwcloud-agent-1.2.1-1.x86_64.rpm (which was via the Installation documentation).

The error I get via yum is:

---> Package fwcloud-agent.x86_64 0:1.2.1-1 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.28)(64bit) for package: fwcloud-agent-1.2.1-1.x86_64
--> Finished Dependency Resolution
Error: Package: fwcloud-agent-1.2.1-1.x86_64 (fwcloud_mirror)
Requires: libc.so.6(GLIBC_2.28)(64bit)

Or, if I choose to use rpm to install it, the error is:

error: Failed dependencies:
libc.so.6(GLIBC_2.18)(64bit) is needed by fwcloud-agent-1.1.8-1.x86_64
libc.so.6(GLIBC_2.25)(64bit) is needed by fwcloud-agent-1.1.8-1.x86_64
libc.so.6(GLIBC_2.27)(64bit) is needed by fwcloud-agent-1.1.8-1.x86_64
libc.so.6(GLIBC_2.28)(64bit) is needed by fwcloud-agent-1.1.8-1.x86_64

It appears that the agent you've published in Package Cloud for all three RHEL versions is the same file (according to sha256sum). That RPM was built against glibc 2.28, but RHEL 7 only runs glibc 2.17.

The agent does install just fine on RHEL 8 and 9.

Is there a different agent to install, or that can be compiled to run on RHEL 7?



Also, I see that you have a GPG signature assigned to your repo (https://packagecloud.io/SOLTECSIS/FWCloud/gpgkey), but none of the RPMs are signed. Is that intentional?

Thanks,

Jeremy Mueller
 

Carles Munyoz

Administrator
Staff member
Hi Jeremy,
For the RPM package generation we use this YAML code as part of the CI (GitHub Actions) of the FWCloud-Agent repository:
YAML:
  rpm-package:
    needs: [build]
    runs-on: ubuntu-latest
    name: RPM package
    steps:
      - uses: actions/checkout@v2
      - name: Install required packages
        run: sudo apt install -y curl rpm libssl-dev pkg-config gcc
      - name: Install rustup
        run: curl https://sh.rustup.rs -sSf | sh -s -- -y && source "$HOME/.cargo/env"
      - name: Install cargo-rpm
        run: cargo install cargo-rpm
      - name: Build RPM package
        run: cargo rpm build -v
      - name: Upload RPM Artifact
        uses: actions/upload-artifact@v2
        with:
          name: rpm-package
          path: ./target/release/rpmbuild/RPMS/x86_64/*

This way we automatically generate the RPM package every time we publish a new FWCloud-Agent release.

For the DEB package we use this other YAML code:
YAML:
  deb-package:
    needs: [build]
    runs-on: ubuntu-latest
    name: DEB package
    steps:
      - uses: actions/checkout@v2
      - name: Install required packages
        run: sudo apt install -y curl libssl-dev pkg-config gcc musl-tools
      - name: Install rustup
        run: curl https://sh.rustup.rs -sSf | sh -s -- -y && source "$HOME/.cargo/env"
      - name: Install x86_64-unknown-linux-musl target
        run: rustup target add x86_64-unknown-linux-musl
      - name: Install cargo-deb
        run: cargo install cargo-deb
      - name: Build DEB package
        run: cargo deb --verbose --target=x86_64-unknown-linux-musl
      - name: Upload package
        uses: actions/upload-artifact@v2
        with:
          name: deb-package
          path: ./target/x86_64-unknown-linux-musl/debian/*

As you can see for the DEB package we use the target x86_64-unknown-linux-musl which helps us avoid compatibility problems with glibc and a single package for all DEB package based Linux distributions.

We had problems making the same for the RPM package, for this reason we don use the target x86_64-unknown-linux-musl for generate it.

We are going to analyze it again and investigate if we can find a solution. If not, we will add a new task in the CI for generate RPM packages for RedHat 7 and RedHat 8.

I going to generate a new issue in the FWCloud-Agent GitHub repository about this problem and keep informed you by means of this forum thread.



Regarding the packages signature, we want to do it by means of the GitHub CI, but we have not implemented yet.
 

Carles Munyoz

Administrator
Staff member
Hi Jeremy,
We have already solved the problem with the target x86_64-unknown-linux-musl in the RPM package process generation.

Thanks to this it is now possible to install FWCloud-Agent in RHEL7, RHEL8 and many other RPM Linux based distributions.

Please, install the new FWCloud-Agent release in your RHEL servers and let me know if all goes fine now.

Thank you very much for your feedback.
 

Jeremy M

New member
Carles,

I've downloaded the newest agent (fwcloud-agent-1.2.2-1.x86_64.rpm), and it's working successfully on RHEL 7, 8, and 9.

Thanks!

Jeremy
 
Top