Repository navigation
Adding collaborators doesn't work in docker on mac #182
Copy link
Copy link
Closed
Labels
Category:DefectExisting functionality is not working as expectedExisting functionality is not working as expectedTopic:DocumentationType:BugType:Knowledge-BaseSolutions for internal knowledgeSolutions for internal knowledge
Description
Steps to reproduce
- Use
owncloud/ocis:1.0.0-beta2 - Mount
/var/tmp/reva/datato the outside - Try to add a collaborator
- Popup with error message "grpc error"
Log
ocis_1 | 10:44AM ERR srv/app/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200320145721-40c4334849c3/internal/grpc/services/storageprovider/storageprovider.go:675 > error setting ACL error="xattr.Set /var/tmp/reva/data/einstein/files/Goethe_(Stieler_1828).jpg user.oc.acl.u:marie: operation not supported" pid=56 pkg=rgrpc traceid=3227113cc371ffc11b650727f6cd9b75
ocis_1 | 10:44AM INF srv/app/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200320145721-40c4334849c3/internal/grpc/interceptors/log/log.go:69 > unary code=OK end="01/Apr/2020:10:44:10 +0000" from=tcp://127.0.0.1:57360 pid=56 pkg=rgrpc start="01/Apr/2020:10:44:10 +0000" time_ns=2839900 traceid=3227113cc371ffc11b650727f6cd9b75 uri=/cs3.storage.provider.v1beta1.ProviderAPI/AddGrant user-agent=grpc-go/1.26.0
ocis_1 | 10:44AM ERR srv/app/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200320145721-40c4334849c3/internal/grpc/services/gateway/usershareprovider.go:91 > error committing share to storage grant error="gateway: grpc failed with code CODE_INTERNAL" pid=205 pkg=rgrpc traceid=3227113cc371ffc11b650727f6cd9b75
ocis_1 | 10:44AM INF srv/app/pkg/mod/github.com/cs3org/reva@v0.1.1-0.20200320145721-40c4334849c3/internal/grpc/interceptors/log/log.go:69 > unary code=OK end="01/Apr/2020:10:44:10 +0000" from=tcp://127.0.0.1:35660 pid=205 pkg=rgrpc start="01/Apr/2020:10:44:10 +0000" time_ns=10421700 traceid=3227113cc371ffc11b650727f6cd9b75 uri=/cs3.gateway.v1beta1.GatewayAPI/CreateShare user-agent=grpc-go/1.26.0
Reason
Create bind mount
docker run -i -v /Users/mbarz/Development:/root/tmp -t owncloud/base /bin/bash
List the mounts
overlay on / type overlay (rw,relatime,lowerdir=/var/lib/docker/overlay2/l/PTYN5X4ICYATB3PXAWTOS6LOX7:/var/lib/docker/overlay2/l/63FNL6Z76ABXDNAJIEOZ7GSMIQ:/var/lib/docker/overlay2/l/BMJYLZJXTRT3RQKQRPCKKMVPEI:/var/lib/docker/overlay2/l/C5GZ7ZIKWO3S7MG67SXNAIDEE5:/var/lib/docker/overlay2
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)
osxfs on /root/tmp type fuse.osxfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,max_read=1048576)
/dev/vda1 on /mnt/data type ext4 (rw,relatime)
osxfsis used for the bind mount- No support for extended attributes https://docs.docker.com/docker-for-mac/osxfs/
Try to create some attributes
touch /root/tmp/tt; setfattr -n user.name -v value /root/tmp/tt; getfattr -d /root/tmp/tt
setfattr: /root/tmp/tt: Operation not supported
getfattr: /root/tmp/tt: Operation not supported
Metadata
Metadata
Assignees
Labels
Category:DefectExisting functionality is not working as expectedExisting functionality is not working as expectedTopic:DocumentationType:BugType:Knowledge-BaseSolutions for internal knowledgeSolutions for internal knowledge
Activity
micbar commentedon Apr 1, 2020
@butonic @refs Maybe a configuration problem of the docker volume?
micbar commentedon Apr 1, 2020
https://www.berthon.eu/2018/containers-volumes-and-file-permissions/
Maybe the uid of the process inside the container cannot set acl's on the host system
micbar commentedon Apr 1, 2020
That is the correct assuption.
Test
butonic commentedon Apr 2, 2020
might be related to aufs not supporting extended attributtes: moby/moby#1070 (comment)
micbar commentedon Apr 2, 2020
That is what I tried
micbar commentedon Apr 2, 2020
@xoxys could you help?
butonic commentedon Apr 2, 2020
might be fixed by using the
overlay2driver: https://docs.docker.com/storage/storagedriver/overlayfs-driver/butonic commentedon Apr 2, 2020
@micbar what does
docker infosay?butonic commentedon Apr 2, 2020
wow ... but it does not fully support rename ... wtf
https://docs.docker.com/storage/storagedriver/overlayfs-driver/#limitations-on-overlayfs-compatibility
micbar commentedon Apr 2, 2020
@butonic
micbar commentedon Apr 2, 2020
So it seems, we both are already using overlay2 filesystem.
xoxys commentedon Apr 2, 2020
Not really, I would also need experimenting
micbar commentedon Apr 14, 2020
needs concept.
micbar commentedon Apr 14, 2020
@pmaier1 @felixboehm we need to schedule a concepts call.
8 remaining items
refs commentedon Jan 13, 2021
ping @micbar could we try this again? Or at least have it on the radar.
micbar commentedon Jan 13, 2021
It doesn't work. It is a known issue on docker for mac, that the current fst doesn't support xattr.
refs commentedon Jan 13, 2021
thanks for the update. Let's leave it open as a known issue
ddelange commentedon Jan 24, 2021
Another
xattrrelated side-effect on Mac occurs with a local bind mount, which will crash the startup sequence ofstorage-users,storage-metadata,storage-home:micbar commentedon May 29, 2024
outdated. Ocis doesn't use xattrs anymore.