[SERVER-1084] replica sets can't be set up locally Created: 04/May/10  Updated: 29/May/12  Resolved: 05/May/10

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Dwight Merriman
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

db version v1.5.2-pre-, pdfile version 4.5
Tue May 4 12:37:02 git version: e3811ab624b674dae7c94bca8ac65a2528185169


Participants:

 Description   

I wanted to play around with replica sets, but it looks like I can't set them up locally. I'd imagine this is the first thing people are going to want to try (even if it's a stupid thing to do in production) just to test them out.

I did:

./mongod -replSet testing/localhost:27018

and got

replSet Caught exception in management thread: can't use localhost in replset host list

Maybe I'm just doing something wrong?



 Comments   
Comment by Dwight Merriman [ 05/May/10 ]

use your local hostname (whoami) instead. the problem is that "localhost" means different things on different servers. so it wont' be supported.

btw - it doesn't work yet regardless. wait a little longer.

Generated at Thu Feb 08 02:56:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.