Discussion:
[rancid] Broken pipes in rancid log
Todd Heide
2009-02-24 13:52:06 UTC
Permalink
I have been having some issues with the Customer_Routers group not
completing, and thought I had made headway when one actually completed
yesterday, but this morning I noticed it hasn't updated since then. I
reviewed the last log before the lock file occurred and found what
appears to be errors.



write(spawn_id=1): broken pipe

while executing

"send_user -- "$expect_out(buffer)""

invoked from within

"expect -nobrace -re+ { exp_continue } -re {^[^

*]*CBCountyFar([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user --
"$expect_out(buffer)"

} -re {..."

invoked from within

"expect {

-re "\b+" { exp_continue }

-re "^\[^\n\r *]*$reprompt" { send_user --
"$expect_out(buffer)"

}

-re "^\[^\n\r]*$reprom..."

(procedure "run_commands" line 41)

invoked from within

"run_commands $prompt $command"

("foreach" body line 152)

invoked from within

"foreach router [lrange $argv $i end] {

set router [string tolower $router]

# attempt at platform switching.

set platform ""

send_user ..."

(file "/usr/local/rancid/bin/clogin" line 715)

write(spawn_id=1): broken pipe

while executing

"send_user -- "$expect_out(buffer)""

invoked from within

"expect -nobrace -re+ { exp_continue } -re {^[^

*]*CBWheaton-2([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user --
"$expect_out(buffer)"

} -re {..."

invoked from within

"expect {

-re "\b+" { exp_continue }

-re "^\[^\n\r *]*$reprompt" { send_user --
"$expect_out(buffer)"

}

-re "^\[^\n\r]*$reprom..."

(procedure "run_commands" line 41)

invoked from within

"run_commands $prompt $command"

("foreach" body line 152)

invoked from within

"foreach router [lrange $argv $i end] {

set router [string tolower $router]

# attempt at platform switching.

set platform ""

send_user ..."

(file "/usr/local/rancid/bin/clogin" line 715)



There are several more, not as much info as this, but pretty similar.



Thanks

Todd
Lance Vermilion
2009-02-24 16:31:50 UTC
Permalink
Todd,

Does it work with just clogin? Do you go straight to enable? Have you
tried specifying the prompt in .cloginrc?

-Lance
Post by Todd Heide
I have been having some issues with the Customer_Routers group not
completing, and thought I had made headway when one actually completed
yesterday, but this morning I noticed it hasn’t updated since then. I
reviewed the last log before the lock file occurred and found what appears
to be errors.
write(spawn_id=1): broken pipe
    while executing
"send_user -- "$expect_out(buffer)""
    invoked from within
"expect -nobrace -re+ { exp_continue } -re {^[^
 *]*CBCountyFar([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user --
"$expect_out(buffer)"
                                                } -re {..."
    invoked from within
"expect {
            -re "\b+"                           { exp_continue }
            -re "^\[^\n\r *]*$reprompt"         { send_user --
"$expect_out(buffer)"
                                                }
            -re "^\[^\n\r]*$reprom..."
    (procedure "run_commands" line 41)
    invoked from within
"run_commands $prompt $command"
    ("foreach" body line 152)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    # attempt at platform switching.
    set platform ""
    send_user ..."
    (file "/usr/local/rancid/bin/clogin" line 715)
write(spawn_id=1): broken pipe
    while executing
"send_user -- "$expect_out(buffer)""
    invoked from within
"expect -nobrace -re+ { exp_continue } -re {^[^
 *]*CBWheaton-2([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user --
"$expect_out(buffer)"
                                                } -re {..."
    invoked from within
"expect {
            -re "\b+"                           { exp_continue }
            -re "^\[^\n\r *]*$reprompt"         { send_user --
"$expect_out(buffer)"
                                                }
            -re "^\[^\n\r]*$reprom..."
    (procedure "run_commands" line 41)
    invoked from within
"run_commands $prompt $command"
    ("foreach" body line 152)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    # attempt at platform switching.
    set platform ""
    send_user ..."
    (file "/usr/local/rancid/bin/clogin" line 715)
There are several more, not as much info as this, but pretty similar.
Thanks
Todd
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Todd Heide
2009-02-24 22:05:08 UTC
Permalink
Found the cause of the below problem, darned authorization, grr. I have
a new one that hopefully someone has an answer for.



I did a tail -f while I ran rancid-run Customer_Routers, and when the
log stopped scrolling, I did a ^C in the window I did the run and got,



Received signal - ending run (1).

=====================================

Getting missed routers: round 1.



Then when it reached the last router in the list again that it couldn't
log into, I did ^C again and got,



Received signal - ending run (1).



cvs diff: Diffing .

cvs diff: Diffing configs

cvs commit: Examining .

cvs commit: Examining configs

Checking in router.db;

/usr/local/rancid/var/CVS/Customer_Routers/router.db,v <-- router.db
new revision: 1.6; previous revision: 1.5 done Checking in
configs/trinity-421-1841;
/usr/local/rancid/var/CVS/Customer_Routers/configs/trinity-421-1841,v
<-- trinity-421-1841 new revision: 1.2; previous revision: 1.1 done
Checking in configs/trinity-532-1841;
/usr/local/rancid/var/CVS/Customer_Routers/configs/trinity-532-1841,v
<-- trinity-532-1841 new revision: 1.2; previous revision: 1.1 done

ls: default-2611-park: No such file or directory

ls: ave.hosts.equivoice.com: No such file or directory





It seems to be waiting for something for some reason before it continues
on. When I send control c it continues on again. It is only doing it for
this group, the other groups seem to be OK. Could it be the amount of
times it hits clogin error: Error: while running?



When I do the ^C it has completed polling of all devices and I can see
updates for all of them.



Thanks

Todd

From: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Todd Heide
Sent: Tuesday, February 24, 2009 7:52 AM
To: Rancid-***@shrubbery.net
Subject: [rancid] Broken pipes in rancid log



I have been having some issues with the Customer_Routers group not
completing, and thought I had made headway when one actually completed
yesterday, but this morning I noticed it hasn't updated since then. I
reviewed the last log before the lock file occurred and found what
appears to be errors.



write(spawn_id=1): broken pipe

while executing

"send_user -- "$expect_out(buffer)""

invoked from within

"expect -nobrace -re+ { exp_continue } -re {^[^

*]*CBCountyFar([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user --
"$expect_out(buffer)"

} -re {..."

invoked from within

"expect {

-re "\b+" { exp_continue }

-re "^\[^\n\r *]*$reprompt" { send_user --
"$expect_out(buffer)"

}

-re "^\[^\n\r]*$reprom..."

(procedure "run_commands" line 41)

invoked from within

"run_commands $prompt $command"

("foreach" body line 152)

invoked from within

"foreach router [lrange $argv $i end] {

set router [string tolower $router]

# attempt at platform switching.

set platform ""

send_user ..."

(file "/usr/local/rancid/bin/clogin" line 715)

write(spawn_id=1): broken pipe

while executing

"send_user -- "$expect_out(buffer)""

invoked from within

"expect -nobrace -re+ { exp_continue } -re {^[^

*]*CBWheaton-2([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user --
"$expect_out(buffer)"

} -re {..."

invoked from within

"expect {

-re "\b+" { exp_continue }

-re "^\[^\n\r *]*$reprompt" { send_user --
"$expect_out(buffer)"

}

-re "^\[^\n\r]*$reprom..."

(procedure "run_commands" line 41)

invoked from within

"run_commands $prompt $command"

("foreach" body line 152)

invoked from within

"foreach router [lrange $argv $i end] {

set router [string tolower $router]

# attempt at platform switching.

set platform ""

send_user ..."

(file "/usr/local/rancid/bin/clogin" line 715)



There are several more, not as much info as this, but pretty similar.



Thanks

Todd

Loading...