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

Image synchronization issues #97

Closed
3 tasks done
anschein opened this issue Sep 30, 2024 · 12 comments · Fixed by #101
Closed
3 tasks done

Image synchronization issues #97

anschein opened this issue Sep 30, 2024 · 12 comments · Fixed by #101
Labels
bug Something isn't working

Comments

@anschein
Copy link

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

Sorry using self-hosting is a bit out of my league, I tried self-hosting on top of the homeserver and it worked, but when I connect the client to the node, any additional multimedia content such as documents, images, etc. are not synchronized except for text type content, I tried to check the docker container's logs, and I see the error entries, however I can't troubleshoot due to limited capabilities

Expected Behavior

Correctly synchronize all types of files

Steps To Reproduce

image

Environment

- OS:Ubuntu 22.04
ANY_SYNC_NODE_VERSION=v0.3.34
ANY_SYNC_FILENODE_VERSION=v0.6.7
ANY_SYNC_COORDINATOR_VERSION=v0.3.28
ANY_SYNC_CONSENSUSNODE_VERSION=v0.1.7

Anything else?

No response

@anschein anschein added the bug Something isn't working label Sep 30, 2024
@fb929
Copy link
Collaborator

fb929 commented Sep 30, 2024

It seems that your bucket wasn't created in Minio.
Please show the output of the command:
docker-compose logs create-bucket

Also, the version of any-sync-dockercompose is needed: git rev-parse HEAD

@anschein
Copy link
Author

anschein commented Oct 2, 2024

It seems that your bucket wasn't created in Minio. Please show the output of the command: docker-compose logs create-bucket

Also, the version of any-sync-dockercompose is needed: git rev-parse HEAD

Thanks for help
The git rev-parse HEAD output is 82b9ec1
And docker-compose logs create-bucket shows nothing,I'm checking in Portainer,the
any-sync-dockercompose-create-bucket-1 container stopped with exit code 0

截屏2024-10-02 22 08 25

@fb929
Copy link
Collaborator

fb929 commented Oct 7, 2024

The git rev-parse HEAD output is 82b9ec1

You have a version with broken logic in create-bucket.
I recommend updating to the latest release:

git checkout v5.0.4

Don't forget to review the update instructions

@anschein
Copy link
Author

When I deleted the data directory and repulled the docker installation everything was fine, but not long after that the problem of not being able to synchronize the images arose again, this time with the following error report, this is the error log I found in filenode, I don't know if it has anything to do with the issue of synchronizing the images
image
image

@fb929
Copy link
Collaborator

fb929 commented Oct 15, 2024

You most likely ran out of memory on Redis, but it's also possible that you hit the memory limit in your Docker Compose configuration. In any case, you should check the container limits and the daemon logs to confirm this.

I have noted that you added the variable ANY_SYNC_DAEMONS_MEMORY_LIMIT for regulating the memory limit of any-sync-* daemons.
You can try it in this branch

@anschein
Copy link
Author

You most likely ran out of memory on Redis, but it's also possible that you hit the memory limit in your Docker Compose configuration. In any case, you should check the container limits and the daemon logs to confirm this.

I have noted that you added the variable ANY_SYNC_DAEMONS_MEMORY_LIMIT for regulating the memory limit of any-sync-* daemons. You can try it in this branch

I didn't add any other variables except the external IP, when this problem occurred I noticed it was a memory problem, I tried to increase the memory limit for the filenode in the portainer but it didn't solve the problem

@anschein
Copy link
Author

anschein commented Oct 16, 2024

Using a new branch didn't work, but I tried to change “--maxmemory” in the redis docker compose, raising it from 256mb to 512mb, and it seems to be syncing fine so far,Could there be problems with synchronization due to redis' memory release policy?

@fb929
Copy link
Collaborator

fb929 commented Oct 17, 2024

Could there be problems with synchronization due to redis' memory release policy?

yes, that's possible. It seems like you might have a large number of files?

@fb929
Copy link
Collaborator

fb929 commented Oct 17, 2024

You’ve added the REDIS_MAXMEMORY variable

@fb929 fb929 linked a pull request Oct 17, 2024 that will close this issue
16 tasks
@anschein
Copy link
Author

After updating the configuration of the main branch and setting REDIS_MAXMEMORY, when the synchronized node is turned on for an extended period of time there is still an “error”: “1 error occurred:\n\t* node #0: OOM command not allowed when used memory > ' maxmemory'. \n\n”, ‘app’: ‘v0.6.7’, Regardless of what I set the max memory of redis to, I wonder if ‘--maxmemory-policy’: ‘noeviction’ is causing the problem?

@anschein
Copy link
Author

After updating the configuration of the main branch and setting REDIS_MAXMEMORY, when the synchronized node is turned on for an extended period of time there is still an “error”: “1 error occurred:\n\t* node #0: OOM command not allowed when used memory > ' maxmemory'. \n\n”, ‘app’: ‘v0.6.7’, Regardless of what I set the max memory of redis to, I wonder if ‘--maxmemory-policy’: ‘noeviction’ is causing the problem?

I'll try to test by removing the entry in docker-compose

@fb929
Copy link
Collaborator

fb929 commented Oct 22, 2024

The "noeviction" policy is set intentionally and cannot be changed. It seems you have a large number of files, so you need to increase your limits.

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.

2 participants