# Unable to sync repo in Red Hat Satellite

**URL:** <https://discuss.elastic.co/t/unable-to-sync-repo-in-red-hat-satellite/233092>\
**Category:** Elasticsearch\
**Created:** [May 18, 2020, 11:16am UTC](https://discuss.elastic.co/t/unable-to-sync-repo-in-red-hat-satellite/233092 "2020-05-18T11:16:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morrisong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/morrisong/32/68617_2.png) [@Morrisong](https://discuss.elastic.co/u/Morrisong)\
**Post date:** [May 18, 2020, 11:16am UTC](https://discuss.elastic.co/t/unable-to-sync-repo-in-red-hat-satellite/233092/1 "2020-05-18T11:16:02Z")

</div>

Hi,  
I wasn't sure where to post this. I'm new to elastic and I'm a bit stuck.  
I'm unable to sync the repository at [https://artifacts.elastic.co/packages/7.x/yum](https://artifacts.elastic.co/packages/7.x/yum) to the channel our Satellite 5 server. There seems to be an invalid file extension on one of the packages in the repo:

2020/05/18 09:02:47 +01:00 Command: ['/usr/bin/spacewalk-repo-sync', '--channel', 'elasticsearch', '--type', 'yum']  
2020/05/18 09:02:47 +01:00 Sync of channel started.  
2020/05/18 09:02:48 +01:00  
2020/05/18 09:02:48 +01:00 Processing repository with URL: [https://artifacts.elastic.co/packages/7.x/yum](https://artifacts.elastic.co/packages/7.x/yum)  
2020/05/18 09:02:55 +01:00 Packages in repo: 334  
2020/05/18 09:02:56 +01:00 Packages already synced: 0  
2020/05/18 09:02:56 +01:00 Packages to sync: 334  
2020/05/18 09:02:56 +01:00 New packages to download: 0  
2020/05/18 09:02:56 +01:00 Downloading packages:  
2020/05/18 09:02:56 +01:00 Importing packages started.  
2020/05/18 09:02:56 +01:00  
2020/05/18 09:02:56 +01:00 Importing packages to DB:  
2020/05/18 09:02:56 +01:00 Importing packages finished.  
2020/05/18 09:02:56 +01:00  
2020/05/18 09:02:56 +01:00 Linking packages to the channel.  
2020/05/18 09:02:56 +01:00 ERROR: Package arch aarch64 incompatible with channel elasticsearch  
2020/05/18 09:02:56 +01:00 ERROR: Package arch aarch64 incompatible with channel elasticsearch  
2020/05/18 09:03:01 +01:00 Sync of channel completed in 0:00:12.

I've tried excluding the offending package, but it still won't sync:

2020/05/18 10:50:23 +01:00 Command: ['/usr/bin/spacewalk-repo-sync', '--channel', 'elasticsearch', '--type', 'yum']  
2020/05/18 10:50:23 +01:00 Sync of channel started.  
2020/05/18 10:50:24 +01:00  
2020/05/18 10:50:24 +01:00 Processing repository with URL: [https://artifacts.elastic.co/packages/7.x/yum](https://artifacts.elastic.co/packages/7.x/yum)  
2020/05/18 10:50:34 +01:00 Packages in repo: 334  
2020/05/18 10:50:34 +01:00 Packages passed filter rules: 333  
2020/05/18 10:50:35 +01:00 No new packages to sync.  
2020/05/18 10:50:35 +01:00  
2020/05/18 10:50:35 +01:00 Errata in repo: 0.

Any help would be appreciated.  
Many thanks

---

<div class="post-metadata">

**Author:** ![babelr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/babelr/32/24982_2.png) [@babelr](https://discuss.elastic.co/u/babelr)\
**Post date:** [May 19, 2020, 7:02am UTC](https://discuss.elastic.co/t/unable-to-sync-repo-in-red-hat-satellite/233092/2 "2020-05-19T07:02:36Z")

</div>

> [@Morrisong](#):
>
> aarch64

Hi,  
I had the exact same problem, but I managed to solve it by using the filter feature of the repository definition on spacewalk. I used the term **-\*.aarch64**

**Prior to using the filter my log looked like this:**  
2020/05/19 05:00:19 +02:00 Command: ['/usr/bin/spacewalk-repo-sync', '--channel', 'centos7\_es-7x', '--type', 'yum']  
2020/05/19 05:00:19 +02:00 Sync of channel started.  
2020/05/19 05:00:20 +02:00  
2020/05/19 05:00:20 +02:00 Processing repository with URL: [http://artifacts.elastic.co/packages/7.x/yum](http://artifacts.elastic.co/packages/7.x/yum)  
2020/05/19 05:00:20 +02:00 Packages in repo: 334  
2020/05/19 05:00:21 +02:00 Packages already synced: 315  
2020/05/19 05:00:21 +02:00 Packages to sync: 19  
2020/05/19 05:00:21 +02:00 New packages to download: 0  
2020/05/19 05:00:21 +02:00 Downloading packages:  
2020/05/19 05:00:21 +02:00 Importing packages started.  
2020/05/19 05:00:21 +02:00  
2020/05/19 05:00:21 +02:00 Importing packages to DB:  
2020/05/19 05:00:21 +02:00 Importing packages finished.  
2020/05/19 05:00:21 +02:00  
2020/05/19 05:00:21 +02:00 Linking packages to the channel.  
2020/05/19 05:00:21 +02:00 ERROR: Package arch aarch64 incompatible with channel centos7\_es-7x  
2020/05/19 05:00:21 +02:00 ERROR: Package arch aarch64 incompatible with channel centos7\_es-7x  
2020/05/19 05:00:24 +02:00 Sync of channel completed in 0:00:04.

**After using the filter:**  
2020/05/19 08:49:52 +02:00 Command: ['/usr/bin/spacewalk-repo-sync', '--channel', 'centos7\_es-7x', '--type', 'yum']  
2020/05/19 08:49:52 +02:00 Sync of channel started.  
2020/05/19 08:49:52 +02:00  
2020/05/19 08:49:52 +02:00 Processing repository with URL: [http://artifacts.elastic.co/packages/7.x/yum](http://artifacts.elastic.co/packages/7.x/yum)  
2020/05/19 08:49:54 +02:00 Packages in repo: 334  
2020/05/19 08:49:54 +02:00 Packages passed filter rules: 333  
2020/05/19 08:49:55 +02:00 Packages already synced: 315  
2020/05/19 08:49:55 +02:00 Packages to sync: 18  
2020/05/19 08:49:55 +02:00 New packages to download: 0  
2020/05/19 08:49:55 +02:00 Downloading packages:  
2020/05/19 08:49:55 +02:00 Importing packages started.  
2020/05/19 08:49:55 +02:00  
2020/05/19 08:49:55 +02:00 Importing packages to DB:  
2020/05/19 08:49:55 +02:00 Importing packages finished.  
2020/05/19 08:49:55 +02:00  
2020/05/19 08:49:55 +02:00 Linking packages to the channel.  
2020/05/19 08:49:56 +02:00  
2020/05/19 08:49:56 +02:00 Errata in repo: 0.  
2020/05/19 08:49:59 +02:00 Sync of channel completed in 0:00:06.

It seems your filter settings didn't work.

---

<div class="post-metadata">

**Author:** ![Morrisong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/morrisong/32/68617_2.png) [@Morrisong](https://discuss.elastic.co/u/Morrisong)\
**Post date:** [May 19, 2020, 8:40am UTC](https://discuss.elastic.co/t/unable-to-sync-repo-in-red-hat-satellite/233092/3 "2020-05-19T08:40:52Z")

</div>

Hi Babelr,  
Thanks, but unfortunately that didn't work:

The empty list below is filtered.  
Clear filter to see all 334 items.  
-\*.aarch64  
Package Summary Content Provider  
No packages found for this criteria.

Filtering for \*.aarch64 also returns no packages.  
Filtering for .aarch64 returns just the one package (as expected).  
Filtering for -.aarch64 returns no packages.

In fact, filtering for "-" followed by anything returns no packages. ☹

---

<div class="post-metadata">

**Author:** ![Morrisong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/morrisong/32/68617_2.png) [@Morrisong](https://discuss.elastic.co/u/Morrisong)\
**Post date:** [May 20, 2020, 7:54am UTC](https://discuss.elastic.co/t/unable-to-sync-repo-in-red-hat-satellite/233092/4 "2020-05-20T07:54:47Z")

</div>

After going through it all again I don't know how many times, I found another place to put the filter: under "Manage repositories".  
Putting the filter there (instead of on the package selection page) worked.  
Many thanks to Babelr

---

<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:** [June 17, 2020, 8:04am UTC](https://discuss.elastic.co/t/unable-to-sync-repo-in-red-hat-satellite/233092/5 "2020-06-17T08:04:31Z")

</div>

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