Created attachment 814615 [details] rhn_taskomatic_daemon.log Description of problem: After pushing a debian package: http://nl.archive.ubuntu.com/ubuntu/pool/universe/j/joe/joe_3.7-2.3_amd64.deb Spacewalk fails to generate repository metadata and fails with error: com.redhat.rhn.frontend.dto.PackageDto.setBuildTime(PackageDto.java:279) I have tried with several different packages, all with the same result.. I have seen this working in the previous version (1.9)... How reproducible: Everytime Steps to Reproduce: 1. Create channel, debian based (IA32 Debian or AMD64 Debian) 2. Push package to created channel.. Actual results: Error appears in /var/log/rhn/rhn_taskomatic_daemon.log Expected results: Channel Metadate should be created... Additional info: /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 commit 47e451d0c39986766b63e29e56236df27aeb4b41 1021558 - if buildTime is null don't parse it
Spacewalk 2.2 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes22