/containers/{id}
API is not restricted to admins only, any logged-in user can access it. The information that comes back will be different for admins (and project owners) vs ordinary users, because a lot of the information about a container launch is sensitive, but the API should be accessible. --
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/023b8403-4722-4018-9b46-280a26b638b4n%40googlegroups.com.
url = f"{host}/data/projects/{project}/subjects/{subject_id}/experiments?format=csv&xsiType=xnat:mrSessionData&columns=xnat:subjectData/label
Session
object. Something like this:s = requests.Session() s.auth = (xnat_user, xnat_pass) s.post(host + '/data/JSESSION')
s
object after that should use that JSESSIONID cookie automatically, without you needing to manually parse it out and store it. See https://docs.python-requests.org/en/latest/user/advanced/#session-objectsr
, you can call r.json()
to parse the response body into a dictionary rather than doing json.loads(r.text)
.To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/701b7cc3-f7d7-4546-b9eb-f43c148f2e5en%40googlegroups.com.
docker run -i -t doc.northwestern.edu:6000/mriqc:v1.0 /bin/sh
python /usr/local/bin/mriqc.py --project=TEST --subject=/archive/subjects/XNAT_S02070 "--session=/archive/subjects/XNAT_S02070/experiments/XNAT_E02222" --analysis_name=mriqc --overwrite=No "--t1w=/archive/subjects/XNAT_S02070/experiments/XNAT_E02222/scans/3"
In checking the configuration page for containers everything looks ok on status and I even removed and readded the resources to ensure it was saying ok. I'm not sure if this issue has been encountered on XNAT 1.8.9.1? There is no std.out and std.err since it only writes out a file at the end of the day.
Thanks,
Ajay
containers.log
file, or any other logs?To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/ba615598-b81f-457f-a8af-dd9de75f1735n%40googlegroups.com.
2024-06-19 12:17:24,481 [DefaultMessageListenerContainer-5] ERROR org.nrg.containers.api.DockerControlApi - Request error: POST http://doc.northwestern.edu:2375/containers/5cc9cf0300ffd8f49ca0537fd308eb08e59b887b4ec24ae7a8ed0f351e9ff1e0/start: 500
2024-06-19 12:17:24,694 [DefaultMessageListenerContainer-5] ERROR org.nrg.containers.services.impl.ContainerServiceImpl - Container launch failed for wfid 53753.
org.nrg.containers.exceptions.ContainerException: Failed to start
at org.nrg.containers.services.impl.ContainerServiceImpl.start(ContainerServiceImpl.java:719)
at org.nrg.containers.services.impl.ContainerServiceImpl.launchResolvedDockerCommand(ContainerServiceImpl.java:702)
at org.nrg.containers.services.impl.ContainerServiceImpl.launchResolvedCommand(ContainerServiceImpl.java:635)
at org.nrg.containers.services.impl.ContainerServiceImpl.launchResolvedCommand(ContainerServiceImpl.java:620)
at org.nrg.containers.services.impl.ContainerServiceImpl.consumeResolveCommandAndLaunchContainer(ContainerServiceImpl.java:595)
at org.nrg.containers.jms.listeners.ContainerStagingRequestListener.onRequest(ContainerStagingRequestListener.java:49)
at sun.reflect.GeneratedMethodAccessor2060.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:180)
at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:112)
at org.springframework.jms.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:104)
at org.springframework.jms.listener.adapter.MessagingMessageListenerAdapter.onMessage(MessagingMessageListenerAdapter.java:69)
at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:719)
at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:679)
at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:649)
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:317)
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:255)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1167)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1159)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1056)
at java.lang.Thread.run(Thread.java:750)
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/3aceede4-2880-404e-8e45-30a8a8d5e6b1n%40googlegroups.com.