anyproto / any-sync-dockercompose

docker-compose for testing any-sync
MIT License
238 stars 30 forks source link

Unable to generate config #11

Closed bolavefasfas closed 5 months ago

bolavefasfas commented 6 months ago

Have you read a contributing guide?

Current Behavior

docker compose exec mongo-1 mongosh coordinator
db.nodeConf.find().sort( { _id: -1 } ).limit(1)

Output

Current Mongosh Log ID: 659d18edb9b1db871b8c1283
Connecting to:      mongodb://127.0.0.1:27017/coordinator?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.0.1
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
bash: syntax error near unexpected token `.sort'

Expected Behavior

It should be able to generate config right ? All container started https://github.com/anyproto/any-sync-dockercompose?tab=readme-ov-file#usage Storage and etc folder were also created

Steps To Reproduce

git clone https://github.com/anyproto/any-sync-dockercompose make start docker compose exec mongo-1 mongosh coordinator db.nodeConf.find().sort( { _id: -1 } ).limit(1)

Environment

- OS: Ubuntu 20.04
- Version: 20.04

Anything else?

I tried to host it in multiple diffrent x86 devices A photo guide will be helpful.

bolavefasfas commented 6 months ago

Lovely thanks

I was able to generate .yml and use to join selfhosted netowrk and create a new user for loggin in

though it still shows 1 gb space in remote storage

image

Shoudnt it be the size of my disk in vps where I am running the any-sync ? What am I missing ? how do i get more storage I want to use my vps to store the notes and use it to sync

Thanks @fb929 any update on this ?

fuksman commented 5 months ago

Hey @bolavefasfas, the file limit for identities should be defined in the coordinator-node config. It's 1GB by default, and there is no automatic logic like "get the whole disk size as a limit." We will update our images to provide larger file limits for self-hosters by default.

bolavefasfas commented 5 months ago

Hey @bolavefasfas, the file limit for identities should be defined in the coordinator-node config. It's 1GB by default, and there is no automatic logic like "get the whole disk size as a limit." We will update our images to provide larger file limits for self-hosters by default.

can we make it as a env variable in docker-compose.yml would be a lot easier. Thanks for reply.

fb929 commented 5 months ago

@bolavefasfas https://github.com/anyproto/any-sync-dockercompose/blob/main/.env#L41