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

Remote file duplication #26

Closed
wizzard opened this issue May 20, 2014 · 3 comments
Closed

Remote file duplication #26

wizzard opened this issue May 20, 2014 · 3 comments
Labels

Comments

@wizzard
Copy link
Contributor

wizzard commented May 20, 2014

Rempte file duplicates, when simultaneously altering the same remote file from local synced folders, steps to reproduce:

  • start two megacli instances, sync the same remote folder to two local folders
  • in each local synced folder simultaneously write to the same file
  • remotely two files appear with the same name
@wizzard wizzard added the bug label May 20, 2014
@thedebian
Copy link
Contributor

If my comment can help : this issue will also be applicable for two instances running over the network, a simple lock mechanism in the sync application will not help.
I can see two potential solutions for that :

  • Creating a merged file remotely - this is not that simple as this would require automated file edition thus altering user content -
  • or keeping the two files remotely with an addition of a "conflict" flag - probably in the file name itself - to avoid confusion and keep the content as-is, the two copies will then be available remotely and locally

@wizzard
Copy link
Contributor Author

wizzard commented May 26, 2014

Addition to this issue: I noticed that sometimes on Windows, when remotly I have duplicated files, megacli starts infinite sync loop:

Sync - local file change detected: ../sync_in\⦾ৢⅨᴵ쐄ᰤꀣ䩜痉邡錂��, local data in this sync: 11565 byte(s) in 2 file(s) and 1 folder(s)
Sync - requesting file ../sync_in\⦾ৢⅨᴵ쐄ᰤꀣ䩜痉邡錂��
Sync - state change of node  to Syncing
Γª╛αºóΓà¿ß┤╡∞Éäß░ñΩÇúΣ⌐£τùëΘéíΘîéφ▒╡: Incoming file transfer starting
POST target URL: https://g.api.mega.co.nz/cs?id=aelslhcpvm&sid=4AjkKEw6-SeM6tYxo5OdV3N3TmpUZmQ0NldRwC7FR_WvQez3cZoU6jCyaA&ak=SDKSAMPLE
Sending: [{"a":"g","n":"VR8hnQoa","g":1}]
MEGA> Received: [{"s":0,"at":"QSo43-3PJCjpNrvNxhD1-cQFc-k-SSYQm3WWGoksmfQv-9EFCncW37SGfA_qHWjOkermmoSDJjUwKjT8zXTJuIrO-L1Ymq2qPYkYPsU8Ga_24izQK_AIe6GnqVIPS0Mx","g":"http://gfs27
co.nz/dl/BKad3UbtxE1e6wKvLqc1ZhaOcUHLKWMDmxsOJEnUMaA4PgVBnsA_4j8ojjx1cDWc5NAwyRweYRHSonMA1_Lsa8XEyq-bNNHipx-phX_4qqvwHY_bVQ"}]
POST target URL: http://gfs270n072.userstorage.mega.co.nz/dl/BKad3UbtxE1e6wKvLqc1ZhaOcUHLKWMDmxsOJEnUMaA4PgVBnsA_4j8ojjx1cDWc5NAwyRweYRHSonMA1_Lsa8XEyq-bNNHipx-phX_4qqvwHY_bVQ/0
[sending 0 bytes of raw data]
Sync - state change of node  to Synced
MEGA> [received 0 bytes of raw data]
Γª╛αºóΓà¿ß┤╡∞Éäß░ñΩÇúΣ⌐£τùëΘéíΘîéφ▒╡: Incoming file transfer completed, 0 KB/s
Sync - local file change detected: ../sync_in\⦾ৢⅨᴵ쐄ᰤꀣ䩜痉邡錂��, local data in this sync: 11565 byte(s) in 2 file(s) and 1 folder(s)
Sync - requesting file ../sync_in\⦾ৢⅨᴵ쐄ᰤꀣ䩜痉邡錂��
Sync - state change of node  to Syncing
Γª╛αºóΓà¿ß┤╡∞Éäß░ñΩÇúΣ⌐£τùëΘéíΘîéφ▒╡: Incoming file transfer starting
POST target URL: https://g.api.mega.co.nz/cs?id=aelslhcpvn&sid=4AjkKEw6-SeM6tYxo5OdV3N3TmpUZmQ0NldRwC7FR_WvQez3cZoU6jCyaA&ak=SDKSAMPLE
Sending: [{"a":"g","n":"VR8hnQoa","g":1}]
Sync - state change of node  to Synced
MEGA> Received: [{"s":0,"at":"QSo43-3PJCjpNrvNxhD1-cQFc-k-SSYQm3WWGoksmfQv-9EFCncW37SGfA_qHWjOkermmoSDJjUwKjT8zXTJuIrO-L1Ymq2qPYkYPsU8Ga_24izQK_AIe6GnqVIPS0Mx","g":"http://gfs27
co.nz/dl/5F-7j5ICgEz6PgJoqt-j3t_6UBbM9RUthxQStURdPeFVrcs1YB_ur4diYK4hQCQVQiL3Pk2iG0T42HhpvQa10rxXbtVK4cbKmM9gHT5AFROzMvfAaQ"}]
POST target URL: http://gfs270n072.userstorage.mega.co.nz/dl/5F-7j5ICgEz6PgJoqt-j3t_6UBbM9RUthxQStURdPeFVrcs1YB_ur4diYK4hQCQVQiL3Pk2iG0T42HhpvQa10rxXbtVK4cbKmM9gHT5AFROzMvfAaQ/0
[sending 0 bytes of raw data]
MEGA> sync ../sync_in sync0[received 0 bytes of raw data]
Γª╛αºóΓà¿ß┤╡∞Éäß░ñΩÇúΣ⌐£τùëΘéíΘîéφ▒╡: Incoming file transfer completed, 0 KB/s
Sync - local file change detected: ../sync_in\⦾ৢⅨᴵ쐄ᰤꀣ䩜痉邡錂��, local data in this sync: 11565 byte(s) in 2 file(s) and 1 folder(s)
Sync - requesting file ../sync_in\⦾ৢⅨᴵ쐄ᰤꀣ䩜痉邡錂��
Sync - state change of node  to Syncing

@wizzard
Copy link
Contributor Author

wizzard commented May 30, 2014

Reproduced remote folder duplication on Windows. Basically I just created a folder and filled it with the files. Then opened Web interface and got the following picture:

mega_dup1

At that time Mega servers were definitely lagging alot, were contantly getting "retry" messages in megacli console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants