Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update availability of HC-LE data #75

Closed
p-a-s-c-a-l opened this issue Jul 8, 2020 · 13 comments
Closed

Update availability of HC-LE data #75

p-a-s-c-a-l opened this issue Jul 8, 2020 · 13 comments
Assignees
Labels
question Further information is requested SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless wontfix This will not be worked on

Comments

@p-a-s-c-a-l
Copy link
Member

p-a-s-c-a-l commented Jul 8, 2020

We've recently synchronised DEV ->PROD CSIS and updated the list of supported cities from the information retrieved from geoserver.myclimateservice.eu. This is the current situation regarding availability of cities HC-LE input data for screening:

image

As @DenoBeno mentioned, we've to urgently update the information on data availability for heat wave local effect and pluvial flooding local effect ("cities layer").

Moreover, we don't have to forget to publish Hazard Local Effects Input Layers as OpenData as we've announced in the Data Management Plan. But this can only be done when all layers have been loaded. Can you give an estimate when this is expected to be completed @DanielRodera ?

@p-a-s-c-a-l p-a-s-c-a-l added question Further information is requested SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless labels Jul 8, 2020
@DanielRodera
Copy link

Hi @p-a-s-c-a-l ,

The status:

We noticed there were about 20 cities with missing layers and we fix the scripts and reload them all in a new DDBB.

The DDBB with the new data is already loaded in our server, we will update in the Geoserver today on EOB time.

We also created a script which loads all the cities which have the data requirements for been calculated. This step is needed for the following steps.

We are preparing another VM to parallelize the process to load the cities faster. We also prepared a new database empty with only the data needed for running all the scripts in differents VM at the same time.

AIT offered a VM for running the scripts as well, we put a copy of our VM in the Atos FTP server. Once the VM is up and running we will have 3 different VM loading data at the same time. It will speed up the loading process very much.

@DenoBeno
Copy link

DenoBeno commented Jul 13, 2020 via email

@DanielRodera
Copy link

Hi @DenoBeno,

The server requirements are the following:
RAM: 48Gb
Cores: 8
Disk Space: About 140 Gb (the VM backup is around 100Gb)

In order to run, you will need to install Xeon virtual management software.

As @maesbri said in the mail, would be nice if we could have access to the server to run the scripts and make the proper setup. If it is not possible, I will send you a detailed guide on how to run all the processes by mail.

@p-a-s-c-a-l
Copy link
Member Author

The DDBB with the new data is already loaded in our server, we will update in the Geoserver today on EOB time.

Did you update the Geoserver DB @DanielRodera ? This is the current status. It doesn't look different than this one:

image

@p-a-s-c-a-l
Copy link
Member Author

Did you update the Geoserver DB @DanielRodera ? This is the current status. It doesn't look different than this one:

@DanielRodera
Copy link

Hi,

I updated the database, now there are 192 cities available:

image

Let me know if you find any error, we have a backup to go back to the original database if needed,

@patrickkaleta
Copy link

Shall I (or @therter) now run the republish script on DEV and check how many cities will be available there?

@therter
Copy link

therter commented Jul 30, 2020

Shall I (or @therter) now run the republish script on DEV and check how many cities will be available there?

Yes, you can start the script, so that we can check, if emikat can do calculations for the new cities.

@patrickkaleta
Copy link

Shall I (or @therter) now run the republish script on DEV and check how many cities will be available there?

Yes, you can start the script, so that we can check, if emikat can do calculations for the new cities.

Tried to execute the script on DEV, but it fails with error: bash: /usr/bin/shp2pgsql: No such file or directory

Script on DEV seems to be the same as the most recent version of it in the Git repo (2 months old). Is there maybe a newer version of the script somewhere or do I need to run anything else before running the republish script?

@therter
Copy link

therter commented Jul 30, 2020

Tried to execute the script on DEV, but it fails with error: bash: /usr/bin/shp2pgsql: No such file or directory

Script on DEV seems to be the same as the most recent version of it in the Git repo (2 months old). Is there maybe a newer version of the script somewhere or do I need to run anything else before running the republish script?

This is the newest version. It seems that shp2pgsql is not installed within the postgis docker container since the last image update. I will take a look at it.

@therter
Copy link

therter commented Jul 30, 2020

The new cities are now in the dev instance.

There were two problems after the last image update:

The drupal database was not updated and tried to use the postgis-2.5.so library.

Normally, this can be fixed with the following command (see here)

docker exec csis-postgis update-postgis.sh

But in this case, the update-postgis.sh script also tried to use the old library, so within the postgis container, a symbolic link to the existing postgis-3.so library had to be created.

/usr/lib/postgresql/10/lib# ln -s postgis-3.so postgis-2.5.so 

The tool shp2pgsql was not installed

The new docker image does not install the postgis client tools. So I had to install the postgis client tools with the following commands:

apt-get update
apt-get install postgis

After this, it was possible to execute the republish script

@p-a-s-c-a-l
Copy link
Member Author

p-a-s-c-a-l commented Jul 30, 2020

The new cities are now in the dev instance.

There were two problems after the last image update:

The drupal database was not updated and tried to use the postgis-2.5.so library.

Normally, this can be fixed with the following command (see here)

docker exec csis-postgis update-postgis.sh

But in this case, the update-postgis.sh script also tried to use the old library, so within the postgis container, a symbolic link to the existing postgis-3.so library had to be created.

/usr/lib/postgresql/10/lib# ln -s postgis-3.so postgis-2.5.so 

The tool shp2pgsql was not installed

The new docker image does not install the postgis client tools. So I had to install the postgis client tools with the following commands:

apt-get update
apt-get install postgis

After this, it was possible to execute the republish script

@therter When we recreate the container, your customisations are lost. Therefore we have to create a custom postgis/postgis:10-3.0 image as we did for Drupal.

@p-a-s-c-a-l
Copy link
Member Author

@DenoBeno Please keep in mind that once the calculation is finished, somebody has to update the respective open data sets we've uploaded to Zenodo. See Publish Hazard Local Effects Input Layers as OpenData.

I tried to make an intermediate update of the datasets today, but I was not able to download the SHP files from geoserver.myclimateservice.eu. So this has to be fixed first or the local effects input data has to be uploaded to the CLARITY sFTP.

Furthermore, the Local Effects Datasets GeoServer URIs have to be updated in CKAN.

@p-a-s-c-a-l p-a-s-c-a-l added the wontfix This will not be worked on label Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

6 participants