portmap service won't start

View: New views
2 Messages — Rating Filter:   Alert me  

portmap service won't start

by EnergizeMe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a Windows 2003 std server that I have installs cygwin on. I ran the nfs-server-config script and installed the nfsd, portmap, and mountd services. I have installed them with a local admin account and as a domain admin account, but the portmap service will not start. I get this error from the services. mmc:

"The cygwin portmap service on local computer started and then stopped. Some services stop automatically ifif they have no work to do."

When I try to start the service from cygwin.bat, it says:

The cygwin portmap service is starting.
The cygwin portmap service could not be started.

The service did not report an error.

Obviously the cygwin nfsd and cygwin mountd services won't start without the portmap service since they depend on that one. The cygwin sshd service is started and working normally. Does anyone know how to fix this problem? I've uninstalled the services and re-installed them, but nothing is working. Please help!

Re: portmap service won't start

by richw :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

EnergizeMe wrote:
...but the portmap service will not start. I get this error from the services. mmc:

"The cygwin portmap service on local computer started and then stopped. Some services stop automatically ifif they have no work to do."
I had precisely these symptoms (on xp), and found the answer in /var/log/portmap.log:

      3 [main] ? (948) C:\cygwin\usr\sbin\portmap.exe: *** fatal error - system shared memory version mismatch detected - 0x8A88009C/0x2D1E009C.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.

It worked much better after I removed my spurious copy of cygwin1.dll