#324996 nis: error messages in syslog: ypbind[16494]: broadcast: RPC: Can't encode arguments

Package:
ypbind-mt
Source:
ypbind-mt
Description:
Client daemon for working with Network Information System (NIS)
Submitter:
Anders Boström
Date:
2021-01-24 15:45:06 UTC
Severity:
normal
#324996#5
Date:
2005-08-25 13:57:09 UTC
From:
To:
I get the following messages in my syslog at regular intervals:

Aug 25 13:44:11 sid ypbind[8751]: broadcast: RPC: Can't encode arguments.
Aug 25 13:44:31 sid ypbind[8751]: broadcast: RPC: Can't encode arguments.
Aug 25 13:59:11 sid ypbind[8751]: broadcast: RPC: Can't encode arguments.
Aug 25 13:59:51 sid last message repeated 2 times
Aug 25 14:14:11 sid ypbind[8751]: broadcast: RPC: Can't encode arguments.
Aug 25 14:14:51 sid last message repeated 2 times
Aug 25 14:29:12 sid ypbind[8751]: broadcast: RPC: Can't encode arguments.
Aug 25 14:29:52 sid last message repeated 2 times
Aug 25 14:57:20 sid ypbind[16494]: broadcast: RPC: Can't encode arguments.
Aug 25 14:58:00 sid last message repeated 2 times
Aug 25 14:59:00 sid last message repeated 3 times
Aug 25 15:00:00 sid last message repeated 3 times
Aug 25 15:12:20 sid ypbind[16494]: broadcast: RPC: Can't encode arguments.
Aug 25 15:13:40 sid last message repeated 4 times
Aug 25 15:14:40 sid last message repeated 3 times
Aug 25 15:15:00 sid ypbind[16494]: broadcast: RPC: Can't encode arguments.
Aug 25 15:27:20 sid ypbind[16494]: broadcast: RPC: Can't encode arguments.
Aug 25 15:42:20 sid ypbind[16494]: broadcast: RPC: Can't encode arguments.
Aug 25 15:43:40 sid last message repeated 4 times
Aug 25 15:44:40 sid last message repeated 3 times
Aug 25 15:45:00 sid ypbind[16494]: broadcast: RPC: Can't encode arguments.

Restart of ypbind and portmap doesn't help. My /etc/yp.conf is empty
(no lines without # first) and nis seems to work.

Any suggestions?

/ Anders

#324996#10
Date:
2005-08-26 09:29:13 UTC
From:
To:
A very similar bug was filed on alpha which appears to be a problem in
glibc - it's http://bugs.debian.org/231593 - this sounds like the same
thing.

Could you please generate a strace of ypbind when it's doing this (you
can use the '-p' option to attach to a running process) and send the
results to the bug log?

Thanks.

#324996#15
Date:
2005-08-26 11:05:07 UTC
From:
To:
 >> Restart of ypbind and portmap doesn't help. My /etc/yp.conf is empty
 >> (no lines without # first) and nis seems to work.

 MB> A very similar bug was filed on alpha which appears to be a problem in
 MB> glibc - it's http://bugs.debian.org/231593 - this sounds like the same
 MB> thing.

 MB> Could you please generate a strace of ypbind when it's doing this (you
 MB> can use the '-p' option to attach to a running process) and send the
 MB> results to the bug log?

OK attached is an strace, I hope it helps!

I also tested this:

sid:~# /usr/sbin/ypbind -broadcast -debug
10420: add_server() domain: netinsight.se, broadcast
10420: [Welcome to ypbind-mt, version 1.19]

10420: ping interval is 20 seconds

10422: do_broadcast() for domain 'netinsight.se' is called
10422: broadcast: RPC: Can't encode arguments.
10422: leave do_broadcast() for domain 'netinsight.se'
10422: Pinging all active server.
10422: do_broadcast() for domain 'netinsight.se' is called
10422: broadcast: RPC: Can't encode arguments.
10422: leave do_broadcast() for domain 'netinsight.se'
10422: Pinging all active server.
10422: do_broadcast() for domain 'netinsight.se' is called
10422: broadcast: RPC: Can't encode arguments.
10422: leave do_broadcast() for domain 'netinsight.se'
10420: ypbindproc_domain_2_svc (netinsight.se)
10420: Pinging all active server.
10420: do_broadcast() for domain 'netinsight.se' is called
10420: broadcast: RPC: Can't encode arguments.
10420: leave do_broadcast() for domain 'netinsight.se'
10420: trylock = success
10420: do_broadcast() for domain 'netinsight.se' is called
10420: broadcast: RPC: Can't encode arguments.
10420: leave do_broadcast() for domain 'netinsight.se'
10420: trylock = success
10420: do_broadcast() for domain 'netinsight.se' is called
10420: broadcast: RPC: Can't encode arguments.
10420: leave do_broadcast() for domain 'netinsight.se'
10420: Status: YPBIND_FAIL_VAL
10420: ypbindproc_domain_2_svc (netinsight.se)
10420: Pinging all active server.
10420: do_broadcast() for domain 'netinsight.se' is called
10420: broadcast: RPC: Can't encode arguments.
10420: leave do_broadcast() for domain 'netinsight.se'
10420: trylock = success
10420: do_broadcast() for domain 'netinsight.se' is called
10420: broadcast: RPC: Can't encode arguments.
10420: leave do_broadcast() for domain 'netinsight.se'
10420: trylock = success
10420: do_broadcast() for domain 'netinsight.se' is called
10420: broadcast: RPC: Can't encode arguments.
10420: leave do_broadcast() for domain 'netinsight.se'
10420: Status: YPBIND_FAIL_VAL
10422: Pinging all active server.
10422: do_broadcast() for domain 'netinsight.se' is called
10422: broadcast: RPC: Can't encode arguments.
10422: leave do_broadcast() for domain 'netinsight.se'
10421: Signal (2) for quitting program arrived.

And when I tried this:

sid:~# ypcat passwd
YPBINDPROC_DOMAIN: Domain not bound
No such map passwd.byname. Reason: Can't bind to server which serves this domain
sid:~#

In other words: ypbind don't work at all when -broadcast -debug is
passed as arguments.

I also tried ltrace, but then ypbind crashed. This might be a problem
with ltrace on amd64.

/ Anders

#324996#20
Date:
2005-08-29 12:13:35 UTC
From:
To:
Interesting...  Is the trace you sent definately for a failing ypbind?
#324996#25
Date:
2005-08-29 12:31:42 UTC
From:
To:
 MB> On Fri, Aug 26, 2005 at 01:05:07PM +0200, Anders Boström wrote:
 >> In other words: ypbind don't work at all when -broadcast -debug is
 >> passed as arguments.

 MB> Interesting...  Is the trace you sent definately for a failing ypbind?

Yes, you can easily find all error messages to syslog by searching for
ypbind in the trace.

/ Anders