{"id":51,"date":"2016-08-01T11:12:26","date_gmt":"2016-08-01T15:12:26","guid":{"rendered":"http:\/\/huckleberry.mhu.edu\/randommusings\/?p=51"},"modified":"2016-08-01T11:15:10","modified_gmt":"2016-08-01T15:15:10","slug":"centos-7-and-clamav","status":"publish","type":"post","link":"https:\/\/huckleberry.mhu.edu\/randommusings\/index.php\/2016\/08\/01\/centos-7-and-clamav\/","title":{"rendered":"CentOS 7 and ClamAV"},"content":{"rendered":"<h2>The Musing<\/h2>\n<p>We use <a href=\"http:\/\/www.moodle.org\/\" target=\"_blank\">Moodle<\/a> at <a href=\"http:\/\/www.mhu.edu\/\" target=\"_blank\">Mars Hill<\/a> &#8211; at least three (3) different instances. One for our main <a href=\"http:\/\/moodle.mhu.edu\/\" target=\"_blank\">LMS<\/a>, one for <a href=\"http:\/\/moodle.mhu.edu\/timetracker\/\" target=\"_blank\">TimeTracker<\/a>, and one for <a href=\"http:\/\/my.mhu.edu\/\" target=\"_blank\">myMHU<\/a>, our campus intranet.<\/p>\n<p>This past weekend, I braved the frozen tundra of our server room to upgrade the OS on our campus intranet server to <a href=\"http:\/\/www.centos.org\/\" target=\"_blank\">CentOS<\/a> 7. Seriously, I needed a parka. At least it&#8217;s better than the days of our servers overheating and shutting down, due to inadequate cooling systems included in the plan for that room, but I digress.<\/p>\n<p>After getting everything up and running, I got an error notification that <a href=\"http:\/\/www.clamav.net\/\" target=\"_blank\">ClamAV<\/a> was failing to run properly. I had set it up and verified the paths in Moodle, but for some reason it was failing every time someone tried to upload a file.<\/p>\n<h2>The Fix<\/h2>\n<p>After lots of Googling, I figured I better document how I fixed this problem so that if (when?) I run into it again, I won&#8217;t be stumped.<\/p>\n<p>I found a <a href=\"https:\/\/moodle.org\/mod\/forum\/discuss.php?d=316066#p1277102\" target=\"_blank\">great guide posted by WebHep<\/a> &#8211; Diego something or other &#8211; on the Moodle forum. Unfortunately, I had done (most) of that already, and was still getting this error<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">ERROR: Could not lookup : Servname not supported for ai_socktype<\/pre>\n<p>when I tried to run clamdscan from the command line.<\/p>\n<p><a href=\"https:\/\/huckleberry.mhu.edu\/randommusings\/wp-content\/uploads\/2016\/08\/Screenshot-from-2016-08-01-11-02-06.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-52 size-full\" src=\"https:\/\/huckleberry.mhu.edu\/randommusings\/wp-content\/uploads\/2016\/08\/Screenshot-from-2016-08-01-11-02-06.png\" alt=\"clamdscan error\" width=\"658\" height=\"182\" srcset=\"https:\/\/huckleberry.mhu.edu\/randommusings\/wp-content\/uploads\/2016\/08\/Screenshot-from-2016-08-01-11-02-06.png 658w, https:\/\/huckleberry.mhu.edu\/randommusings\/wp-content\/uploads\/2016\/08\/Screenshot-from-2016-08-01-11-02-06-300x83.png 300w, https:\/\/huckleberry.mhu.edu\/randommusings\/wp-content\/uploads\/2016\/08\/Screenshot-from-2016-08-01-11-02-06-250x69.png 250w, https:\/\/huckleberry.mhu.edu\/randommusings\/wp-content\/uploads\/2016\/08\/Screenshot-from-2016-08-01-11-02-06-500x138.png 500w\" sizes=\"auto, (max-width: 658px) 100vw, 658px\" \/><\/a><\/p>\n<p>It turns out, I found the solution <a href=\"http:\/\/www.gossamer-threads.com\/lists\/spamassassin\/users\/196228?do=post_view_threaded#196228\" target=\"_blank\">posted deep in a clamd mailing list<\/a>. The directory where the socket lives needed different permissions, so a simple<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">chmod 755 \/var\/run\/clamd.scan\/<\/pre>\n<p>(seems to have ) fixed everything.<\/p>\n<p>Now, I just need to remember that I blogged about this issue when I upgrade the next server.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Musing We use Moodle at Mars Hill &#8211; at least three (3) different instances. One for our main LMS, one for TimeTracker, and one for myMHU, our campus intranet. This past weekend, I braved the frozen tundra of our server room to upgrade the OS on our campus intranet server to CentOS 7. Seriously, I needed a parka. At&hellip; <a href=\"https:\/\/huckleberry.mhu.edu\/randommusings\/index.php\/2016\/08\/01\/centos-7-and-clamav\/\">More &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,2],"tags":[],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-moodle","category-technology"],"_links":{"self":[{"href":"https:\/\/huckleberry.mhu.edu\/randommusings\/index.php\/wp-json\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/huckleberry.mhu.edu\/randommusings\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/huckleberry.mhu.edu\/randommusings\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/huckleberry.mhu.edu\/randommusings\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/huckleberry.mhu.edu\/randommusings\/index.php\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":5,"href":"https:\/\/huckleberry.mhu.edu\/randommusings\/index.php\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"predecessor-version":[{"id":57,"href":"https:\/\/huckleberry.mhu.edu\/randommusings\/index.php\/wp-json\/wp\/v2\/posts\/51\/revisions\/57"}],"wp:attachment":[{"href":"https:\/\/huckleberry.mhu.edu\/randommusings\/index.php\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huckleberry.mhu.edu\/randommusings\/index.php\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huckleberry.mhu.edu\/randommusings\/index.php\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}