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

Mongo client unable to load js file

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      1) [narayana@xeon mongodb-linux-x86_64-rhel62-3.2.1]$ pwd
      /tmp/mongodb-linux-x86_64-rhel62-3.2.1
      2) [narayana@xeon mongodb-linux-x86_64-rhel62-3.2.1]$ cat myReplicaSetConf.js
      {
      "_id" : "rs0",
      "version" : 1,
      "members" : [

      {"_id":0, "host": "localhost:27017"}

      ,

      {"_id":1, "host": "localhost:27018"}

      ,

      {"_id":2, "host": "localhost:27019"}

      ]
      }

      3) bin/mongo --nodb --port 27017 myReplicaSetConf.js

      Error

      [narayana@xeon mongodb-linux-x86_64-rhel62-3.2.1]$ bin/mongo --nodb --port 27017 myReplicaSetConf.js
      MongoDB shell version: 3.2.1
      2016-01-31T15:12:38.206+0530 E QUERY [thread1] SyntaxError: missing ; before statement @myReplicaSetConf.js:2:8

      failed to load: myReplicaSetConf.js

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            narayanab16 Narayana B
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: