# OSS repo is not working

**URL:** <https://discuss.elastic.co/t/oss-repo-is-not-working/226730>\
**Category:** Elasticsearch\
**Created:** [April 6, 2020, 2:15pm UTC](https://discuss.elastic.co/t/oss-repo-is-not-working/226730 "2020-04-06T14:15:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jovan](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jovan](https://discuss.elastic.co/u/jovan)\
**Post date:** [April 6, 2020, 2:15pm UTC](https://discuss.elastic.co/t/oss-repo-is-not-working/226730/1 "2020-04-06T14:15:30Z")

</div>

Hi team,

I wanted to report that OSS repo is not working properly, it has non oss packages instead of oss packages:  
[https://artifacts.elastic.co/packages/oss-7.x/yum](https://artifacts.elastic.co/packages/oss-7.x/yum)

We need it, as we use the OSS packages through repo, not pulling down .rpm`s

```
[root@ ********]# cat /etc/yum.repos.d/elastic-oss.repo
[elastic-oss-7.x]
name=Elastic repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/oss-7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

[root@ ******]# yum repo-pkgs elastic-oss-7.x list
Loaded plugins: fastestmirror
Repository elasticsearch-7.x is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: centos-distro.cavecreek.net
 * epel: dl.fedoraproject.org
 * extras: mirror.phx1.us.spryservers.net
 * updates: mirror.san.fastserv.com
Available Packages
apm-server.i686 7.6.2-1 elastic-oss-7.x
apm-server.x86_64 7.6.2-1 elastic-oss-7.x
auditbeat.i686 7.6.2-1 elastic-oss-7.x
auditbeat.x86_64 7.6.2-1 elastic-oss-7.x
elasticsearch-oss.x86_64 7.6.2-1 elastic-oss-7.x
filebeat.i686 7.6.2-1 elastic-oss-7.x
filebeat.x86_64 7.6.2-1 elastic-oss-7.x
heartbeat-elastic.i686 7.6.2-1 elastic-oss-7.x
heartbeat-elastic.x86_64 7.6.2-1 elastic-oss-7.x
journalbeat.i686 7.6.2-1 elastic-oss-7.x
journalbeat.x86_64 7.6.2-1 elastic-oss-7.x
kibana-oss.x86_64 7.6.2-1 elastic-oss-7.x
logstash.noarch 1:7.1.1-1 elastic-oss-7.x
logstash-oss.noarch 1:7.6.2-1 elastic-oss-7.x
metricbeat.i686 7.6.2-1 elastic-oss-7.x
metricbeat.x86_64 7.6.2-1 elastic-oss-7.x
packetbeat.i686 7.6.2-1 elastic-oss-7.x
packetbeat.x86_64 7.6.2-1 elastic-oss-7.x
```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 7, 2020, 3:40pm UTC](https://discuss.elastic.co/t/oss-repo-is-not-working/226730/2 "2020-04-07T15:40:32Z")

</div>

Seeing your output I saw this snippet

> [@jovan](#):
>
> Repository elasticsearch-7.x is listed more than once in the configuration

Can you make sure that there are no duplicates in your list, then update, then retry and we take it from there?

---

<div class="post-metadata">

**Author:** ![jovan](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jovan](https://discuss.elastic.co/u/jovan)\
**Post date:** [April 7, 2020, 6:34pm UTC](https://discuss.elastic.co/t/oss-repo-is-not-working/226730/3 "2020-04-07T18:34:32Z")

</div>

Ok, let me go this way. I put a repo on a fresh machine, downloaded repo file, with opendistro repo, elasticsearch 6.x oss repo, and elasticsearch 7.x oss repo, and here is output below:

> ```
> [root@utils-ansible-01 yum.repos.d]# cat /etc/yum.repos.d/opendistroforelasticsearch-artifacts.repo
> [elasticsearch-6.x]
> name=Elasticsearch repository for 6.x packages
> baseurl=https://artifacts.elastic.co/packages/oss-6.x/yum
> gpgcheck=1
> gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
> enabled=1
> autorefresh=1
> type=rpm-md
> 
> [elasticsearch-7.x]
> name=Elasticsearch repository for 7.x packages
> baseurl=https://artifacts.elastic.co/packages/oss-7.x/yum
> gpgcheck=1
> gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
> enabled=1
> autorefresh=1
> type=rpm-md
> 
> [opendistroforelasticsearch-artifacts-repo]
> name=Release RPM artifacts of OpenDistroForElasticsearch
> baseurl=https://d3g5vo6xdbdb9a.cloudfront.net/yum/noarch/
> enabled=1
> gpgkey=https://d3g5vo6xdbdb9a.cloudfront.net/GPG-KEY-opendistroforelasticsearch
> gpgcheck=1
> repo_gpgcheck=1
> autorefresh=1
> type=rpm-md
> [root@utils-ansible-01 yum.repos.d]# yum repo-pkgs elasticsearch-7.x list | grep filebeat
> filebeat.i686 7.6.2-1 elasticsearch-7.x
> filebeat.x86_64 7.6.2-1 elasticsearch-7.x
> [root@utils-ansible-01 yum.repos.d]# yum repo-pkgs elasticsearch-6.x list | grep filebeat
> filebeat.i686 6.8.8-1 elasticsearch-6.x
> filebeat.x86_64 6.8.8-1 elasticsearch-6.x
> filebeat-oss.i686 6.3.2-1 elasticsearch-6.x
> filebeat-oss.x86_64 6.3.2-1 elasticsearch-6.x
> 
> ```

As you can see from repo file definition, both 6.x and 7.x repo should be oss repo, but when you list packages you will see that oss filebeat exist in 6.x but not in 7.x repo. Below I will put list of both repo packages:

```
> [root@utils-ansible-01 yum.repos.d]# yum repo-pkgs elasticsearch-6.x list
> Loaded plugins: copr, fastestmirror
> Loading mirror speeds from cached hostfile
> * base: repos.lax.quadranet.com
> * epel: dl.fedoraproject.org
> * extras: sjc.edge.kernel.org
> * updates: mirror.keystealth.org
> Available Packages
> apm-server.i686 6.8.8-1 elasticsearch-6.x
> apm-server.x86_64 6.8.8-1 elasticsearch-6.x
> apm-server-oss.i686 6.3.2-1 elasticsearch-6.x
> apm-server-oss.x86_64 6.3.2-1 elasticsearch-6.x
> auditbeat.i686 6.8.8-1 elasticsearch-6.x
> auditbeat.x86_64 6.8.8-1 elasticsearch-6.x
> auditbeat-oss.i686 6.3.2-1 elasticsearch-6.x
> auditbeat-oss.x86_64 6.3.2-1 elasticsearch-6.x
> elasticsearch-oss.noarch 6.8.8-1 elasticsearch-6.x
> filebeat.i686 6.8.8-1 elasticsearch-6.x
> filebeat.x86_64 6.8.8-1 elasticsearch-6.x
> filebeat-oss.i686 6.3.2-1 elasticsearch-6.x
> filebeat-oss.x86_64 6.3.2-1 elasticsearch-6.x
> heartbeat-elastic.i686 6.8.8-1 elasticsearch-6.x
> heartbeat-elastic.x86_64 6.8.8-1 elasticsearch-6.x
> heartbeat-elastic-oss.i686 6.3.2-1 elasticsearch-6.x
> heartbeat-elastic-oss.x86_64 6.3.2-1 elasticsearch-6.x
> journalbeat.i686 6.8.8-1 elasticsearch-6.x
> journalbeat.x86_64 6.8.8-1 elasticsearch-6.x
> kibana-oss.x86_64 6.8.8-1 elasticsearch-6.x
> logstash.noarch 1:6.8.0-1 elasticsearch-6.x
> logstash-oss.noarch 1:6.8.8-1 elasticsearch-6.x
> metricbeat.i686 6.8.8-1 elasticsearch-6.x
> metricbeat.x86_64 6.8.8-1 elasticsearch-6.x
> metricbeat-oss.i686 6.3.2-1 elasticsearch-6.x
> metricbeat-oss.x86_64 6.3.2-1 elasticsearch-6.x
> packetbeat.i686 6.8.8-1 elasticsearch-6.x
> packetbeat.x86_64 6.8.8-1 elasticsearch-6.x
> packetbeat-oss.i686 6.3.2-1 elasticsearch-6.x
> packetbeat-oss.x86_64 6.3.2-1 elasticsearch-6.x
> 
> 
> [root@utils-ansible-01 yum.repos.d]# yum repo-pkgs elasticsearch-7.x list
> Loaded plugins: copr, fastestmirror
> Loading mirror speeds from cached hostfile
> * base: repos.lax.quadranet.com
> * epel: dl.fedoraproject.org
> * extras: sjc.edge.kernel.org
> * updates: mirror.keystealth.org
> Available Packages
> apm-server.i686 7.6.2-1 elasticsearch-7.x
> apm-server.x86_64 7.6.2-1 elasticsearch-7.x
> auditbeat.i686 7.6.2-1 elasticsearch-7.x
> auditbeat.x86_64 7.6.2-1 elasticsearch-7.x
> elasticsearch-oss.x86_64 7.6.2-1 elasticsearch-7.x
> filebeat.i686 7.6.2-1 elasticsearch-7.x
> filebeat.x86_64 7.6.2-1 elasticsearch-7.x
> heartbeat-elastic.i686 7.6.2-1 elasticsearch-7.x
> heartbeat-elastic.x86_64 7.6.2-1 elasticsearch-7.x
> journalbeat.i686 7.6.2-1 elasticsearch-7.x
> journalbeat.x86_64 7.6.2-1 elasticsearch-7.x
> kibana-oss.x86_64 7.6.2-1 elasticsearch-7.x
> logstash.noarch 1:7.1.1-1 elasticsearch-7.x
> logstash-oss.noarch 1:7.6.2-1 elasticsearch-7.x
> metricbeat.i686 7.6.2-1 elasticsearch-7.x
> metricbeat.x86_64 7.6.2-1 elasticsearch-7.x
> packetbeat.i686 7.6.2-1 elasticsearch-7.x
> packetbeat.x86_64 7.6.2-1 elasticsearch-7.x

```

---

<div class="post-metadata">

**Author:** ![Julien\_MAILLERET](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien_mailleret/32/45074_2.png) [@Julien\_MAILLERET](https://discuss.elastic.co/u/Julien_MAILLERET)\
**Post date:** [April 8, 2020, 8:36am UTC](https://discuss.elastic.co/t/oss-repo-is-not-working/226730/4 "2020-04-08T08:36:18Z")

</div>

Hi @jovan,

Thank you for reporting this issue.

It seems the `filebeat` package is oss 7.x repo is the good one even it doesn't have `-oss` suffix:

```auto
[root@9b5e2813860c /]# cat /etc/yum.repos.d/elastic.repo
[elasticsearch-7.x]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/oss-7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
[root@9b5e2813860c /]# yum info filebeat
Available Packages
Name : filebeat
Arch : i686
Version : 7.6.2
Release : 1
Size : 18 M
Repo : elasticsearch-7.x
Summary : Filebeat sends log files to Logstash or directly to Elasticsearch.
URL : https://www.elastic.co/products/beats/filebeat
License : ASL-2.0
Description : Filebeat sends log files to Logstash or directly to Elasticsearch.

Name : filebeat
Arch : x86_64
Version : 7.6.2
Release : 1
Size : 18 M
Repo : elasticsearch-7.x
Summary : Filebeat sends log files to Logstash or directly to Elasticsearch.
URL : https://www.elastic.co/products/beats/filebeat
License : ASL-2.0
Description : Filebeat sends log files to Logstash or directly to Elasticsearch.

```

The important things to check are the **Version** which should be **7.6.2** (it seems we have some old version packages hidden in the repo) and **License** which should be **ASL-2.0** ( **Elastic License** on non OSS versions).

Meanwhile we are investigating on it and we'll fix it very soon.

---

<div class="post-metadata">

**Author:** ![Julien\_MAILLERET](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien_mailleret/32/45074_2.png) [@Julien\_MAILLERET](https://discuss.elastic.co/u/Julien_MAILLERET)\
**Post date:** [April 8, 2020, 2:21pm UTC](https://discuss.elastic.co/t/oss-repo-is-not-working/226730/5 "2020-04-08T14:21:35Z")

</div>

So after some investigations, I can confirm you that Elasticsearch, Kibana and Logstash OSS packages have the `-oss` extensions while the other OSS packages (APM Server & Beats) don't have this extension anymore since 6.3.3.

That's why when you list the OSS 6.x repository packages with `yum repo-pkgs elasticsearch-6.x list`, you can see that apm-server and beats packages with `-oss` extension are `6.3.2` version.

I know that's pretty confusing but we prefer not removing them from existing repositories to avoid breaking installation of people still using these packages.

So for Filebeat OSS, you should use `filebeat` packages (without `-oss`) and in case of doubt use `yum info` to verify package license and version.

---

<div class="post-metadata">

**Author:** ![jovan](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jovan](https://discuss.elastic.co/u/jovan)\
**Post date:** [April 8, 2020, 4:50pm UTC](https://discuss.elastic.co/t/oss-repo-is-not-working/226730/6 "2020-04-08T16:50:43Z")

</div>

Thanks for help!  
I have used yumdownloader to download filebeat from repo, and wget to pull the filebeat-oss Elasticsearch official site download, compared md5sum, and they are same:

```
[root@utils-ansible-01 tmp]# wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-7.4.2-x86_64.rpm 
[root@utils-ansible-01 tmp]# mv filebeat-oss-7.4.2-x86_64.rpm oss.rpm
[root@utils-ansible-01 tmp]# yumdownloader filebeat-7.4.2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos-distro.1gservers.com
 * epel: dl.fedoraproject.org
 * extras: mirrors.xtom.com
 * updates: mirror.phx1.us.spryservers.net
warning: /tmp/filebeat-oss-7.4.2-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY=============================================== ] 14 MB/s | 14 MB 00:00:00 ETA
Public key for filebeat-oss-7.4.2-x86_64.rpm is not installed
filebeat-oss-7.4.2-x86_64.rpm | 19 MB 00:00:00
[root@utils-ansible-01 tmp]#
[root@utils-ansible-01 tmp]# ll
total 57504
-rw-r--r-- 1 root root 18961573 Mar 31 17:29 filebeat-oss-7.4.2-i686.rpm
-rw-r--r-- 1 root root 19931666 Mar 31 17:29 filebeat-oss-7.4.2-x86_64.rpm
-rw-r--r-- 1 root root 19931666 Mar 31 17:29 oss.rpm
[root@utils-ansible-01 tmp]# md5sum oss.rpm filebeat-oss-7.4.2-x86_64.rpm
6d7cd7b8b2feb631bee06ee614624d7b oss.rpm
6d7cd7b8b2feb631bee06ee614624d7b filebeat-oss-7.4.2-x86_64.rpm
```

---

<div class="post-metadata">

**Author:** ![jovan](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jovan](https://discuss.elastic.co/u/jovan)\
**Post date:** [April 8, 2020, 4:57pm UTC](https://discuss.elastic.co/t/oss-repo-is-not-working/226730/7 "2020-04-08T16:57:53Z")

</div>

Julien, just one more question, in the future, will naming convention stay the same that on OSS repo `ELK` packages will have `-oss` extension, and other packages like `(APM Server & Beats)` will not have `-oss`extension?

---

<div class="post-metadata">

**Author:** ![Julien\_MAILLERET](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien_mailleret/32/45074_2.png) [@Julien\_MAILLERET](https://discuss.elastic.co/u/Julien_MAILLERET)\
**Post date:** [April 9, 2020, 6:48am UTC](https://discuss.elastic.co/t/oss-repo-is-not-working/226730/8 "2020-04-09T06:48:39Z")

</div>

We may try to have same convention (`-oss` for all or none) at some point but we shouldn't do it before 8.x to not add change in existing 6.x and 7.x repositories.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 7, 2020, 6:48am UTC](https://discuss.elastic.co/t/oss-repo-is-not-working/226730/9 "2020-05-07T06:48:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
