Closed NikitaKharkov closed 7 years ago
I spat on everything and decided to reset docker. So I reseted the docker and again did all the thing by tutorial which has this decision and it helped me.
I can add to this issue that I often build container with any different combinations of volumes. Also I delete all possible volumes by commands docker volume rm [names of volumes]
every time I rebuild containers. I think in such actions was problem.
The error repeating again. I can't do the same thing every time when I have such problem. Any ideas?
We do not use docker volume rm
very often, so that might be part of it. Sorry I don't have any great advice or ideas.
I think the problem is in the cache of your project or something like this. Because the line:
.rs/admin/la_projects/der-ibe/ibe-quotas-api
implies /Users/admin/la_projects/der-ibe/ibe-quotas-api
. So I think that some files writes the volumes after their deleting in incorrect way.
I have no any experience with NFC, maybe you can just check it? You are in subject so you could more effective find the problem. Thanks.
@NikitaKharkov You have not given a reason that you think it is a problem with the cache besides a Docker for Mac line that is cut off which we have no control over, and has nothing to do with cache. The only cache which d4m-nfs is involved with is the MobyVM packages which have nothing to do with this.
I have no idea if this is connected to your problem, but when you are exporting /Volumes, you are literally exporting everything on your Mac. The location /Volumes
on a Mac is actually just a symlink to /
, and it is never good to export a symlink. On top of that, with NFS, you can not export child directories which are on the same file system, and since you are both /Users
and /private
this could cause problems. The fragment of your docker compose yml certainly does not warrant this. Since you are using relative mounts in the docker compose yml I have no idea where these files are, but I am assuming they are under a directory named /Users/admin
. If that is the only directory you are mounting Docker volumes from, then I would suggest to change your d4m-nfs/etc/d4m-nfs-mounts.txt
file to this:
/Users/admin:/Users/admin:0:0
You probably will also have to clean up your /etc/exports
to remove all the lines from # d4m-nfs exports
down.
I leave only this string and it's helped me!!! Thank you very much!
UPDATE:
I have to say that error came again and I just changed folder to fix it again. So I made instead /Users/admin:/Users/admin:0:0
/Users/admin/projects:/Users/admin/projects:0:0
and it works normally again. Try to play with folders if this error appears again and again. But I think it's not OK to do that :)
P.S.: Don't forget that you can reset docker image and everything will become ok again. Good luck!
The error is:
d4m-nfs/etc/d4m-nfs-mounts.txt
/etc/d4m-nfs-mounts.txt
/tmp/d4m-mount-nfs.sh
/tmp/d4m-nfs-mounts.txt
/etc/exports
-------------------------------------------------------------------------
Looks like the problem is incorrect using strings... I am very weak in this, so I couldn't even assume where the problem is. https://github.com/IFSight/d4m-nfs/issues/32#issuecomment-284417804 - this similar problem in open issue, but the man don't say anything more about it... It's a pity.
I use docker-compose version 3. Maybe in this problem. When I used version 2 with
volume_from
everything was ok. But then I switched and try to write next lines: