elastic / elastic/logstash

LogStash-2.2 install via RPM not properly installing on RHEL5

Open
#4,788 2 comments 0 reactions 0 assignees View on GitHub
bug packaging
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
1d 4h
Merged PRs (30d)
88

Description

I was following the [YUM Installation instructions](https://www.elastic.co/guide/en/logstash/current/package-repositories.html#_yum) listed in the link. However when I

```
# rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch
error: https://packages.elastic.co/GPG-KEY-elasticsearch: import read failed(-1).
```

However, when I `wget` the GPG key, and import it that way, it works. Then I attempt to install the logstash binary after creating the repo file.

```
# yum install -y logstash
Loaded plugins: rhnplugin, security
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
Internal Server Error
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package logstash.noarch 1:2.2.2-1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================
Installing:
logstash noarch 1:2.2.2-1 logstash-2.2 72 M

Transaction Summary
=====================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 72 M
Downloading Packages:
logstash-2.2.2-1.noarch.rpm | 72 MB 00:02
error: rpmts_HdrFromFdno: Header V4 RSA/SHA1 signature: BAD, key ID d88e42b4

Problem opening package logstash-2.2.2-1.noarch.rpm
```

Then I try to ignore the `--nogpgcheck` to get it installed.

```
# yum install -y logstash --nogpgcheck
Loaded plugins: rhnplugin, security
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
Internal Server Error
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package logstash.noarch 1:2.2.2-1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================
Installing:
logstash noarch 1:2.2.2-1 logstash-2.2 72 M

Transaction Summary
=====================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total size: 72 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
error: logstash-2.2.2-1: Header V4 RSA/SHA1 signature: BAD, key ID d88e42b4

Installed:
logstash.noarch 1:2.2.2-1

Complete!
```

Same error, but it "installed". However, after installation, there is no `logstash` user, nor any of the other directories that should be created. I performed this same install on a RHEL6 server, and it worked just fine, no issues. Am I not doing something correctly?

Contributor guide

Open the contributing guide

Research direction

Start with the linked YUM Installation instructions and the repository-file/RPM transaction on RHEL5, comparing them with the successful RHEL6 installation. Done means the GPG key and Logstash RPM verify correctly and installation creates the logstash user and expected directories.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems, release
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.