sdk icon indicating copy to clipboard operation
sdk copied to clipboard

megasymplesync in docker

Open MaxKh opened this issue 6 years ago • 5 comments

Hi

I'm trying to create a docker container with megasimplesync. The base layer is alpine:edge, mega sdk version is v3.6.3 The Dockerfile: https://gist.github.com/MaxKh/ae9ce059899f34ed2bd09e6995a91a08

I use a host directory mounted to the container as a local folder for synchronization. Remote file addition and deletion are handled properly. Local file addition too. But local file deletion is ignored. The following appears in logs: [debug] Self filesystem notification skipped

MaxKh avatar Oct 11 '19 16:10 MaxKh

@MaxKh - Did you ever figure this one out?

clunietp avatar Dec 23 '19 12:12 clunietp

@clunietp No. Also I noticed same errors during "normal" usage (without docker). I had to replace sync logic from megasimplesync to self-written python client on top of official MEGA Python SDK

MaxKh avatar Dec 25 '19 06:12 MaxKh

That sounds interesting, do you have that published anywhere? I suppose my alternative is to run the official client, bugs and all, in a heavier container

clunietp avatar Dec 25 '19 13:12 clunietp

I have no plans to publish - the sync login is a part of my "private" telegram bot. SDK examples are quite clear and provide good starting point. https://github.com/meganz/sdk/tree/develop/examples/python

MaxKh avatar Dec 26 '19 09:12 MaxKh

I was not able to recreate this bug using Alpine and the 3.6.5 client; sync seems to be working fine with both local and remote additions/deletions. I published my build in case this can be useful to anyone looking for a Alpine+megasync container

https://github.com/clunietp/docker-trickle-megasync

clunietp avatar Dec 28 '19 14:12 clunietp