ocis: Adding collaborators doesn't work in docker on mac
Steps to reproduce
- Use
owncloud/ocis:1.0.0-beta2
- Mount
/var/tmp/reva/data
to 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)
osxfs
is 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
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 23 (22 by maintainers)
It doesn’t work. It is a known issue on docker for mac, that the current fst doesn’t support xattr.
That is the correct assuption.
Test