Git Product home page Git Product logo

Comments (13)

kaicode avatar kaicode commented on August 10, 2024 1

Using a complete file path to the RF2 zip file should also work.

from snowstorm.

MaryamRazavi avatar MaryamRazavi commented on August 10, 2024 1

We are not using Slack on work laptop. Is there any other possibility to have a call with skype? or teams?

from snowstorm.

kaicode avatar kaicode commented on August 10, 2024

Hi @MaryamRazavi, no problem, let's work through it.
It looks like you have created the import configuration but the step to upload the file with curl is not working.
It looks like curl can not find the file that needs uploading. After the @ sign you have provided just the filename without a file path so check that the file is in the same directory/folder as where you are running the command from.

from snowstorm.

MaryamRazavi avatar MaryamRazavi commented on August 10, 2024

Hi @kaicode, Thank for answering me. The problem is we are using Putty and I dont know how to run that from the folder I have the file! :( But I think I can figure it out. I will try the way you mentioned.

from snowstorm.

MaryamRazavi avatar MaryamRazavi commented on August 10, 2024

I have created an import job in snowstorm and used the ID and the used this curl: curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' -F 'file=@C:\Users\smri01\Downloads\SnomedCT_InternationalRF2_PRODUCTION_20230630T120000Z.zip 'http://nixv1te.sos.local:8080/snowstorm/imports/05a3fa14-fbee-4f78-9bf9-84a1afedca7f/archive'
But nothing happned, I don't see any log in Putty.

from snowstorm.

kaicode avatar kaicode commented on August 10, 2024

The file upload is quite large, around 500MB. It may take some time.
You should be able to check the status of the update using:

curl http://nixv1te.sos.local:8080/snowstorm/imports/05a3fa14-fbee-4f78-9bf9-84a1afedca7f

from snowstorm.

MaryamRazavi avatar MaryamRazavi commented on August 10, 2024

The file upload is quite large, around 500MB. It may take some time. You should be able to check the status of the update using:

curl http://nixv1te.sos.local:8080/snowstorm/imports/05a3fa14-fbee-4f78-9bf9-84a1afedca7f

Hi,
"status": "WAITING_FOR_FILE", is that something we are expecting to see?

from snowstorm.

kaicode avatar kaicode commented on August 10, 2024
  • When the import is created, using POST /imports, then the status will be WAITING_FOR_FILE.
  • Once the file has been uploaded, using POST /imports/{uuid}/archive, the import will start and the status will be RUNNING.
  • About an hour after starting the import should complete successfully, then the status will be COMPLETED.
  • If the import fails for any reason the status will be FAILED and there will be additional information about the issue in the logs.

from snowstorm.

kaicode avatar kaicode commented on August 10, 2024

Your curl statement may have an issue, I can see there is no closing quote after the file path.

from snowstorm.

MaryamRazavi avatar MaryamRazavi commented on August 10, 2024

Your curl statement may have an issue, I can see there is no closing quote after the file path.
It should be like this right?
curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' -F 'file=@C:\Users\smri01\Downloads\SnomedCT_InternationalRF2_PRODUCTION_20230630T120000Z.zip' 'http://nixv1te.sos.local:8080/snowstorm/imports/81546f63-a799-4ac5-94ea-f10408468622/archive'

then this is what I can see in putty:
[developer@nixv1te ~]$ curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' -F 'file=@C:\Users\smri01\Downloads\SnomedC T_InternationalRF2_PRODUCTION_20230630T120000Z.zip' 'http://nixv1te.sos.local:8 080/snowstorm/imports/0d340464-e729-476d-96f3-a44aab91922f/archive'
curl: (26) couldn't open file "C:\Users\smri01\Downloads\SnomedCT_InternationalR F2_PRODUCTION_20230630T120000Z.zip"

this what I can see in Swagger UI when I tried to upload the file in via snowstorm:
{
"status": "RUNNING",
"type": "SNAPSHOT",
"internalRelease": false,
"moduleIds": [],
"createCodeSystemVersion": true,
"branchPath": "MAIN"
}
then:
{
"status": "FAILED",
"type": "SNAPSHOT",
"internalRelease": false,
"moduleIds": [],
"createCodeSystemVersion": true,
"branchPath": "MAIN"
}

from snowstorm.

MaryamRazavi avatar MaryamRazavi commented on August 10, 2024

I will just mention that I have tried to upload the same file in another server/ local host and everything was fine and I got no error. I'm wondering if this problem has something to do with this spesific server?!

from snowstorm.

kaicode avatar kaicode commented on August 10, 2024

Shall we have a quick call to sort it out? I'm on Slack.

from snowstorm.

kaicode avatar kaicode commented on August 10, 2024

This import issue is now resolved.

from snowstorm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.