Hello everyone,
Here’s my setup:
XNAT: 1.9.2.1
Container Service: 3.7.2
OS: AlmaLinux
Installation: via Docker
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/d924830e-1f1f-4cc9-862d-60c811f47cd9n%40googlegroups.com.


To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/27383e83-c571-45fe-98fd-611ec912806fn%40googlegroups.com.
![]()
Regarding the XNAT node, since I'm running XNAT with this docker-compose instructions:
volumes:
- ./xnat/plugins:${XNAT_HOME}/plugins
- ./xnat-data/home/logs:${XNAT_HOME}/logs
- /mnt/disk1/data/xnat/archive:${XNAT_ROOT}/archive
- /mnt/disk1/data/xnat/build:${XNAT_ROOT}/build
- /mnt/disk1/data/xnat/cache:${XNAT_ROOT}/cache
- ./xnat/xnat-conf.properties:${XNAT_HOME}/conf/xnat-conf.properties
- ./xnat/server.xml:/usr/local/tomcat/conf/server.xml
- ./xnat-data/home/config/auth:${XNAT_HOME}/config/auth
- ./xnat-data/remote_docker_keys:${XNAT_ROOT}/remote_docker_keys
where disk1 is a nfs shared hdd, the output files are in:
/mnt/disk1/data/xnat/build/3eac0fb3-1082-4e28-bca0-d05d4de5f2c8
${XNAT_ROOT} environment variable that gets set in that container?XNAT_ROOT=/data/xnat. But if they're not there, that would explain why the resources haven't been created./data/xnat path prefix that XNAT sees to /mnt/xnat_shared that the container execution node sees. I'm just guessing those values from looking at the paths you've given.To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/bd548cb5-5ab7-4adc-9cea-17d80b1c53dan%40googlegroups.com.
Hi Carmen,
I wonder if your XNAT instance is running as root inside of the Docker container and being root squashed by NFS. You can check this (and poke around for other things) by starting a shell session on the running tomcat container as before.
Find your container id, as before:
Kelsey$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7e61a0229c01 nginx:1.19-alpine-perl "/docker-entrypoint.…" 2 weeks ago Up 2 weeks 0.0.0.0:80->80/tcp xnat-docker-compose-xnat-nginx-1
6564dc25351c xnat-docker-compose-xnat-web "wait-for-postgres.s…" 2 weeks ago Up 2 weeks 0.0.0.0:8000->8000/tcp, 0.0.0.0:8080->8080/tcp, 0.0.0.0:8104->8104/tcp, 0.0.0.0:10001->10001/tcp xnat-docker-compose-xnat-web-1
84ddc76e24c1 postgres:12.2-alpine "docker-entrypoint.s…" 2 weeks ago Up 2 weeks 5432/tcp xnat-docker-compose-xnat-db-1
Run bash on the xnat-web container:
Kelsey$ docker exec -ti 6564dc25351c bash
Find the user running java/tomcat:
root@6564dc25351c:/usr/local/tomcat# ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 1.0 9.2 14785044 1860596 ? Ssl Nov24 157:23 /usr/local/openjdk-8/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -Djava.util.logg
root 37889 0.0 0.0 5628 3212 pts/0 Ss 10:01 0:00 bash
root 37898 0.0 0.0 7136 2576 pts/0 R+ 10:01 0:00 ps -aux
*My system shows root because I’m running locally on a dev instance. If you also see that root is running java/tomcat, the XNAT process may be getting root squashed on NFS access attempts.
Change to this user and try running a command on the file in your build space (NFS)
java_user@6564dc25351c:/usr/local/tomcat# su user_from_above
java_user@6564dc25351c:/usr/local/tomcat# cat /data/xnat/build/some-build-folder-uid-on-your-system/ciao.txt
01_CT_2345678
91_CT_2345678
java_user@6564dc25351c:/usr/local/tomcat# cp /data/xnat/build/ some-build-folder-uid-on-your-system/ciao.txt /tmp/
Are you able read and manipulate the ciao.txt file manually, as the user running tomcat/java? That should emulate permissions XNAT has to do the same, with the exception being that you are not performing this inside of the XNAT JVM.
-Matt
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/bd548cb5-5ab7-4adc-9cea-17d80b1c53dan%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/2ebae6c7-03a0-4fcf-acea-1b90ee23c104n%40googlegroups.com.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
"glob": "*.txt" on the output. I would expect this would work, but I think it should be fine to remove given that there is only the one file in the output.To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/80100536-1737-4ce2-8f61-c0ff6adf764an%40googlegroups.com.