Sorry Renjie, this was my bad. I missed pushing a commit to that branch. I just tested that commit with this command:
$ ./gradlew -PenvFile=test-vars.env fullStackComposeBuild fullStackComposeUp
After a couple minutes I had a fresh new XNAT running on http://localhost.
--
Rick Herrick
XNAT Architect/Developer
Computational Imaging Laboratory
Washington University School of Medicine
From:
xnat_di...@googlegroups.com <xnat_di...@googlegroups.com> on behalf of wenq...@gmail.com <wenq...@gmail.com>
Date: Thursday, June 3, 2021 at 6:30 PM
To: xnat_discussion <xnat_di...@googlegroups.com>
Subject: [XNAT Discussion] Re: XNAT docker-compose with dependency management failed
|
* External Email - Caution * |
--
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 on the web visit
https://groups.google.com/d/msgid/xnat_discussion/728acde3-05a9-4d6c-b258-7ef7b84818cfn%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.
Sorry for not responding earlier, I was on vacation last week.
If I had to guess, I’d say that something is already running on port 8000 on your host machine. You can check with the following command (or something like it: this works on OSX and Ubuntu 20.04, not sure how you’d do this on Windows):
lsof -i :8000
If you can’t do anything about whatever’s blocking that port (or nothing seems to be blocking it), you can also just remove that port mapping. That’s used to connect to Java/Tomcat/XNAT for debugging purposes. If you’re not debugging then you don’t need to map it, so you could remove it. You just need to edit docker-compose.yml to remove references to port 8000. There are only two lines to remove or comment out:
xnat-web:
container_name: xnat-web
<snip>
ports:
- "8000:8000" <- delete this line
- "8104:8104"
- "8144:8144"
<snip>
environment:
CATALINA_OPTS: "-Xms${XNAT_MIN_HEAP} -Xmx${XNAT_MAX_HEAP} -Dxnat.home=${XNAT_HOME} -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8000" <- remove the highlight bit here
PGPASSWORD: "${XNAT_DATASOURCE_PASSWORD}"
XNAT_HOME: "${XNAT_HOME}"
Presuming that ports 8104 and 8144 aren’t blocked by some other process, that should get the xnat-web container up and running.
--
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
Phone: +1 (314) 273-1645
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/bd65d386-7ec2-49e1-aa3f-41e6718e5145n%40googlegroups.com.