Mongodb won't start after adding 2nd net option to mongod.conf fileMongoDB doesnt start normally?'mongod...

Put the phone down / Put down the phone

Weird lines in Microsoft Word

1 John in Luther’s Bibel

"Oh no!" in Latin

What is it called when someone votes for an option that's not their first choice?

Pre-Employment Background Check With Consent For Future Checks

How do you say "Trust your struggle." in French?

Why do Radio Buttons not fill the entire outer circle?

How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?

How to preserve electronics (computers, ipads, phones) for hundreds of years?

Why doesn't Gödel's incompleteness theorem apply to false statements?

Are hand made posters acceptable in Academia?

Is there a distance limit for minecart tracks?

What do the positive and negative (+/-) transmit and receive pins mean on Ethernet cables?

Magnifying glass in hyperbolic space

Comic-book: Kids find a dead female superhero in the woods

Capacitor electron flow

Exposing a company lying about themselves in a tightly knit industry (videogames) : Is my career at risk on the long run?

Why is implicit conversion not ambiguous for non-primitive types?

Extract substring according to regexp with sed or grep

PTIJ: Which Dr. Seuss books should one obtain?

Friend wants my recommendation but I don't want to give it to him

Control width of columns in a tabular environment

How to evaluate the research level of a paper before any publication?



Mongodb won't start after adding 2nd net option to mongod.conf file


MongoDB doesnt start normally?'mongod wiredTiger' on Ubuntu?Issues in starting MongoDB serviceMongoDB won't start with access control turned onService mongod fails after adding security.keyFile in config filecreating replica set between three similar mongo databases on my localmongodb service won't start after adding admin user in ubuntu 16.04Difference between net start MongoDB and mongodReplica Set Question - one primary instance with two secondary instancesMongoDB sharded cluster chunks distribution













0















I try to add another net with the its corresponding bind ip and port to my AMI ec2 mongod.conf file so I will be able to create a 2 node replica set but when I run the command "sudo service mongos restart", mongos won't start. Here is my mongos.conf file:



# mongod.conf

# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/

# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log

# Where and how to store data.
storage:
dbPath: /var/lib/mongo
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:

# how the process runs
processManagement:
fork: true # fork and run in background
pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
timeZoneInfo: /usr/share/zoneinfo

# network interfaces
net:
port: 27017
bindIp: 172.31.90.193 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
net:
port: 27017
bindIp: 172.31.92.31
#security:

#operationProfiling:

replication:
replSetName: "Midterm"

#sharding:

## Enterprise-Only Options

#auditLog:

#snmp:


Does anyone know why this is happening? I tried doing this in a vm using vagrant and it worked. Why would be any different in AMI ec2?










share|improve this question





























    0















    I try to add another net with the its corresponding bind ip and port to my AMI ec2 mongod.conf file so I will be able to create a 2 node replica set but when I run the command "sudo service mongos restart", mongos won't start. Here is my mongos.conf file:



    # mongod.conf

    # for documentation of all options, see:
    # http://docs.mongodb.org/manual/reference/configuration-options/

    # where to write logging data.
    systemLog:
    destination: file
    logAppend: true
    path: /var/log/mongodb/mongod.log

    # Where and how to store data.
    storage:
    dbPath: /var/lib/mongo
    journal:
    enabled: true
    # engine:
    # mmapv1:
    # wiredTiger:

    # how the process runs
    processManagement:
    fork: true # fork and run in background
    pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
    timeZoneInfo: /usr/share/zoneinfo

    # network interfaces
    net:
    port: 27017
    bindIp: 172.31.90.193 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
    net:
    port: 27017
    bindIp: 172.31.92.31
    #security:

    #operationProfiling:

    replication:
    replSetName: "Midterm"

    #sharding:

    ## Enterprise-Only Options

    #auditLog:

    #snmp:


    Does anyone know why this is happening? I tried doing this in a vm using vagrant and it worked. Why would be any different in AMI ec2?










    share|improve this question



























      0












      0








      0








      I try to add another net with the its corresponding bind ip and port to my AMI ec2 mongod.conf file so I will be able to create a 2 node replica set but when I run the command "sudo service mongos restart", mongos won't start. Here is my mongos.conf file:



      # mongod.conf

      # for documentation of all options, see:
      # http://docs.mongodb.org/manual/reference/configuration-options/

      # where to write logging data.
      systemLog:
      destination: file
      logAppend: true
      path: /var/log/mongodb/mongod.log

      # Where and how to store data.
      storage:
      dbPath: /var/lib/mongo
      journal:
      enabled: true
      # engine:
      # mmapv1:
      # wiredTiger:

      # how the process runs
      processManagement:
      fork: true # fork and run in background
      pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
      timeZoneInfo: /usr/share/zoneinfo

      # network interfaces
      net:
      port: 27017
      bindIp: 172.31.90.193 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
      net:
      port: 27017
      bindIp: 172.31.92.31
      #security:

      #operationProfiling:

      replication:
      replSetName: "Midterm"

      #sharding:

      ## Enterprise-Only Options

      #auditLog:

      #snmp:


      Does anyone know why this is happening? I tried doing this in a vm using vagrant and it worked. Why would be any different in AMI ec2?










      share|improve this question
















      I try to add another net with the its corresponding bind ip and port to my AMI ec2 mongod.conf file so I will be able to create a 2 node replica set but when I run the command "sudo service mongos restart", mongos won't start. Here is my mongos.conf file:



      # mongod.conf

      # for documentation of all options, see:
      # http://docs.mongodb.org/manual/reference/configuration-options/

      # where to write logging data.
      systemLog:
      destination: file
      logAppend: true
      path: /var/log/mongodb/mongod.log

      # Where and how to store data.
      storage:
      dbPath: /var/lib/mongo
      journal:
      enabled: true
      # engine:
      # mmapv1:
      # wiredTiger:

      # how the process runs
      processManagement:
      fork: true # fork and run in background
      pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
      timeZoneInfo: /usr/share/zoneinfo

      # network interfaces
      net:
      port: 27017
      bindIp: 172.31.90.193 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
      net:
      port: 27017
      bindIp: 172.31.92.31
      #security:

      #operationProfiling:

      replication:
      replSetName: "Midterm"

      #sharding:

      ## Enterprise-Only Options

      #auditLog:

      #snmp:


      Does anyone know why this is happening? I tried doing this in a vm using vagrant and it worked. Why would be any different in AMI ec2?







      replication mongodb amazon-ec2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 7 mins ago







      tom dinh

















      asked 1 hour ago









      tom dinhtom dinh

      225




      225






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "182"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f232567%2fmongodb-wont-start-after-adding-2nd-net-option-to-mongod-conf-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Database Administrators Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f232567%2fmongodb-wont-start-after-adding-2nd-net-option-to-mongod-conf-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Parapolítica Índice Antecedentes El escándalo Proceso judicial Consecuencias Véase...

          How to remove border from elements in the last row?Targeting flex items on the last rowHow to vertically wrap...

          Tecnologías entrañables Índice Antecedentes Desarrollo Tecnologías Entrañables en la...