Open markovendelin opened 3 years ago
Hi @markovendelin,
What are the permissions on the two directories?
/var/lib/docker/volumes/omero-data/_data
/var/lib/docker-data/omero/data
?
You might try mounting parent directories (even /var/lib
) read-only and investigating, both as root in the container but also as user id 1000 which is what OMERO runs as.
Hi @joshmoore,
that's what is odd - permissions and UID is the same when viewed from inside the container:
> ls -l /
drwxr-xr-x 11 omero-server root 11 May 25 06:39 OMERO
-rw-r--r-- 1 root root 12114 Nov 13 2020 anaconda-post.log
Same was checked inside /OMERO in the container.
Permissions and IDs were the same on the host for those directories.
Let me ask if you have managed to run OMERO server using bind mounts or only named volumes?
PS: maybe there is a difference. Let me check again
Let me check again
:+1: (Otherwise, I'd ask about selinux :wink:)
Let me ask if you have managed to run OMERO server using bind mounts or only named volumes?
We've definitely run with bind mounts.
Yes, issue was that the _data folder itself was not owned by user ID 1000. Should have spotted it myself, tbh.
I think it would make sense to add a note regarding ownership of the folders in case if someone runs into it as well. Corresponding folders are (with numerical IDs)
drwxr-xr-x 11 1000 0 11 May 25 11:39 data
drwxr-xr-x 5 1000 997 5 May 25 11:38 var
Thanks for letting us know, @markovendelin. I'll leave this open for the README update. (Feel free to suggest text if you have any strong opinions)
I have trouble with the use of bind mounts when using omero-server-docker. At the same time, with named volumes, all works as it should.
With the bind mounts, the server starts but does not allow to import images as if the data is read-only. Test was done by making a copy of working named volume solution into another location on the host.
Used start command:
Corresponding working solution with named volume:
When checking permissions inside /OMERO, all seem to be the same.
Docker inspect returns
Not working bind mount
Working named volume:
Not sure how to debug it further.