{"id":107,"date":"2015-01-06T14:08:03","date_gmt":"2015-01-06T13:08:03","guid":{"rendered":"http:\/\/jv-coder.de\/wordpress\/?p=107"},"modified":"2017-01-02T14:26:17","modified_gmt":"2017-01-02T13:26:17","slug":"problems-with-automatic-spamassassin-rule-update-sa-update","status":"publish","type":"post","link":"https:\/\/jv-coder.de\/wordpress\/problems-with-automatic-spamassassin-rule-update-sa-update\/","title":{"rendered":"Problems with automatic SpamAssassin rule update (sa-update)"},"content":{"rendered":"<p style=\"text-align: justify;\">After updateing my Gentoo box after a long time with no updates, everything was running fine until the next morning, when my SpamAsassin rule update cronjob was executed. This job essentially executes <span class=\"lang:sh decode:true  crayon-inline\">sa-update &amp;&amp; \/etc\/init.d\/spamd\u00a0reload<\/span>\u00a0.<\/p>\n<p style=\"text-align: justify;\">The message was something like this:<\/p>\n<pre class=\"lang:c++ highlight:0 decode:true\">http: GET http:\/\/spamassassin.apache.org\/updates\/MIRRORED.BY request failed: 501 Attempt to reload LWP\/Protocol\/http.pm aborted.\r\nCompilation failed in require: 501 Attempt to reload LWP\/Protocol\/http.pm aborted. Compilation failed in require\r\nerror: no mirror data available for channel updates.spamassassin.org \r\nchannel: MIRRORED.BY contents were missing, channel failed<\/pre>\n<p style=\"text-align: justify;\">At first glance this looks like a problem with the given URL, but wget was able to download the file just fine. So I took a closer look at the message and noticed, that the problem came from http.pm, a Perl module.<\/p>\n<p style=\"text-align: justify;\">Perl was probably updated during during my last emerge world, so I expected a broken package. I took a list at the installed perl packages (<span class=\"trim-code-tag:false mixed:false lang:c++ highlight:0 decode:true crayon-inline \">eix -I perl<\/span>\u00a0 is very helpful) and reemerged the one I thought was interesting (dev-perl\/libwww-perl). But that did not help as well.<\/p>\n<p style=\"text-align: justify;\">I then stumbled across the tool <span class=\"lang:c++ highlight:0 decode:true  crayon-inline\">perl-cleaner<\/span>, that can be used to rebuild packages for old versions of perl, that are broken. After calling <span class=\"lang:c++ highlight:0 decode:true  crayon-inline \">perl-cleaner modules<\/span> sa-update was running fine again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After updateing my Gentoo box after a long time with no updates, everything was running fine until the next morning, when my SpamAsassin rule update cronjob was executed. This job essentially executes sa-update &amp;&amp; \/etc\/init.d\/spamd\u00a0reload\u00a0. The message was something like &hellip; <a href=\"https:\/\/jv-coder.de\/wordpress\/problems-with-automatic-spamassassin-rule-update-sa-update\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,16],"tags":[17,25,23,24],"_links":{"self":[{"href":"https:\/\/jv-coder.de\/wordpress\/wp-json\/wp\/v2\/posts\/107"}],"collection":[{"href":"https:\/\/jv-coder.de\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jv-coder.de\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jv-coder.de\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jv-coder.de\/wordpress\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":4,"href":"https:\/\/jv-coder.de\/wordpress\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/jv-coder.de\/wordpress\/wp-json\/wp\/v2\/posts\/107\/revisions\/122"}],"wp:attachment":[{"href":"https:\/\/jv-coder.de\/wordpress\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jv-coder.de\/wordpress\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jv-coder.de\/wordpress\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}