Unable to sync repo in Red Hat Satellite

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 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
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
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

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
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
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.

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. :frowning:

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

1 Like

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