Comments (8)
Hi,
based on log it looks like Docker have no access to scripts
files during setup first Replica Set called mongo-cnf-setup_1
.
mongo-cnf-setup_1 | standard_init_linux.go:178: exec user process caused "no such file or directory"
I know two Docker related reasons for that:
- check line-ending in those files
init_shard.sh
,setup.sh
,setup_cnf.sh
- the patch is prepared #4 or change them manually toLF
, also globalgit
config can mess this up - for exampleautocrlf=true
- add your disk to Shared Drives in Docker - https://forums.docker.com/t/volume-mounts-in-windows-does-not-work/10693/9
Drop me a line, if this covers your case. Cheers.
from mongo-cluster-docker.
I think changing the lines to LF
did the trick. Noob question, which instance should I use as the master from my app? mongo1-1 ? Thanks!
from mongo-cluster-docker.
Now it's working. Apparently I had to open it with sudo -i
. My apologies.
Thank you!
from mongo-cluster-docker.
I would use mongo-router
as main entry point from read and write concern. It is a little bit confusing, because in this setup I use both Replication and Sharding together.
You could think about this like RAID 1+0. I've purposefully avoided to called any node master, because Mongo don't have multi-master https://docs.mongodb.com/manual/core/master-slave/.
Whole set is sharded environment, that's why on any databases and any collection you can create setup to share/split data across different ReplicaSets.
Additionally mongo-1-1
is main entry point for ReplicaSet1 and mongo-2-1
is main entry point for ReplicaSet2. Each ReplicaSets can elect their master and act as a fallback (with additional help from connection string options).
For more info, please referrer to https://docs.mongodb.com/manual/sharding/
from mongo-cluster-docker.
Clear as water. Thank you very much! I'm still learning replicating and sharding, and this is an excellent resource. Cheers
from mongo-cluster-docker.
i'm having the same issue again, but this time using elementary OS (16.04). Tried changing the files to LF
but it didn't work. Do I need to mount any volumes? and if so, how could I do it?
Thanks for the help so far
from mongo-cluster-docker.
Do you have +x
chmod on scripts ?
from mongo-cluster-docker.
from mongo-cluster-docker.
Related Issues (16)
- Add sample sharding with index.
- Not working ping on docker container
- Update docs with latest and upcoming mongo
- No shards? HOT 4
- Mongodb cluster Docker Unable to connect from other machine to Docker host machine (Centos 7) HOT 4
- Invalid `--rest` parameters on `mongo-cnf`
- Support for replication protocol version 0 was removed in MongoDB 4.0.
- MongoDB 4.0, you cannot specify --nojournal in replica set on wiredTiger engine
- Where The Data Path Setting? HOT 2
- replSetGetStatus is not supported through mongos HOT 1
- dont work in sworm HOT 1
- Missing support for proper healthchecks HOT 4
- Missing chmod +x
- scripts need the execute permission
- I have a bit of a problem. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongo-cluster-docker.