Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
The only thing I can imagine at this point is a problem with write permissions. The Tomcat process runs as a particular user, by default the same name as the service, e.g. tomcat6. Depending on your OS, this is configured in various places. On Debian/Ubuntu, you can usually find it in /etc/default/tomcat6. If you look at that file, it will have lines like this:
TOMCAT6_USER=tomcat6
TOMCAT6_GROUP=tomcat6
That user has to be able to write into the xnat folder under the Tomcat webapps folder. You can try a couple things to see if that’s the case:
· Type “ls -ld /var/lib/tomcat6/webapps/xnat” and see what you get. Trying this on the XNAT 1.6.4 virtual machine, I get this:
xnat@xnatdev:~# ls -ld /var/lib/tomcat7/webapps/xnat/
drwxrwxr-x 16 xnat xnat 4096 Nov 11 11:02 /var/lib/tomcat7/webapps/xnat/
This works because the Tomcat user and group are set to xnat on the VM. If you see something else, that indicates that another user (probably whatever login you used to build XNAT) owns the folder and your Tomcat user can’t write to it.
· You can also try writing to the folder as that user. Try something like this:
xnat@xnatdev:/home$ sudo -H -u tomcat7 mkdir /var/lib/tomcat7/webapps/xnat/logs
mkdir: cannot create directory ‘/var/lib/tomcat7/webapps/xnat/logs’: Permission denied
That sudo command runs the specific command (in this case, mkdir) as the user indicated by the -u option. You’d want to substitute your Tomcat user (probably tomcat6) for the tomcat7 shown in this case.
If this does seem like the problem, it should be fairly easily fixable. Just run the following command (assuming your Tomcat user is tomcat6):
chown -R tomcat6.tomcat6 /var/lib/tomcat6/webapps/xnat
After that, your Tomcat user should be able to write into that folder.
If this is the case, then it’s also possible that you have the same thing going on with your prearchive and archive folders and that’s why the sessions are getting stuck: when you go to do the move, the Tomcat user is denied permission to move the file. You can run the same chown command from above but just substitute the other paths in your installation for archive, prearchive, etc.
--
You received this message because you are subscribed to a topic in the Google Groups "xnat_discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xnat_discussion/RXBVkZ7mfZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xnat_discussi...@googlegroups.com.
To post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.
-sh-4.1$ sudo -H -u tomcat6 mkdir /var/lib/tomcat6/webapps/xnat/logs
sudo: unknown user: tomcat6
sudo: unable to initialize policy plugin
-sh-4.1$ chown -R tomcat6.tomcat6 /var/lib/tomcat6/webapps/xnat
chown: invalid user: `tomcat6.tomcat6'
Can you please point out if i have made any mistake?
Many Thanks!
Suyash
Cornell University
--
You received this message because you are subscribed to a topic in the Google Groups "xnat_discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xnat_discussion/RXBVkZ7mfZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xnat_discussi...@googlegroups.com.
To post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final.
I haven't heard confirmation about XNAT version from our programmer who had installed it.
My notes say its 1.6.4.
I have other question about XNAT_RESTAPI.
Documentation shows its in bin folder of 'xnat_builder' but i wasn't able to locate this folder in the XNAT installation on our Tomcat server. Any suggestions..?
Thanks!
Suyash
![]()
This message is eligible for Automatic Cleanup! (herr...@mir.wustl.edu) Add cleanup rule | More info