[Spacewalk-list] SOLVED Re: taskomatic scheduled task 'cobbler-sync-default' throwing exception every minute
Scott Worthington
scott.c.worthington at gmail.com
Thu Jan 5 16:33:45 UTC 2012
On 1/5/2012 11:12 AM, Scott Worthington wrote:
> On Thursday, January 05, 2012 9:00:01 AM, Scott Worthington wrote:
>
> <snip>
>
>> Every minute, I am seeing errors being logged into
>> /var/log/rhn/rhn_taskomatic_daemon.log:
>>
>> INFO | jvm 1 | 2012/01/05 08:30:00 | 2012-01-05 08:30:00,185 [DefaultQuartzScheduler_Worker-10] ERROR com.redhat.rhn.taskomatic.task.CobblerSyncTask - RuntimeExceptioneError trying to sync to cobbler: No row with the given identifier exists: [com.redhat.rhn.domain.kickstart.KickstartableTree#6]
>> INFO | jvm 1 | 2012/01/05 08:30:00 | org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.redhat.rhn.domain.kickstart.KickstartableTree#6]
>
> <snip>
>
>> I see that cobbler-sync-default is scheduled in the postgresql
>> taskomatic table 'rhntaskoschedule' with the entry '0 * * * * ?'
>>
>> Which postgresql table should I check to find the entry for the
>> 'KickstartableTree' that does not physically exist?
>>
>> Is there a possible a row was not deleted from one of the
>> 'rhnkickstart*' databases?
>>
>> --ScottW
>
> I ran 'cobbler list' and I have 5 items, yet in the web GUI I have 3
> kickstartable distros listed.
>
> The additional items in the 'cobbler list' are distros that have *xen
> added to them.
>
> That is, in 'cobbler list' I get:
>
> distros:
> centos57-x86_64:1:SpacewalkDefaultOrganization
> centos57-x86_64_test-one:1:SpacewalkDefaultOrganization
> centos57-x86_64_test-onexen:1:SpacewalkDefaultOrganization
> centos57-x86_64xen:1:SpacewalkDefaultOrganization
> centos62-x86_64:1:SpacewalkDefaultOrganization
>
> But I only have "centos57-x86_64", "centos57-x86_64_test-one" and
> "centos62-x86_64" in the Spacewalk GUI.
>
> So I'm trying to find out if the error is actually about the fact that
> 'cobbler list' is returning 5 distros yet there
> are only 3 rows in the rhnKickstartableTree table (found in
> KickstartableTree.hbm.xml).
>
> Any insight would be helpful.
This issue has been solved.
Performing the following commands from the command line has stopped taskomatic CobblerDistroSyncCommand error found /var/log/rhn/rhn_taskomatic_daemon.log:
# cobbler distro remove --name centos57-x86_64_test-onexen:1:SpacewalkDefaultOrganization
# cobbler distro remove --name centos57-x86_64xen:1:SpacewalkDefaultOrganization
These cobbler distros were in cobbler (in the OS) but were not in the rhnKickstartableTree database table.
I do not know what generated these two *xen cobbler distros entries since I only use the web GUI.
I hope this helps someone else who may experience this type of error in the rhn_taskomatic_daemon.log file.
Best Regards,
Scott
More information about the Spacewalk-list
mailing list