PDA

View Full Version : mgr-inter-sync errors



bylokk
13-Feb-2019, 13:39
Hi,

in our master-slave setup, syncing channels fails for some channels with the following error:



+++ sending log as an email +++

SYNC ERROR: unhandled exception occurred:

(Check logs/email for potentially more detail)

EOFError()


After removing /var/cache/rhn/satsync/* it succeeds.
Case closed ? Saldy no.
Now other channels (that did work before) fail with the following error:



Importing: +++ sending log as an email +++

SYNC ERROR: unhandled exception occurred:

(Check logs/email for potentially more detail)

UnicodeDecodeError('ascii', 'ERROR: Encountered IntegrityError: \nFEHLER: doppelter Schl\xc3\xbcsselwert verletzt Unique-Constraint \xc2\xbbrhn_package_id_pk\xc2\xab\nDETAIL: Schl\xc3\xbcssel \xc2\xbb(id)=(36931)\xc2\xab existiert bereits.\n\nconsider removing satellite-sync cache at /var/cache/rhn/satsync/* and re-run satellite-sync with same options.\nIf this error persits after removing cache, please contact Red Hat support.', 59, 60, 'ordinal not in range(128)')
'ascii' codec can't decode byte 0xc3 in position 59: ordinal not in range(128)



It does not help to remove /var/cache/rhn/satsync/* again
The error message is partly in german. It says: Duplicate key word violates Unique-Constraint rhn_package_id. Key (id)=(36931) already exists.

Automatic Reply
18-Feb-2019, 06:31
bylokk,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue
is urgent or not getting a response, you might try one of the following options:

- Visit http://www.suse.com/support and search the knowledgebase and/or check all
the other support options available.
- Open a service request: https://www.suse.com/support
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.suse.com)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.suse.com/faq.php

If this is a reply to a duplicate posting or otherwise posted in error, please
ignore and accept our apologies and rest assured we will issue a stern reprimand
to our posting bot..

Good luck!

Your SUSE Forums Team
http://forums.suse.com

bylokk
18-Feb-2019, 09:54
after playing around with deleting channels and satsync cache I was able to sync all custom and suse channels! :)
That worked for about 3 days (1 complete sync for all channels per day).
Now it stopped working again.

I get this error on custom channels:


+++ sending log as an email +++

SYNC ERROR:

(Check logs/email for potentially more detail)

RhnSyncException('\nError Message:\n The requested channel version does not match the upstream version\nError Class Code: 3013\nError Class Info: Invalid channel version\n',)

Error Message:
The requested channel version does not match the upstream version
Error Class Code: 3013
Error Class Info: Invalid channel version



and this error on suse channels:


2019-02-18 05:10:57,185 [DefaultQuartzScheduler_Worker-15] ERROR com.redhat.rhn.taskomatic.task.MgrSyncRefresh - Executing a task threw an exception: org.quartz.JobExecutionException
2019-02-18 05:10:57,185 [DefaultQuartzScheduler_Worker-15] ERROR com.redhat.rhn.taskomatic.task.MgrSyncRefresh - Message: Command '[/usr/bin/mgr-inter-sync]' exited with error code 137
2019-02-18 05:10:57,185 [DefaultQuartzScheduler_Worker-15] ERROR com.redhat.rhn.taskomatic.task.MgrSyncRefresh - Cause: null
2019-02-18 05:10:57,185 [DefaultQuartzScheduler_Worker-15] ERROR com.redhat.rhn.taskomatic.task.MgrSyncRefresh - Stack trace:org.quartz.JobExecutionException: Command '[/usr/bin/mgr-inter-sync]' exited with error code 137
at com.redhat.rhn.taskomatic.task.RhnJavaJob.executeE xtCmd(RhnJavaJob.java:111)
at com.redhat.rhn.taskomatic.task.MgrSyncRefresh.exec ute(MgrSyncRefresh.java:80)
at com.redhat.rhn.taskomatic.task.RhnJavaJob.execute( RhnJavaJob.java:88)
at com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJo b.java:199)
at org.quartz.core.JobRunShell.run(JobRunShell.java:2 16)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run (SimpleThreadPool.java:549)


it's so annoyingly unstabel ...

jmozdzen
20-Feb-2019, 14:45
Hi bylokk,

sorry to hear you're facing so much trouble.

IIRC the SUSE Manager license includes support per default. Your best approach therefore might be to open a service request and have SUSE Support have a closer look at this.

Regards,
J

jmozdzen
20-Feb-2019, 15:04
Hi bylokk,

in case you're not going the "service request" route:

which version of SUSE Manager are you running on master and slave? Are both at the same level? Are you already on 3.2.4?

Having had a look at the Spacewalk code available on the net, I see that "The requested channel version does not match the upstream version" is the result of channel time stamp mismatches (last_modified != db_last_modified). I have not checked if these time stamps are dependent on the local clock of the satellite (I don't believe they are), but could you please check that the system times are in sync, for good measure?

If you set debug to at least level three, you should find information on the time stamps found in the debug log. Maybe that gives a hint on the root cause.

Regards,
Jens

bylokk
22-Feb-2019, 18:13
thank you for your advice!
Opening a service request is still a viable option, and makes totally sense!
In posting my problem here I had the idea of getting quick advice like yours. Thanks again.
In fact I just saw ntp daemon is not running, although time is running correctly here, but you never know ...

I'm still looking into that problem, but it's confusing ... cause today all channels synced successfully ... whereas yesterday there were many errors ...
If those errors pop up again then I will open an SR!