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

Errno:22 problem opening logfile using a config file

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.6
    • Component/s: Packaging
    • Environment:
      Win XP SP3 (Mongo says SP2)
    • Windows

      I am trying to set up Mongo DB as a service under Win XP sp3 (mongod says sp2), version 2.0.6 pdfile version 4.5

      To do this I have set up a config file -

      1. mongodb.cfg
      1. data directory
        dbpath = "C:\Documents and Settings\xxx\Ubiquiti UniFi\data\db"
      1. log file directory
        logpath = "C:\logs\server.log"
      1. append to log file
        logappend = true
      1. port mongodb listens on
        port = 27117

      My command line is -

      "C:\Documents and Settings\Robin StClair\Ubiquiti UniFi\bin\mongod.exe" --config "C:\Documents and Settings\Robin StClair\Ubiquiti UniFi\conf\mongodb.cfg" --install

      as I wish to set up Mongo DB as a service.

      Mongod.exe executes, finds and opens the config file and then an errno:22 is thrown and mongod.exe shuts down gracefully.

      I believe this is a Visual C++ error (doesn't like long command strings, hence my short path to log file (to see if that would get rid of the problem)).

      I would be grateful for some guidance

      R+C

            Assignee:
            tad Tad Marshall
            Reporter:
            uberseehandel Robin St.Clair
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: