Spacewalk: nem működik a tárolók szinkronizálása

Spacewalk logó
Probléma: Nem tud a Spacewalk/Redhat Satellite 5 tárolót szinkronizálni (pedig régebben ment). Hibaüzenet a WebUI-on nincs. A /var/log/rhn/rhn_taskomatic_daemon.log pedig a következőket tartalmazza:

STATUS | wrapper | 2019/09/16 13:56:22 | --> Wrapper Started as Daemon
STATUS | wrapper | 2019/09/16 13:56:22 | Launching a JVM...
INFO | jvm 1 | 2019/09/16 13:56:24 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
INFO | jvm 1 | 2019/09/16 13:56:24 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
INFO | jvm 1 | 2019/09/16 13:56:24 |
INFO | jvm 1 | 2019/09/16 13:56:33 | 2019-09-16 13:56:33,353 [Thread-41] WARN net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/usr/share/java/ehcache-core.jar!/ehcache-failsafe.xml
INFO | jvm 1 | 2019/09/16 13:56:41 | 2019-09-16 13:56:41,071 [DefaultQuartzScheduler_Worker-4] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask - Executing a task threw an exception: org.quartz.JobExecutionException
INFO | jvm 1 | 2019/09/16 13:56:41 | 2019-09-16 13:56:41,072 [DefaultQuartzScheduler_Worker-4] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask - Message: No such channel with channel_id 106
INFO | jvm 1 | 2019/09/16 13:56:41 | 2019-09-16 13:56:41,072 [DefaultQuartzScheduler_Worker-4] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask - Cause: null
INFO | jvm 1 | 2019/09/16 13:56:41 | 2019-09-16 13:56:41,073 [DefaultQuartzScheduler_Worker-4] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask - Stack trace:org.quartz.JobExecutionException: No such channel with channel_id 106
INFO | jvm 1 | 2019/09/16 13:56:41 | at com.redhat.rhn.taskomatic.task.RepoSyncTask.execute(RepoSyncTask.java:67)
INFO | jvm 1 | 2019/09/16 13:56:41 | at com.redhat.rhn.taskomatic.task.RhnJavaJob.execute(RhnJavaJob.java:88)
INFO | jvm 1 | 2019/09/16 13:56:41 | at com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:186)
INFO | jvm 1 | 2019/09/16 13:56:41 | at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
INFO | jvm 1 | 2019/09/16 13:56:41 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
INFO | jvm 1 | 2019/09/16 13:56:41 |
INFO | jvm 1 | 2019/09/16 13:56:42 | 2019-09-16 13:56:42,267 [DefaultQuartzScheduler_Worker-9] INFO com.redhat.rhn.taskomatic.task.ChannelRepodata - In the queue: 2
INFO | jvm 1 | 2019/09/16 13:56:43 | 2019-09-16 13:56:42,836 [DefaultQuartzScheduler_Worker-2] INFO com.redhat.rhn.taskomatic.task.ErrataCacheTask - In the queue: 1
INFO | jvm 1 | 2019/09/16 13:56:43 | 2019-09-16 13:56:42,863 [Thread-41] WARN com.redhat.rhn.taskomatic.core.SchedulerKernel - Number of interrupted runs: 6
INFO | jvm 1 | 2019/09/16 13:56:43 | 2019-09-16 13:56:42,984 [Thread-52] INFO com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Removing epel-stable-x86_64
INFO | jvm 1 | 2019/09/16 13:56:43 | 2019-09-16 13:56:43,007 [Thread-53] INFO com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - File Modified Date:1970-01-01 01:00:00 CET
INFO | jvm 1 | 2019/09/16 13:56:43 | 2019-09-16 13:56:43,057 [Thread-53] INFO com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Channel Modified Date:2019-09-16 13:47:24 CEST
INFO | jvm 1 | 2019/09/16 13:56:43 | 2019-09-16 13:56:43,274 [Thread-53] INFO com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Generating new repository metadata for channel 'stable'(sha1) 0 packages, 0 errata
INFO | jvm 1 | 2019/09/16 13:56:43 | 2019-09-16 13:56:43,287 [DefaultQuartzScheduler_Worker-4] WARN com.redhat.rhn.common.messaging.SmtpMail - MessagingException while trying to send email: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
INFO | jvm 1 | 2019/09/16 13:56:43 | nested exception is:
INFO | jvm 1 | 2019/09/16 13:56:43 | java.net.ConnectException: Connection refused (Connection refused)
INFO | jvm 1 | 2019/09/16 13:56:43 | 2019-09-16 13:56:43,292 [DefaultQuartzScheduler_Worker-4] ERROR org.quartz.core.JobRunShell - Job 1.single-repo-sync-bunch-16 threw an unhandled Exception:
INFO | jvm 1 | 2019/09/16 13:56:43 | com.redhat.rhn.common.messaging.JavaMailException: MessagingException while trying to send email: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
INFO | jvm 1 | 2019/09/16 13:56:43 | nested exception is:
INFO | jvm 1 | 2019/09/16 13:56:43 | java.net.ConnectException: Connection refused (Connection refused)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.redhat.rhn.common.messaging.SmtpMail.send(SmtpMail.java:145)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.redhat.rhn.taskomatic.task.TaskHelper.sendMail(TaskHelper.java:168)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.redhat.rhn.taskomatic.task.TaskHelper.sendTaskoEmail(TaskHelper.java:124)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:221)
INFO | jvm 1 | 2019/09/16 13:56:43 | at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
INFO | jvm 1 | 2019/09/16 13:56:43 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
INFO | jvm 1 | 2019/09/16 13:56:43 | Caused by: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
INFO | jvm 1 | 2019/09/16 13:56:43 | nested exception is:
INFO | jvm 1 | 2019/09/16 13:56:43 | java.net.ConnectException: Connection refused (Connection refused)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1962)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
INFO | jvm 1 | 2019/09/16 13:56:43 | at javax.mail.Service.connect(Service.java:295)
INFO | jvm 1 | 2019/09/16 13:56:43 | at javax.mail.Service.connect(Service.java:176)
INFO | jvm 1 | 2019/09/16 13:56:43 | at javax.mail.Service.connect(Service.java:125)
INFO | jvm 1 | 2019/09/16 13:56:43 | at javax.mail.Transport.send0(Transport.java:194)
INFO | jvm 1 | 2019/09/16 13:56:43 | at javax.mail.Transport.send(Transport.java:124)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.redhat.rhn.common.messaging.SmtpMail.send(SmtpMail.java:139)
INFO | jvm 1 | 2019/09/16 13:56:43 | ... 5 more
INFO | jvm 1 | 2019/09/16 13:56:43 | Caused by: java.net.ConnectException: Connection refused (Connection refused)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.PlainSocketImpl.socketConnect(Native Method)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.Socket.connect(Socket.java:589)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.Socket.connect(Socket.java:538)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:321)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:237)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1928)
INFO | jvm 1 | 2019/09/16 13:56:43 | ... 12 more
INFO | jvm 1 | 2019/09/16 13:56:43 | 2019-09-16 13:56:43,294 [DefaultQuartzScheduler_Worker-4] ERROR org.quartz.core.ErrorLogger - Job (1.single-repo-sync-bunch-16 threw an exception.
INFO | jvm 1 | 2019/09/16 13:56:43 | org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: com.redhat.rhn.common.messaging.JavaMailException: MessagingException while trying to send email: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
INFO | jvm 1 | 2019/09/16 13:56:43 | nested exception is:
INFO | jvm 1 | 2019/09/16 13:56:43 | java.net.ConnectException: Connection refused (Connection refused)]
INFO | jvm 1 | 2019/09/16 13:56:43 | at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
INFO | jvm 1 | 2019/09/16 13:56:43 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
INFO | jvm 1 | 2019/09/16 13:56:43 | Caused by: com.redhat.rhn.common.messaging.JavaMailException: MessagingException while trying to send email: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
INFO | jvm 1 | 2019/09/16 13:56:43 | nested exception is:
INFO | jvm 1 | 2019/09/16 13:56:43 | java.net.ConnectException: Connection refused (Connection refused)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.redhat.rhn.common.messaging.SmtpMail.send(SmtpMail.java:145)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.redhat.rhn.taskomatic.task.TaskHelper.sendMail(TaskHelper.java:168)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.redhat.rhn.taskomatic.task.TaskHelper.sendTaskoEmail(TaskHelper.java:124)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:221)
INFO | jvm 1 | 2019/09/16 13:56:43 | at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
INFO | jvm 1 | 2019/09/16 13:56:43 | ... 1 more
INFO | jvm 1 | 2019/09/16 13:56:43 | Caused by: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
INFO | jvm 1 | 2019/09/16 13:56:43 | nested exception is:
INFO | jvm 1 | 2019/09/16 13:56:43 | java.net.ConnectException: Connection refused (Connection refused)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1962)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
INFO | jvm 1 | 2019/09/16 13:56:43 | at javax.mail.Service.connect(Service.java:295)
INFO | jvm 1 | 2019/09/16 13:56:43 | at javax.mail.Service.connect(Service.java:176)
INFO | jvm 1 | 2019/09/16 13:56:43 | at javax.mail.Service.connect(Service.java:125)
INFO | jvm 1 | 2019/09/16 13:56:43 | at javax.mail.Transport.send0(Transport.java:194)
INFO | jvm 1 | 2019/09/16 13:56:43 | at javax.mail.Transport.send(Transport.java:124)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.redhat.rhn.common.messaging.SmtpMail.send(SmtpMail.java:139)
INFO | jvm 1 | 2019/09/16 13:56:43 | ... 5 more
INFO | jvm 1 | 2019/09/16 13:56:43 | Caused by: java.net.ConnectException: Connection refused (Connection refused)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.PlainSocketImpl.socketConnect(Native Method)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.Socket.connect(Socket.java:589)
INFO | jvm 1 | 2019/09/16 13:56:43 | at java.net.Socket.connect(Socket.java:538)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:321)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:237)
INFO | jvm 1 | 2019/09/16 13:56:43 | at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1928)
INFO | jvm 1 | 2019/09/16 13:56:43 | ... 12 more
INFO | jvm 1 | 2019/09/16 13:56:43 | 2019-09-16 13:56:43,423 [Thread-53] INFO com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Repository metadata generation for 'stable' finished in 0 seconds
INFO | jvm 1 | 2019/09/16 14:06:00 | 2019-09-16 14:06:00,121 [DefaultQuartzScheduler_Worker-3] INFO com.redhat.rhn.taskomatic.task.ErrataCacheTask - In the queue: 1
STATUS | wrapper | 2019/09/16 14:42:12 | TERM trapped. Shutting down.
STATUS | wrapper | 2019/09/16 14:42:13 | Wrapper Started as Daemon
STATUS | wrapper | 2019/09/16 14:42:42 | Launching a JVM...
INFO | jvm 1 | 2019/09/16 14:42:43 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
INFO | jvm 1 | 2019/09/16 14:42:43 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
INFO | jvm 1 | 2019/09/16 14:42:43 |
INFO | jvm 1 | 2019/09/16 14:42:51 | 2019-09-16 14:42:51,762 [Thread-41] WARN net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/usr/share/java/ehcache-core.jar!/ehcache-failsafe.xml
INFO | jvm 1 | 2019/09/16 14:44:20 | 2019-09-16 14:44:20,698 [DefaultQuartzScheduler_Worker-9] INFO com.redhat.rhn.taskomatic.task.RepoSyncTask - Syncing repos for channel: Stable

Megoldás: Amennyiben a Spacewalk nem szinkronizál és a WebUI-on hibaüzenetet sem dob, akkor ellenőrizd, hogy tud-e levelet küldeni. A fenti üzenet szerint nem tud csatlakozni az SMTP szerverhez (ami igaz is). Ez viszont egy olyan kivételt generál, ami nincs rendesen elkapva, így maga a szinkronizációs folyamat is elakad.

  1. Ellenőrizd, hogy az Admin -> Spacewalk Configuration -> Generic alatt jó e-mail cím van-e megadva.
  2. Állítsd be az SMTP szerver címét a /etc/rhn/rhn.conf-ban:
    web.smtp_server=smtp.szerver.cime
  3. Állítsd be ugyanezt a /usr/share/rhn/config-defaults/rhn_java.conf-ban is:
    java.smtp_server = smtp.szerver.cime
  4. Indítsd újra a Spacewalk-ot:
    /usr/sbin/spacewalk-service restart