meganz / sdk

MEGA C++ SDK
BSD 2-Clause "Simplified" License
1.33k stars 509 forks source link

megasymplesync in docker #1660

Open MaxKh opened 4 years ago

MaxKh commented 4 years ago

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

clunietp commented 4 years ago

@MaxKh - Did you ever figure this one out?

MaxKh commented 4 years ago

@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

clunietp commented 4 years ago

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

MaxKh commented 4 years ago

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

clunietp commented 4 years ago

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