Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate config #11

Closed
2 of 3 tasks
bolavefasfas opened this issue Jan 9, 2024 · 6 comments · Fixed by #12
Closed
2 of 3 tasks

Unable to generate config #11

bolavefasfas opened this issue Jan 9, 2024 · 6 comments · Fixed by #12
Assignees
Labels
bug Something isn't working

Comments

@bolavefasfas
Copy link

bolavefasfas commented Jan 9, 2024

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing issues and didn't find any that were similar
  • I have considered creating a pull request with fixes instead of a bug report and want to proceed

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 bolavefasfas added the bug Something isn't working label Jan 9, 2024
@fb929 fb929 linked a pull request Jan 9, 2024 that will close this issue
16 tasks
@fb929 fb929 closed this as completed in #12 Jan 9, 2024
@bolavefasfas
Copy link
Author

bolavefasfas commented Jan 10, 2024

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
Copy link
Member

fuksman commented Jan 15, 2024

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
Copy link
Author

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 fb929 reopened this Jan 22, 2024
@fb929
Copy link
Collaborator

fb929 commented Jan 24, 2024

@fb929 fb929 closed this as completed Jan 24, 2024
@Onefabis
Copy link

@fb929 your link is broken, because of new file structure. Did you mean that lines that could be changed in order to increase the limit? https://github.com/anyproto/any-sync-dockercompose/blob/ddf4f9b9cc6d3759babad34fda47f0724e834f9d/.env.common#L45C1-L47C61

@fb929
Copy link
Collaborator

fb929 commented Jul 17, 2024

@fb929 your link is broken, because of new file structure. Did you mean that lines that could be changed in order to increase the limit? https://github.com/anyproto/any-sync-dockercompose/blob/ddf4f9b9cc6d3759babad34fda47f0724e834f9d/.env.common#L45C1-L47C61

this is "spaces" limits

the files limit is here:

ANY_SYNC_FILENODE_DEFAULT_LIMIT=1099511627776

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants