IHTSDO / snowstorm-deploy

Deployment scripts for Snowstorm Terminology Server
0 stars 0 forks source link

Can't import FULL release file after deployment #3

Closed rathpanyowat closed 7 months ago

rathpanyowat commented 7 months ago

I have followed the README.md file and successfully deploy snowstorm to Ubuntu 20.04 LTS. However, when I tried to create an import job like this.

{ "branchPath": "MAIN", "createCodeSystemVersion": true, "type": "FULL" }

The server returned with

{ "error": "BAD_REQUEST", "message": "FULL import is only implemented for the MAIN branch and when there is no existing content." }

I haven't done anything to the server before.

I have tried to run the snowstorm.jar directly with --import-full but it doesn't work either with the same error message.

The SNAPSHOT import work without any problems. I'm not sure I did something wrong or it's the problem from the code side.

kaicode commented 7 months ago

Hi Rath. What version of Snowstorm are you using? Also what response do you get when you list concepts using /MAIN/concepts ?

rathpanyowat commented 7 months ago

Thanks for response @kaicode

I followed this README page. I think snowstorm version is 9.2.0. Actually, I only run these two commands.

About the response, this is what I got:

{
  "items": [

  ],
  "total": 0,
  "limit": 50,
  "offset": 0
}
kaicode commented 7 months ago

This is fixed in later versions of Snowstorm, (see Snowstorm issue 575. I will attempt to update these deployment scripts in the next few weeks to use the latest Snowstorm version.

rathpanyowat commented 7 months ago

I see. Thanks!

kaicode commented 7 months ago

@rathpanyowat I have now developed, tested and released the deployment scripts for the latest Snowstorm, version 10.2.1. To use the new versions just follow the deployment steps the same as before.

Elasticsearch, Snowstorm and Nginx deploy well on Ubuntu 20. The FULL import starts okay on this version. The full import is still running for me, it will take many hours so I will let it run overnight.

kaicode commented 7 months ago

The FULL (full history) import of 72 International releases just completed. Snowstorm was deployed using the latest deployment scripts, on an AWS EC2 instance type t2.xlarge (16g of RAM) using Ubuntu 20.04. The import took just over 3 hours.