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

Duplicate directories created #186

Closed
vaiby opened this issue May 7, 2015 · 10 comments
Closed

Duplicate directories created #186

vaiby opened this issue May 7, 2015 · 10 comments
Labels
Milestone

Comments

@vaiby
Copy link

vaiby commented May 7, 2015

Hi,
I am trying to upload a large (~2gb) and hugely nested (~10 to ~15 level deep) directory with loads of files (~20,000). Unfortunately, midway through the upload the drive client starts creates a new directory with same name and starts uploading there. It happens lower down the tree as well, and is entirely unpredictable from my side. (I am using version 0.1.6)

I also faced this when there was significantly less nesting, but then I was able to manually merge remotely and the client would start behaving all good.

a) I wanted to report this issue.
b) It would be useful to merge duplicate directories on the remote side, which would allow me to issue a "merge" once I am done to solve this issue. That is an enhancement request :)

Vaibhav
PS: Thanks for the excellent client otherwise!

@vaiby
Copy link
Author

vaiby commented May 7, 2015

Ok, just noticed, I was not on the latest client. Have updated, and uploading right now. Fingers crossed!

@vaiby
Copy link
Author

vaiby commented May 7, 2015

It seems to be working, except that I am not done yet. The good thing is the new client warns about duplicate directories (probably a leftover of previous uploads) so that I can manually delete them.

The bad thing is after each push I have to do another push and it discovers a few more files to update -- it has happened over 5 times now (most of these times, including the last two, it has not discovered any "duplicate directory" which it otherwise faithfully warns about).

Why should that be?

Edit: In an completely unrelated update, the duplicate directory was still created (so the original bug is still present). However, thankfully, in next push, it warned about the same, and I could resolve the issue.

@odeke-em
Copy link
Owner

odeke-em commented May 7, 2015

Hello @vaiby thank you for reporting this and welcome to drive. Pardon the late reply, it was night on my side.
Thanks for the self analysis, I'll take a closer look at it when I get home in about 10 hours.

@odeke-em
Copy link
Owner

Ping.

@odeke-em
Copy link
Owner

odeke-em commented Jul 3, 2015

Please get the latest from master.

@vaiby
Copy link
Author

vaiby commented Jul 3, 2015

So far, no problem. But still to subject to heavier tests: will report when I manage the same and if I encounter any issue. Thanks!

@odeke-em
Copy link
Owner

Ping!

@glebm
Copy link

glebm commented Jul 20, 2015

I have just encountered issue when pushing a git repository to drive (lots of small directories in .git/objects), although all of the duplicate directories were completely empty in my case.

Using the version I have just installed with go get -u github.com/odeke-em/drive/cmd/drive.

@odeke-em
Copy link
Owner

odeke-em commented Aug 1, 2015

Ping!

@odeke-em
Copy link
Owner

If you get the latest code from master, this should be fixed. You can do so by:

$ go get -u github.com/odeke-em/drive/drive-gen && drive-gen

Closing this issue. Please re-open if it persists.

@odeke-em odeke-em added the bug label Aug 11, 2015
@odeke-em odeke-em added this to the v0.2.8 milestone Aug 11, 2015
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