我正在使用 Spacewalk 2.6,并希望将我的自定义存储库与 Spacewalk 同步。我使用 Pulp 来管理这个存储库,它运行良好。甚至可以在我的自定义存储库中找到新的软件包。
此存储库中目前有 416 个包。
当我使用 spacewalk-repo-sync -c "CHANNEL" 时,它会告诉我 repo 中的软件包:411 和“现在要同步的新软件包”。
是否存在任何机制可以阻止 repo-sync 从存储库获取更新的信息?
答案1
解决方案是清理 HTTP 代理服务器上的缓存:
rm -Rf /var/cache/rhn/*
然后尝试再次使用 spacewalk-repo-sync 命令同步 repo。
答案2
我认为虽然 repo-sync spacewalk 无法获取有新软件包的信息。Spacewalk 可能会将这些信息缓存在某处,并在一段时间后自行更新。我也尝试过其他存储库,但结果总是一样。我还有一个旧的 Spacewalk 系统,它运行良好,没有这个问题。
无论如何,这是我的配置文件 /etc/rhn/rhn.conf:
traceback_mail = [email protected]
mount_point = /var/satellite
kickstart_mount_point = /var/satellite
repomd_cache_mount_point = /var/cache
server.satellite.rhn_parent = satellite.rhn.redhat.com
# Use proxy FQDN, or FQDN:port
server.satellite.http_proxy =
server.satellite.http_proxy_username =
server.satellite.http_proxy_password =
server.satellite.ca_chain = /usr/share/rhn/RHNS-CA-CERT
# Completely disable ISS.
# If set to 1, then no slave will be able to sync from this server
# this option does not affect ability to sync to this server from
# another spacewalk (or hosted).
disable_iss=0
db_backend = postgresql
db_user = rhnuser
db_password = rhnpw
db_name = rhnschema
db_host =
db_port =
db_ssl_enabled =
server.nls_lang = english.UTF8
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.driver_class=org.postgresql.Driver
hibernate.connection.driver_proto=jdbc:postgresql
web.satellite = 1
web.satellite_install =
web.session_swap_secret_1 = 91f0c661b2d42f88b27b051132686ecf689c197a8f866bb4effcd8b8a3620953
web.session_swap_secret_2 = 6d8d4a0aad93707a88c5de0b3d11c464f683397bace2435b578cacfdfedfc229
web.session_swap_secret_3 = 9eff8debd4f282f06d0a2f9520f7cbc848353e3c1a7a00d87c04a5a3eeb10eaf
web.session_swap_secret_4 = fc0b5bc50a591fc54a1c804f32aadd0e752edcbe36e5dd99ff859e6b30346a37
session_secret_1 = 3b2e2274dea4038c01df37fd7591f92406054c3b602176c8670b6f52ba6c0196
session_secret_2 = 670feb4501a7f05e3b92fbdfd72237293d85c2ae593d0dfa42cdbdfd52af6d12
session_secret_3 = 11efbb28f34eddcb6ed2e317e6108c920bf5f27d735d13dd84eb22fb74e9cf03
session_secret_4 = e34e09475a4e6794b390cec092287ba8f744f456b73e3f552d85e1b825c479a0
server.secret_key = f9171918471dfe770e5ce3296d5132d6a3cd89b66fb3b09016d28d349668dfb0
encrypted_passwords = 1
web.restrict_mail_domains =
web.ssl_available = 1
# OSA configuration #
server.jabber_server = spacewalk.domain.com
osa-dispatcher.jabber_server = spacewalk.domain.com
# set up SSL on the dispatcher
osa-dispatcher.osa_ssl_cert = /var/www/html/pub/RHN-ORG-TRUSTED-SSL-CERT
# system snapshots enabled
enable_snapshots = 1
#cobbler host name
cobbler.host = spacewalk.domain.com
osa-dispatcher.debug = 5