Can't bind to server which serves this domain

Latest response

NIS server not able to bind , so users not able to login . Restarted the ypbind but no luck . Please help

root@server#ypcat passwd |grep test

No such map passwd.byname. Reason: Can't bind to server which serves this domain

root@server#systemctl status ypbind
● ypbind.service - NIS/YP (Network Information Service) Clients to NIS Domain Binder
Loaded: loaded (/usr/lib/systemd/system/ypbind.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2017-10-27 12:47:07 BST; 11min ago
Process: 14180 ExecStartPost=/usr/libexec/ypbind-post-waitbind (code=exited, status=0/SUCCESS)
Process: 14172 ExecStartPre=/usr/sbin/setsebool allow_ypbind=1 (code=exited, status=1/FAILURE)
Process: 14168 ExecStartPre=/usr/libexec/ypbind-pre-setdomain (code=exited, status=0/SUCCESS)
Main PID: 14175 (ypbind)
Status: "Processing requests..."
CGroup: /system.slice/ypbind.service
└─14175 /usr/sbin/ypbind -n

Oct 27 12:46:49 test.com ypbind-post-waitbind[14180]: rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused
Oct 27 12:46:51 test.com ypbind-post-waitbind[14180]: rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused
Oct 27 12:46:53 test.com ypbind-post-waitbind[14180]: rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused
Oct 27 12:46:55 test. com ypbind-post-waitbind[14180]: rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused
Oct 27 12:46:57 test.com ypbind-post-waitbind[14180]: rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused

Oct 27 12:47:07 test.com systemd[1]: Started NIS/YP (Network Information Service) Clients to NIS Domain Binder.

root@server#rpcinfo -p localhost
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100007 2 udp 785 ypbind
100007 1 udp 785 ypbind
100007 2 tcp 788 ypbind
100007 1 tcp 788 ypbind

Responses

On this test.com server, rpcbind (also known as portmapper) is running, and ypbind is running. That's OK. But ypbind wants to connect first to your NIS server's portmapper to find out the port number of the ypserv process on the NIS server. This error message:

test.com ypbind-post-waitbind[14180]: rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused

seems to say ypbind cannot do that. So it is a problem connecting to the NIS server.

Go to your NIS server system, and run 'rpcinfo -p localhost' there. What does it say? Check that rpcbind and ypserv processes are running on the NIS server host, and that firewalls are not blocking the NIS connections.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.