Are you getting those values from the setup.sh script output? Right as you run that script, it should output something like:
Using XDAT Installation: /data/tip/home/xnat_builder_1_6dev
Using JAVA_HOME: /usr/lib/jvm/java-1.7.0
Verify Java Version (with java -version)
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
That would indicate exactly what the script is getting when invoked, which may differ from what you’re seeing running from the command line.
If you see the same thing there, then the only other thing I could guess would be issues with the OpenJDK version of Java 1.7. If you’re on Ubuntu, it’s easy enough to install the Oracle 1.7 JDK:
http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
--
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 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.
Are you able to log into PostgreSQL through psql? This is really not an XNAT issue, but is an issue with how the PostgreSQL server is configured. You need to make sure you can connect to that before XNAT itself can connect. Like I said previously, I’d also suggest not using the postgres user for that purpose, but creating a specific xnat user and creating a config in your pg_hba.conf for that user.
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
From: xnat_di...@googlegroups.com [mailto:xnat_di...@googlegroups.com]
On Behalf Of William Chaney
Sent: Monday, July 28, 2014 3:04 PM
To: xnat_di...@googlegroups.com
Subject: [XNAT Discussion] Re: JAVA_HOME variable not defined correctly
it is now giving me a new problem this is the text
--
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 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.
That’s something you’re going to need to get figured out. There’s clearly some kind of connection issue with your database. You should be able to add a user (e.g. xnat), modify the pg_hba.conf to allow that user to connect from the localhost without a password, restart postgres, and then connect with that user.
You can find out more about the pg_hba.conf here: http://www.postgresql.org/docs/9.2/static/auth-pg-hba-conf.html
You’ll want to add something like this:
host xnat xnat 127.0.0.1/32 trust
local xnat xnat trust
That says that on hosts starting with 127.0.0 (i.e. anything that is normally construed as localhost), the xnat user is trusted on the xnat database, so you can’t fail on login. The second line says that the same thing goes for user xnat on database xnat on the localhost (which can be different from 127.0.0.* depending on whether the connection uses the loopback network interface).
I think you don’t need to add the xnat role before doing that, but you want to do that anyway just in case.
But however you do it, you need to be able to connect to the database reliably as a prerequisite to getting XNAT to work.
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
From: xnat_di...@googlegroups.com [mailto:xnat_di...@googlegroups.com]
On Behalf Of William Chaney
Sent: Wednesday, July 30, 2014 10:44 AM
To: xnat_di...@googlegroups.com
Subject: [XNAT Discussion] Re: JAVA_HOME variable not defined correctly
I could not connect through psql through anyone else but postgres whenever I try to sign in to another postgres user it says their is no password entry for them I have several times gone in through users to circumvent this problem: MyUser > Root > postgres and for some reason postgres does not like my password.
--
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 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.