Closed meliux closed 8 years ago
Well, it means the errata is not providing the OS version in the title, and the title parsing totally failed. Could you find out the relevant errata? I added an extra debug statement on the github version, so download and re-execute your import (with debug activated).
awesome, thanks for that... think I found the culprit.
...
DEBUG: Multiple archive: /tmp/centos-errata/160858.html
DEBUG: Parsing errata CEBA-2016:C002 pcs Update
Use of uninitialized value $os_release in pattern match (m//) at /sbin/ya-errata-import-debug.pl line 433.
Use of uninitialized value $os_release in numeric ne (!=) at /sbin/ya-errata-import-debug.pl line 444.
DEBUG: Parsing errata CEBA-2016:1658 CentOS 5 cman BugFix Update
DEBUG: Parsing errata CEBA-2016:1665 CentOS 6 pcs BugFix Update
DEBUG: Parsing errata CEBA-2016:1659 CentOS 6 udev BugFix Update
DEBUG: Parsing errata CEBA-2016:1663 CentOS 6 avahi BugFix Update
DEBUG: Parsing errata CEBA-2016:1667 CentOS 6 cronie BugFix Update
DEBUG: Parsing errata CEBA-2016:1670 CentOS 6 lvm2 BugFix Update
DEBUG: Parsing errata CEBA-2016:1668 CentOS 6 net-snmp BugFix Update
DEBUG: Parsing errata CEBA-2016:1662 CentOS 6 pacemaker BugFix Update
DEBUG: Parsing errata CEBA-2016:1661 CentOS 6 pki-core BugFix Update
DEBUG: Parsing errata CEBA-2016:1669 CentOS 6 samba BugFix Update
DEBUG: Parsing errata CEBA-2016:1666 CentOS 6 tcsh BugFix Update
DEBUG: Parsing errata CESA-2016:1664 Important CentOS 6 kernel Security Update
...
https://lists.centos.org/pipermail/centos/2016-August/160858.html
I have nfi why the OS was omitted from that particular email subject line. The email body (https://lists.centos.org/pipermail/centos-announce/2016-August/022041.html) relates to centos 7. Why would Johnny Hughes omit the OS? Does he do these by hand?
Obviously the problem will go away in a few days once the new month rolls over, but i'm wondering if there's a better fix considering the issue will still be encountered whenever anyone does a full errata import.
edit: updated url to centos-announce item
Just commited a fix, try again :-)
Nice, I see what you're trying to do! If i was a real coder i could help fix this, but alas..:
Argument "" isn't numeric in numeric ne (!=) at /sbin/ya-errata-import.pl line 444.
I am now getting "Argument "" isn't numeric in numeric ne (!=) at /usr/local/admin/bin/ya-errata-import.pl line 444." as well.
Thanks for this script btw!!! We have been using it for years.
Yes, indeed ... I'm using strict perl and thus an empty string comparing with a number results in this. Let me try something different ...
Ok, try again now.
excellent, that looks to have solved it. Love your work!
Hi, Last week some time my nightly run of the ya-errata.import.pl has started throwing two errors. I'm not entirely sure if these are causing any problems as it seems new errata is successfully being loaded into spacewalk, but it seems odd that this error has suddenly started appearing... other than a reboot, there haven't been any changes to this server setup that I'm aware of.
System info: spacewalk 2.4 ya-errata-import.pl 20160401 centos-clone-errata.sh Dec 2015 centos 6.8 2.6.32-642.3.1.el6.x86_64 tomcat 6.0.24-95 java 1.6.0_40
Output from calling the import script manually without --quiet:
Any help would be appreciated!