-
Notifications
You must be signed in to change notification settings - Fork 1.2k
init: fails on 2nd run with NTFS on Linux (gitdb lib bug) #1880
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
Comments
@villasv Hm, very interesting. I am not able to reproduce this myself 🙁 Does this script still reproduce that for you?
Notice I've added Is there anything special about your scenario? Thanks, |
I'm using Bash on WSL, so maybe something funny is happening at the filesystem level?
|
@villasv what happens if you run
Do they have a regular user/group? Is it possible that there are some security settings on Linux (this is Linux right) that prevent access to any other process to these files except git itself? What do you think, @efiop ? |
@shcheklein @villasv Judging by |
@shcheklein Nothing happens with $ git status
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .dvc/.gitignore
new file: .dvc/config When I $ ls -al .git/objects/obji_90ndko
-rwxrwxrwx 1 villasv villasv 15 May 20 13:54 .git/objects/obji_90ndko Both files exist and have the same contents, but it's not a link. @efiop It's a mounted NFS partition, though I'm not familiar with the details. WSL automounts C:/ inside |
I dug into # rename onto existing doesn't work on windows
if os.name == 'nt':
if isfile(obj_path):
remove(tmp_path)
else:
rename(tmp_path, obj_path)
# end rename only if needed
else:
rename(tmp_path, obj_path)
# END handle win32 It seems they're attempting to handle NTFS, but doing so with an OS check. This fails for me because I have NTFS but under Linux :-/ |
That's sad. And looks like |
I'm still curious as to why this only happens in the second time I hit |
It is just stable 🙂
Currently we don't. If the issue is in that particular spot, it seems feasible to just fix it. Or, we could try |
We would need to support our own branch for gitdb which is not nice at all. How about we just ignore this error? adding files to git is not critical at all for us and it's an easiest workaround for now? Re the option - I was thinking more about a config option, not a CLI option. |
We could temporarily use our branch as a dependency, until the fix is officially released yes, but it is not like the project is completely dead.
Sure. |
Our user was experiencing issue [1] when using a git repository on NTFS mount running on Linux. The current check checks if we are running on Windows, but it should really check if we are on NTFS. That check is not trivial, so it is simpler and better to just always apply NTFS-specific logic. [1] iterative/dvc#1880 (comment)
Our user was experiencing issue [1] when using a git repository on NTFS mount running on Linux. The current check checks if we are running on Windows, but it should really check if we are on NTFS. And since checking fs type is not that trivial and not efficient, it is simpler and better to just always apply NTFS-specific logic, since it works on other filesystems as well. [1] iterative/dvc#1880 (comment)
Our user was experiencing issue [1] when using a git repository on NTFS mount running on Linux. The current check checks if we are running on Windows, but it should really check if we are on NTFS. And since checking fs type is not that trivial and not efficient, it is simpler and better to just always apply NTFS-specific logic, since it works on other filesystems as well. [1] iterative/dvc#1880 (comment)
@villasv Sorry for such a huge delay. I've pushed a fix for gitdb to my branch, could you install it after dvc and give it a try, please? E.g. |
Hi. So was the partition NTFS or NFS? Has this issue been reported to gitdb? Thanks |
@jorgeorpinel NTFS and yes gitpython-developers/gitdb#52 |
It seems it works as expected! 🎉 |
@efiop , did you forget to close this one or is there still something to be done? |
@MrOutis Waiting for gitpython-developers/gitdb#52 to get merged. |
For the record, gitpython-developers/gitdb#52 got merged, now waiting for the new gitdb release, so we could update our requirements. |
DVC Version: 0.35.7
lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Steps to reproduce:
The text was updated successfully, but these errors were encountered: