Portmap service will not start with the WIN32_EXIT_CODE 31. The exit code means “A device attached to the system is not functioning.” but it is not clear which device. There is no warning or error seen in the device manager, also there is no error or warning logged in the event log about any specific device except for the Event-3002. I am facing this issue during of the File Service and Service for NFS installation in a windows 2008 R2 server. All other dependent services of NFS are in running state except portmap because of which the NFS installation fails. There is no other process using port 111 when this error occurs but still the portmap service won’t start.
Following is the status of the different services after the installation failed.
C:\ >sc query rpcxdr
SERVICE_NAME: rpcxdr
TYPE : 1 KERNEL_DRIVER
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\ >sc query msnfsflt
SERVICE_NAME: msnfsflt
TYPE : 2 FILE_SYSTEM_DRIVER
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\ >sc query portmap
SERVICE_NAME: portmap
TYPE : 1 KERNEL_DRIVER
STATE : 1 STOPPED
WIN32_EXIT_CODE : 31 (0x1f)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
Is there any a specific tool or trick available to debug this issue further?
Regards,
Poopesh