Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17189

Error while stopping MongoDB windows service.

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.4.5, 2.6.7
    • Component/s: Admin
    • None

      Hi,

      I have installed MongoDB verison 2.4.5 / 2.6.7 on Windows 2008 R2 and registered mongod as windows service. Service is starting fine and DB working great.

      When i try to stop the windows service getting below windows service error .

      Windows could not stop the Mongo DB service on Local Computer.
      Error 109 : The pipe has been ended.

      Looks like DB is shutting down fine , here is the log

      Thu Feb 05 11:27:44.735 [serviceShutdown] got SERVICE_CONTROL_STOP request from Windows Service Control Manager, will terminate after current cmd ends
      Thu Feb 05 11:27:44.735 [serviceShutdown] now exiting
      Thu Feb 05 11:27:44.735 dbexit:
      Thu Feb 05 11:27:44.735 [serviceShutdown] shutdown: going to close listening sockets...
      Thu Feb 05 11:27:44.735 [serviceShutdown] closing listening socket: 424
      Thu Feb 05 11:27:44.735 [serviceShutdown] shutdown: going to flush diaglog...
      Thu Feb 05 11:27:44.735 [serviceShutdown] flushing diag log
      Thu Feb 05 11:27:44.735 [serviceShutdown] shutdown: going to close sockets...
      Thu Feb 05 11:27:44.735 [serviceShutdown] shutdown: waiting for fs preallocator...
      Thu Feb 05 11:27:44.735 [serviceShutdown] shutdown: lock for final commit...
      Thu Feb 05 11:27:44.735 [serviceShutdown] shutdown: final commit...
      Thu Feb 05 11:27:44.735 [conn2] end connection XX.XX.XX.XXX:xxxxx (0 connections now open)
      Thu Feb 05 11:27:44.735 [serviceShutdown] shutdown: closing all files...
      Thu Feb 05 11:27:44.750 [serviceShutdown] closeAllFiles() finished
      Thu Feb 05 11:27:44.750 [serviceShutdown] journalCleanup...
      Thu Feb 05 11:27:44.766 [serviceShutdown] removeJournalFiles
      Thu Feb 05 11:27:44.782 [serviceShutdown] shutdown: removing fs lock...
      Thu Feb 05 11:27:44.782 [initandlisten] now exiting
      Thu Feb 05 11:27:44.782 dbexit: ; exiting immediately

      When I start service back, starting fine without any errors.

      I tried two versions 2.4.5 & 2.6.7, getting same error for both versions.

      Thanks,
      Narayana.

            Assignee:
            Unassigned Unassigned
            Reporter:
            mogaparti@gmail.com Narayana Mogaparti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: