permission issue with maven during install

681 views
Skip to first unread message

John McLean

unread,
Nov 7, 2012, 12:27:55 PM11/7/12
to xnat_di...@googlegroups.com
Hi folks, 

I'm working through the install of xnat on my server. I'm getting the following error when I run /bin/setup.sh (i.e. steps 4 on the install instructions):

Using XDAT Installation: /home/jmclean/xnat
Using JAVA_HOME:         /usr/java/jdk1.7.0_07
 
Verify Java Version (with java -version)
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (rhel-1.49.1.11.4.el6_3-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
 
chmod: changing permissions of `/home/jmclean/xnat/plugin-resources/maven-1.0.2/bin/maven': Operation not permitted
Executing /home/jmclean/xnat/plugin-resources/maven-1.0.2/bin/maven xdat:setup

....

I looked in the setup.sh file and I see the line:

chmod 775 "$MAVEN_HOME"/bin/maven

So I guess this is what is failing, but I'm not sure why, I mean, I could do sudo chmod etc but I thought I'd be masking a more fundamental problem.

Any tips would be much appreciated

Many Thanks
John


Herrick, Rick

unread,
Nov 7, 2012, 1:49:49 PM11/7/12
to xnat_di...@googlegroups.com

Hey John,

 

I can only imagine that the ownership of some folder or file at some level down to the xnat/plugin-resources/maven-1.0.2/bin/maven script is not owned by the user running the setup.sh script. So I think the sudo/chmod operation is actually what you want to do. Basically your xnat folder and everything underneath it should be owned and accessible to the same user account you’re using when launching the setup.sh script.

 

You could do something like:

 

find ~/xnat –ls

 

Look and see if anything looks weird, i.e. root owns some folder or permissions are set to 000 or whatever.

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msg/xnat_discussion/-/FuLCkbiMiEMJ.
To post to this group, send email to xnat_di...@googlegroups.com.
To unsubscribe from this group, send email to xnat_discussi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xnat_discussion?hl=en.




The material in this message is private and may contain Protected Healthcare Information (PHI). 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.
Reply all
Reply to author
Forward
0 new messages