Closed greyivy closed 1 month ago
for use mongo 4.x you also need to change "healthcheck" command, try to this: https://github.com/anyproto/any-sync-dockercompose/issues/29#issuecomment-2040546496
Thanks @fb929. Unfortunately I'm seeing same issue after updating the command.
Thanks @fb929. Unfortunately I'm seeing same issue after updating the command.
can you show me output for rs.status() command?
docker compose exec mongo-1 mongosh --port 27001 --eval 'rs.status()'
MongoDB shell version v4.4.29
connecting to: mongodb://127.0.0.1:27001/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("77f21989-0dd7-4cda-a019-1f78605790a6") }
MongoDB server version: 4.4.29
{
"ok" : 0,
"errmsg" : "Our replica set config is invalid or we are not a member of it",
"code" : 93,
"codeName" : "InvalidReplicaSetConfig"
}
Try running this command:
docker compose exec mongo-1 mongo --port 27001 --eval 'rs.reconfig({_id: rs.conf()._id, members: [{ _id: 0, host: "mongo-1:27001" }]}, {force: true});'
MongoDB shell version v4.4.29
connecting to: mongodb://127.0.0.1:27001/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("7510fc2e-c1ef-463d-a8fc-89ca509539ee") }
MongoDB server version: 4.4.29
{
"ok" : 1,
"$clusterTime" : {
"clusterTime" : Timestamp(1715091024, 1),
"signature" : {
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
"keyId" : NumberLong(0)
}
},
"operationTime" : Timestamp(1715091024, 1)
}
@greyivy Now everything should work.
Thank you! It seems to be working correctly across restarts now.
Container any-sync-dockercompose-any-sync-coordinator_bootstrap-1 service "any-sync-coordinator_bootstrap" didn't complete succes...
can't open network configuration file {"error": "open /etc/any-sync-coordinator/network.yml: no such file or directory"}
@fb929 容器 any-sync-dockercompose-any-sync-coordinator_bootstrap-1 服务“any-sync-coordinator_bootstrap”未成功完成... 无法打开网络配置文件 {“error”: “open /etc/any-sync-coordinator/network.yml: no such file or directory”}
Container any-sync-dockercompose-any-sync-coordinator_bootstrap-1 service "any-sync-coordinator_bootstrap" didn't complete succes... can't open network configuration file {"error": "open /etc/any-sync-coordinator/network.yml: no such file or directory"}
obviously, you encountered an error at the configuration generation step.
please show the full output of the make start
command.
Have you read a contributing guide?
Current Behavior
Running
make start
works fine the first time. I then runmake stop
to cleanly shutdown and later,make start
again. The stack never comes back up due toany-sync-coordinator_bootstrap-1
. The only message in the logs is:Expected Behavior
The stack can be restarted after it is stopped.
Steps To Reproduce
MONGO_VERSION=4.4.29
in.env.override
make start
make stop
make start
Environment
Anything else?
No response