Red Hat Bugzilla – Bug 1021558
Spacewalk fails to generate DEB repository error on "setBuildTime"
Last modified: 2014-07-17 04:40:45 EDT
Created attachment 814615 [details]
Description of problem:
After pushing a debian package:
Spacewalk fails to generate repository metadata and fails with error:
I have tried with several different packages, all with the same result..
I have seen this working in the previous version (1.9)...
Steps to Reproduce:
1. Create channel, debian based (IA32 Debian or AMD64 Debian)
2. Push package to created channel..
Error appears in /var/log/rhn/rhn_taskomatic_daemon.log
Channel Metadate should be created...
/var/log/rhn/rhn_taskomatic_daemon.log is attached...
Created attachment 831605 [details]
Solves problem, but maybe not the right way??
I have discovered that the reason for the failure is that the setBuildTime() function is called with an argument "buildTimeIn=NULL"..
The attached patch handles this exception, even though I'm not sure that's the right way to fix the problem..
Any comments on this patch???
Is it something we can get implemented???
I am running in the same problem.
I have created a rhn.jar with the patch applied and it works, but there is no date for last repo build and no information on repo cache status shown.
Perhaps this is the result from building the jar by unpacking, compiling the class file and repacking. But I have not got a good setup working.
Fixed in spacewalk master by
1021558 - if buildTime is null don't parse it
Spacewalk 2.2 has been released: