{"id":1236,"date":"2015-02-09T12:56:36","date_gmt":"2015-02-09T18:56:36","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=1236"},"modified":"2015-02-09T13:06:17","modified_gmt":"2015-02-09T19:06:17","slug":"rancid-ubuntu-14-04-lts","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2015\/02\/rancid-ubuntu-14-04-lts\/","title":{"rendered":"Rancid Ubuntu 14.04 LTS"},"content":{"rendered":"<p>Recently upgraded the Rancid server from 12.04.3 to 14.04 (and it started as 10.04 from <a href=\"http:\/\/it.thelibrarie.com\/weblog\/2011\/08\/rancid-ubuntu-10-04\/\" target=\"_blank\">my rancid on ubuntu 10 install page<\/a>).<\/p>\n<p>Not everything went flawlessly: the upgraded killed the configuration file that said drancid is to be used for my dell switches. Not a big deal, just calling it out. I just following my &#8220;drancid&#8221; post <a href=\"http:\/\/it.thelibrarie.com\/weblog\/2014\/02\/rancid-and-dell-switches\/\" target=\"_blank\">somewhere else on this blog<\/a>.<\/p>\n<p>Then I noticed that some of the switches were EOF prematurely; turned out it was due to the fact that the exec and login banners on these cisco devices had the character &#8220;#&#8221; in them and the new version of having an issue parsing those out. Another easy fix.<\/p>\n<p>Final problem was an error 500 on the web interface. In my brief research this was due to the fact that perl was upgraded to 5.18.x from 5.14.x<br \/>\nIt should be noted that I learned about the rmadison packagenamehere command (installed with devscripts) which was fairly helpful. It should also be noted that there was not a lot of information on this error which leads me to believe that not many are using rancid on a 14.x or above system.<\/p>\n<p>Troubleshooting this issue I ran (change depending on the user you&#8217;re running rancid under)<br \/>\n<code>sudo login -f root<\/code><br \/>\n<code>source \/etc\/rancid\/rancid.conf<\/code><br \/>\n<code>NOPIPE=yes;export NOPIPE<\/code><br \/>\n<code>rancid -d switchname<\/code><br \/>\n<code>nano *.new<\/code><br \/>\n<code>nano *.raw<\/code><br \/>\nThe full logs are the *.new and the *.raw files in the directory you ran the commands in.<\/p>\n<p>So someone (<a href=\"http:\/\/cvsweb.netbsd.org\/bsdweb.cgi\/pkgsrc\/www\/cvsweb\/patches\/patch-cvsweb.cgi.diff?r1=1.1.2.1&amp;r2=1.1.2.2&amp;f=h\" target=\"_blank\">a netbsd op<\/a>) pointed out that there is a fix for this issue. In my case I&#8217;m running debian\/ubuntu, so I actually found this article by <a href=\"https:\/\/bugs.debian.org\/cgi-bin\/bugreport.cgi?bug=733054\" target=\"_blank\">Mark Kamichoff<\/a>.<\/p>\n<p><code>nano \/usr\/lib\/cgi-bin\/cvsweb<\/code><br \/>\nI searched for &#8220;legend&#8221; to get to the following:<\/p>\n<blockquote>\n<pre class=\"message\"> &lt;legend&gt;General options&lt;\/legend&gt;\r\n &lt;input type=\"hidden\" name=\"copt\" value=\"1\" \/&gt;\r\n EOF\r\n-    for my $v qw(hidecvsroot hidenonreadable) {\r\n+    for my $v (qw(hidecvsroot hidenonreadable)) {\r\n       printf(qq{&lt;input type=\"hidden\" name=\"%s\" value=\"%s\" \/&gt;\\n},<\/pre>\n<\/blockquote>\n<p>Searched again for &#8220;mytz&#8221;:<\/p>\n<blockquote>\n<pre class=\"message\">   print '&lt;i&gt;';\r\n-  if (defined @mytz) {\r\n+  if (@mytz) {\r\n     my ($est) = $mytz[(localtime($date{$_}))[8]];\r\n     print scalar localtime($date{$_}), \" $est&lt;\/i&gt; (\";\r\n   } else {<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Recently upgraded the Rancid server from 12.04.3 to 14.04 (and it started as 10.04 from my rancid on ubuntu 10 install page). Not everything went flawlessly: the upgraded killed the configuration file that said drancid is to be used for my dell switches. Not a big deal, just calling it out. I just following my &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2015\/02\/rancid-ubuntu-14-04-lts\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Rancid Ubuntu 14.04 LTS<\/span> <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":[7],"tags":[],"class_list":["post-1236","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1236"}],"version-history":[{"count":7,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1236\/revisions"}],"predecessor-version":[{"id":1243,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1236\/revisions\/1243"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}