RPC Authentication error

Maricruzz picture Maricruzz · Oct 28, 2012 · Viewed 24.3k times · Source

Last week I was using RPC and could run my RPC server program just fine. However, today I tried to start it again and I am getting this error:

Cannot register service: RPC: Authentication error; why = Client credential too weak unable to register (X_PROG, X_VERS, udp)

Can anybody tell me what the cause of this error can be?

rpcinfo gives me this:

   program version netid     address                service    owner
    100000    4    tcp6      ::.0.111               portmapper superuser
    100000    3    tcp6      ::.0.111               portmapper superuser
    100000    4    udp6      ::.0.111               portmapper superuser
    100000    3    udp6      ::.0.111               portmapper superuser
    100000    4    tcp       0.0.0.0.0.111          portmapper superuser
    100000    3    tcp       0.0.0.0.0.111          portmapper superuser
    100000    2    tcp       0.0.0.0.0.111          portmapper superuser
    100000    4    udp       0.0.0.0.0.111          portmapper superuser
    100000    3    udp       0.0.0.0.0.111          portmapper superuser
    100000    2    udp       0.0.0.0.0.111          portmapper superuser
    100000    4    local     /run/rpcbind.sock      portmapper superuser
    100000    3    local     /run/rpcbind.sock      portmapper superuser

The weird thing is that I haven't even been using this pc the past week. Are there any services that should be running?

Hope you can help me out. Grtz Stefan

Answer

karim picture karim · Dec 30, 2012

this error is linked to rpcbind,so you should stop service portmap like this:

sudo -i service portmap stop

then

sudo -i rpcbind -i -w

at end start service portmap:

sudo -i service portmap start