[SERVER-4764] problem connecting to config svr Created: 24/Jan/12 Updated: 11/Jul/16 Resolved: 10/Feb/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 2.0.2 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Minor - P4 |
| Reporter: | Brett Goldstein | Assignee: | Steve Francia |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
Setting up sharding architecture based on "simple initial sharding architecture document. when trying to connect mongos to the config server i get the following error. brought up a second config server and got the same message. thoughts? [mongodb@my07apl01 ~]$ ./mongodb-linux-x86_64-2.0.2/bin/mongos --configdb my07or l03:27019 |
| Comments |
| Comment by Brett Goldstein [ 26/Jan/12 ] |
|
ok...i figured it out. the problem was 27017 was in use locally. interestingly, the call above was for a remote machine but the local issue prevented it. i brought down the local service and the issue was resolved. |
| Comment by Brett Goldstein [ 25/Jan/12 ] |
|
here you go: -bash-4.1$ netstat -an | grep 27017 ran again on the other machine: [mongodb@my07apl01 ~]$ ./mongodb-linux-x86_64-2.0.2/bin/mongos --configdb my07orl02 |
| Comment by Eliot Horowitz (Inactive) [ 24/Jan/12 ] |
|
Can you do a "netstat -an | grep 27017" |
| Comment by Brett Goldstein [ 24/Jan/12 ] |
|
that is what i thought but i am still running into issues. first block is from server i am running --shardsvr and --configsvr . second is where i am trying to connect mongos -bash-4.1$ ./mongodb-linux-x86_64-2.0.2/bin/mongod --dbpath /app/data/db/ --fork --logpath /home/mongodb/mongodb.log --shardsvr -bash-4.1$ ./mongodb-linux-x86_64-2.0.2/bin/mongo --port 27018 -bash-4.1$ ./mongodb-linux-x86_64-2.0.2/bin/mongo --port 27019 ------------------------------------------------------------- [mongodb@my07apl01 ~]$ ./mongodb-linux-x86_64-2.0.2/bin/mongos --configdb my07orl02:27019 |
| Comment by Eliot Horowitz (Inactive) [ 24/Jan/12 ] |
|
That means you have something else running on port 27017 already. |