<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>It's highly unlikely that this is your problem, but this command
      has a whole lot of extra shell startup redundancy in it:</p>
    <p><span style="font-family:"Times New Roman",serif"
        lang="EN-CA">“</span><span lang="EN-CA">sudo su -c
        /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid</span><span
        style="font-family:"Times New Roman",serif"
        lang="EN-CA">”</span></p>
    <p><span style="font-family:"Times New Roman",serif"
        lang="EN-CA">You can skip using sudo to call su, sudo can do
        that, and you don't need to call bash again either.<br>
      </span></p>
    <p><span style="font-family:"Times New Roman",serif"
        lang="EN-CA">This should do it for you:</span></p>
    <p><span style="font-family:"Times New Roman",serif"
        lang="EN-CA">sudo -u rancid -Hl </span><span lang="EN-CA"><span
          lang="EN-CA">/var/lib/rancid/bin/rancid-run</span></span></p>
    <p><span lang="EN-CA"><span lang="EN-CA"><br>
        </span></span></p>
    <br>
    <div class="moz-cite-prefix">On 3/22/2018 12:02 PM, Lauri Haveri
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:48979440b1ea4e72a583dd468f1c6f4a@alsocloudsolutions.fi">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:Consolas;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello again and thanks for the answers!<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">My device happens to be SRX100b and version
          of the Rancid is 3.3.<br>
          <br>
          I got from <span style="font-family:"Times New
            Roman",serif">“</span>apt-get install rancid cvs<span
            style="font-family:"Times New Roman",serif">”</span><o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span lang="EN-CA">Kind regards,<br>
            Lauri<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span
                lang="EN-US"> Emille Blanc
                <a class="moz-txt-link-rfc2396E" href="mailto:emille@abccommunications.com"><emille@abccommunications.com></a>
                <br>
                <b>Sent:</b> torstai 22. maaliskuuta 2018 2.13<br>
                <b>To:</b> Heasley <a class="moz-txt-link-rfc2396E" href="mailto:heas@shrubbery.net"><heas@shrubbery.net></a>; Lauri
                Haveri <a class="moz-txt-link-rfc2396E" href="mailto:lauri.haveri@alsocloudsolutions.fi"><lauri.haveri@alsocloudsolutions.fi></a><br>
                <b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
                <b>Subject:</b> RE: [rancid] Error when trying to back
                up a JunOS device, SRX100<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">I've
            had no problems with our lonely SRX100b, in any versions of
            RANCID 3.x, up to and including 3.7.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">The
            SRX is running 12.1X46-D55.3<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
                  style="font-size:10.0pt;font-family:"Tahoma",sans-serif"
                  lang="EN-US">From:</span></b><span
                style="font-size:10.0pt;font-family:"Tahoma",sans-serif"
                lang="EN-US"> Rancid-discuss
                [<a class="moz-txt-link-freetext" href="mailto:rancid-discuss-bounces@shrubbery.net">mailto:rancid-discuss-bounces@shrubbery.net</a>]
                <b>On Behalf Of </b>Heasley<br>
                <b>Sent:</b> March-21-18 2:15 PM<br>
                <b>To:</b> Lauri Haveri<br>
                <b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
                <b>Subject:</b> Re: [rancid] Error when trying to back
                up a JunOS device, SRX100<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
        <div>
          <p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><span
              lang="EN-CA"><br>
              Am 21.03.2018 um 20:43 schrieb Lauri Haveri <</span><a
              href="mailto:lauri.haveri@alsocloudsolutions.fi"
              moz-do-not-send="true"><span lang="EN-CA">lauri.haveri@alsocloudsolutions.fi</span></a><span
              lang="EN-CA">>:<o:p></o:p></span></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <div>
            <p class="MsoNormal">Hello all,<span lang="EN-CA"><o:p></o:p></span></p>
            <p class="MsoNormal"> <span lang="EN-CA"><o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">I am setting up a
                test enviroment on Ubuntu 16.04 before Rancid will go to
                a production enviroment.
                <br>
                <br>
                Everytime I run Rancid I get the following error:<br>
                <br>
                “Use of uninitialized value $_ in pattern match (m//) at
                /usr/share/perl5/rancid/junos.pm line 135<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">Use of
                uninitialized value $_ in pattern match (m//) at
                /usr/share/perl5/rancid/junos.pm line 140<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">00003-test-fw01:
                missed cmd(s): show configuration, show version
                invoke-on other-routing-engine, show system core-dumps,
                show version detail<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">00003-test-fw01:
                End of run not foud<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA"># Error: TIMEOUT
                reached”<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA"> <o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">When I go the the
                part that the log (/usr/share/perl5/rancid/junos.pm)
                tells me, the part is following:<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA"> <o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">“$rval =
                {$commands{$cmd}}{$INPUT, $OUTPUT, $cmd};<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">delete($commands{$cmd});<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">if {$rval == -1}
                {                                // this is the line 135<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">              
                $clean_run = 0;<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">              
                last TOP;<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">}<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">if
                (/>\s*quit/){                                  //
                this is line 140<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">$clean_run=1;<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">last;<o:p></o:p></span></p>
            <p class="MsoPlainText"><span lang="EN-CA">}”<o:p></o:p></span></p>
            <p class="MsoNormal"><span lang="EN-CA"><br>
                The command I am using to run Rancid is:<br>
              </span><span style="font-family:"Times New
                Roman",serif" lang="EN-CA">“</span><span
                lang="EN-CA">sudo su -c /var/lib/rancid/bin/rancid-run
                -s /bin/bash -l rancid</span><span
                style="font-family:"Times New Roman",serif"
                lang="EN-CA">”</span><span lang="EN-CA"><br>
                <br>
                Could you please help me? <o:p></o:p></span></p>
          </div>
        </blockquote>
        <div>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New
              Roman",serif" lang="EN-CA"><o:p> </o:p></span></p>
        </div>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif" lang="EN-CA">You havent told us what
            version of rancid nor from where you retrieved it. If its
            not 3.7, please start there. If it already is, but it is a
            ubuntu package, please try an install from source. <o:p></o:p></span></p>
        <div>
          <div>
            <p class="MsoNormal" style="margin-bottom:12.0pt"><span
                style="font-size:12.0pt;font-family:"Times New
                Roman",serif" lang="EN-CA"><o:p> </o:p></span></p>
            <div>
              <p class="MsoNormal"><span lang="EN-CA"> <o:p></o:p></span></p>
              <p class="MsoNormal"><span lang="EN-CA">Kind regards,<br>
                  Lauri<o:p></o:p></span></p>
            </div>
            <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
              <div>
                <p class="MsoNormal"><span
                    style="font-size:12.0pt;font-family:"Times New
                    Roman",serif" lang="EN-CA">_______________________________________________<br>
                    Rancid-discuss mailing list<br>
                  </span><a href="mailto:Rancid-discuss@shrubbery.net"
                    moz-do-not-send="true"><span
                      style="font-size:12.0pt;font-family:"Times
                      New Roman",serif" lang="EN-CA">Rancid-discuss@shrubbery.net</span></a><span
                    style="font-size:12.0pt;font-family:"Times New
                    Roman",serif" lang="EN-CA"><br>
                  </span><a
                    href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss"
                    moz-do-not-send="true"><span
                      style="font-size:12.0pt;font-family:"Times
                      New Roman",serif" lang="EN-CA">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</span></a><span
                    style="font-size:12.0pt;font-family:"Times New
                    Roman",serif" lang="EN-CA"><o:p></o:p></span></p>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Rancid-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a>
<a class="moz-txt-link-freetext" href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a></pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <table>
        <tbody>
          <tr>
            <td style="padding-left: 20px" width="90%">Doug Hughes<br>
              Keystone NAP<br>
              Fairless Hills, PA<br>
              1.844.KEYBLOCK (539.2562)</td>
            <td style="align: right;padding-right: 20px"><img
                src="cid:part4.AB4D3D43.ACC66D69@keystonenap.com">
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>