Issue with PopulateXNAT Fruit_Struct test data

已查看 30 次
跳至第一个未读帖子

Santiago Salas

未读,
2022年8月29日 09:43:552022/8/29
收件人 xnat_discussion
Hi

I'm trying to do XNAT Admin 101 course and I've  a problem with execution of the script PopulateXNAT.

When execute the script:

groovy PopulateXNAT.groovy -s URI -u name -p pass -d Fruit_Struct

I've this error:

Data file not found. Interpretting data input as uploading comma-separated list
of projects: Fruit_Struct...
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further detail
s.
Metadata YAML for Fruit_Struct not found in: data/Fruit_Struct_metadata.yaml...
Metadata YAML for Fruit_Struct found in: sample_projects/Fruit_Struct_metadata.y
aml
Parsed YAML for project Fruit_Struct.
←[40;38;5;11mData zip for Fruit_Struct not found. Download from NRG download sit
e will be attempted.
←[0mDownloading data for Fruit_Struct...
Caught: java.lang.AssertionError: 1 expectation failed.
Expected status code <200> doesn't match actual status code <503>.

java.lang.AssertionError: 1 expectation failed.
Expected status code <200> doesn't match actual status code <503>.

        at com.jayway.restassured.internal.ResponseSpecificationImpl$HamcrestAss
ertionClosure.validate(ResponseSpecificationImpl.groovy:573)
        at com.jayway.restassured.internal.ResponseSpecificationImpl$HamcrestAss
ertionClosure$validate$1.call(Unknown Source)
        at com.jayway.restassured.internal.ResponseSpecificationImpl.validateRes
ponseIfRequired(ResponseSpecificationImpl.groovy:727)
        at com.jayway.restassured.internal.ResponseSpecificationImpl.statusCode(
ResponseSpecificationImpl.groovy:106)
        at com.jayway.restassured.specification.ResponseSpecification$statusCode
$0.callCurrent(Unknown Source)
        at com.jayway.restassured.internal.ResponseSpecificationImpl.statusCode(
ResponseSpecificationImpl.groovy:114)
        at com.jayway.restassured.internal.ValidatableResponseOptionsImpl.status
Code(ValidatableResponseOptionsImpl.java:114)
        at com.jayway.restassured.response.ValidatableResponseOptions$statusCode
$0.call(Unknown Source)
        at org.nrg.testing.HttpUtils.saveBinaryResponseToFile(HttpUtils.groovy:9
)
        at org.nrg.testing.HttpUtils$saveBinaryResponseToFile.call(Unknown Sourc
e)
        at org.nrg.testing.XnatDownloadServerClient.downloadToFile(XnatDownloadS
erverClient.groovy:13)
        at org.nrg.populate.DataManager$_downloadData_closure3.doCall(DataManage
r.groovy:94)
        at org.nrg.populate.DataManager.downloadData(DataManager.groovy:83)
        at org.nrg.populate.DataManager$downloadData$0.call(Unknown Source)
        at PopulateXnat.run(PopulateXnat.groovy:78)

Any idea? I think there are a problem with the server connection  for download the zip..

Cheers



Will Horton

未读,
2022年8月29日 10:34:232022/8/29
收件人 xnat_discussion
Hello Santiago, 
Yes that 503 error suggests that the server hosting the ZIP data was not available temporarily. We had to bounce one of our local servers this morning, so I'm guessing this might be related. I just tried this exact Populate script and the data downloads to my local disk fine. Try running this again. 

Regards,
Will 

Santiago Salas

未读,
2022年8月31日 10:00:462022/8/31
收件人 xnat_discussion
Hello Will

I try again and I've the same error

C:\xnat_populate>groovy PopulateXnat.groovy -s http://server:13080 -u admin -p a
dmin -d Fruit_Struct
Any Idea for solve this?

Thank very much!

Regards

Will Horton

未读,
2022年8月31日 13:11:242022/8/31
收件人 xnat_discussion
Santiago, at this point I am wondering if this issue is related to your local network connection. Have you tried running this from a computer associated with a different network? Perhaps at your home, for instance? 
回复全部
回复作者
转发
0 个新帖子