geosolutions-it / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
https://waffle.io/geosolutions-it/geonode
Other
6 stars 12 forks source link

GeoNode Demos #713

Closed giohappy closed 3 years ago

giohappy commented 3 years ago

The current https://master.demo.geonode.org/ is using the stable branch of GeoNode (3.2.x), since the master branch is going to be quite unstable from now on. We need a new machine to test the master branch. This requires:

giohappy commented 3 years ago

@randomorder according to what have been discussed in this document we should proceed quickly with the following instances:

dev.demo.geonode.org will be possibly created for 3.3.x, but I would wait to do it.

agpenton commented 3 years ago

@randomorder Please i need access to where those VMs are located, as well as the CI where the pipeline are.

randomorder commented 3 years ago

stable.demo instance will be hosted on the current master.demo

please report current usage of hardware resources of the master instance here @agpenton we need to decide if we need to get a dedicated machine to host it

agpenton commented 3 years ago

@randomorder

Resources used in the server. space usage:

df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        20G  9.2G  9.0G  51% /
devtmpfs         16G     0   16G   0% /dev
tmpfs            16G  4.0K   16G   1% /dev/shm
tmpfs            16G  1.8G   14G  12% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/md1        487M   23M  435M   5% /boot
/dev/md3        200G   98G   93G  52% /home

Memory usage:

              total        used        free      shared  buff/cache   available
Mem:            31G        7.8G        1.8G        1.4G         21G         21G
Swap:          1.0G        561M        460M

CPU usage:

Linux 4.9.78-xxxx-std-ipv6-64 (geonode-demo)    05/24/2021  _x86_64_    (8 CPU)

02:09:12 PM  CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest  %gnice   %idle
02:09:12 PM  all   13.82    0.00    4.01    0.03    0.00    0.05    0.00    0.00    0.00   82.09
02:09:12 PM    0   31.50    0.00    8.01    0.06    0.00    0.07    0.00    0.00    0.00   60.36
02:09:12 PM    1   11.80    0.00    3.69    0.03    0.00    0.06    0.00    0.00    0.00   84.42
02:09:12 PM    2   13.04    0.00    3.94    0.02    0.00    0.05    0.00    0.00    0.00   82.95
02:09:12 PM    3   13.63    0.00    4.16    0.02    0.00    0.04    0.00    0.00    0.00   82.16
02:09:12 PM    4    8.43    0.00    2.13    0.02    0.00    0.03    0.00    0.00    0.00   89.39
02:09:12 PM    5   12.46    0.00    3.83    0.02    0.00    0.06    0.00    0.00    0.00   83.64
02:09:12 PM    6   11.31    0.00    3.59    0.01    0.00    0.03    0.00    0.00    0.00   85.06
02:09:12 PM    7    8.40    0.00    2.74    0.07    0.00    0.05    0.00    0.00    0.00   88.73

Resources used for master-demo stack:

Screen Shot 2021-05-24 at 16.15.41.png

randomorder commented 3 years ago

I though we were deploying a geonode-project from the master branch on master demo @giohappy instead I see https://github.com/GeoNode/geonode_master.git on the 3.2.x branch

We need to talk about it before moving on with the implementation

giohappy commented 3 years ago

The current master demo is using branch 3.2.x of geonode_master project, but the master branch of it is referencing geonode maser.

As agreed the new master demo will be really the master branch.

randomorder commented 3 years ago

@agpenton please move on with the setup of the new PVH machine carefully documenting each step

randomorder commented 3 years ago

@giohappy @etj I've updated the GDoc with the outcome of our discussion earlier today

agpenton commented 3 years ago

@randomorder the new server is configured, the stack of geonode-master is migrated, and running. The documentation till this moment I will finish on Monday. then I will create the CI/CD for the project.

agpenton commented 3 years ago

@randomorder @afabiani about the CI/CD:

randomorder commented 3 years ago

updates @agpenton ? please link the documentation for the machine here as well

agpenton commented 3 years ago

@randomorder after the creation of the environment, and spun up with the commands in the documentation, I ran to an issue with geoserver, cause look like is running normal, and suddenly just stop with exit code 143. I mounted the tomcat logs directory and geoserver log directory, which one is empty, then I tried to run an instance of the geoserver image to investigate the cause of why the logs were empty, and I found that the "/var/geoserver" doesn't exist, and the geoserver-data is placed to another location "/geoserver_data/data". Another thing to mention is that the geonode takes a long time to be healthy, and just get that state if the geoserver is running at the moment that it requests data from it so meanwhile, the Nginx gives a 502 error. this is the link to the documentation: https://docs.google.com/document/d/18PaJTH-Absl7xw4lRkDgBoHkEoyN57dOrpXbCS8mOD0/edit#heading=h.v5qjoqj3tphp

These are the logs from tomcat and geoserver. https://app.zenhub.com/files/23841932/6154d71d-59a1-4229-bf86-2e9535c9a8fc/download

this is a screenshot of the stack. Screen Shot 2021-06-08 at 19.43.19.png

agpenton commented 3 years ago

@randomorder the environment for the new server works well, as the build, yesterday the watchdog was restarting the geoserver. can you add the IP of the new server to the second domain stable.demo.geonode.org, so we can enable the watchdog, and test it.

randomorder commented 3 years ago

this new machine is going to host master.demo.geonode.org, not the stable version

what's missing to be able to switch the DNS record from the original machine to this one?

agpenton commented 3 years ago

well, we need to migrate the data from the old server to this one. Test that everything is ok, and then change the dns record.

randomorder commented 3 years ago

Updates @agpenton ?

agpenton commented 3 years ago

@randomorder the server is running as expected was an issue with the outdated jars, but now is resolved. the pipeline on the Jenkins server is running normally.

agpenton commented 3 years ago

@randomorder the monitoring system for the geonode master demo and geonode stable demo is settled.

master demo http://monitoring.geo-solutions.it/resources?lang=en&tag=GeoNode%3A+master.demo.geonode.org

stable demo http://monitoring.geo-solutions.it/resources?lang=en&tag=GeoNode%3A+stable.demo.geonode.org

agpenton commented 3 years ago

@randomorder in master.demo.geonode.org I getting issues with WFS and WMS. Due to these problems with the layers and styles since https://github.com/geosolutions-it/geonode/issues/824, I'm disabling temporary these probes:

till the issue get resolve.

giohappy commented 3 years ago

@agpenton as reported by chat I still see this problem on stable demo:

1 - login to Geoserver as an admin 2 - click on the GeoNode login button in Geoserver 3 - I receive an error

image

image

giohappy commented 3 years ago

The redirect uri inside GeoNode had to be changed. Fixed.

image

randomorder commented 3 years ago

news about the geoserver issue and monitoring?

@agpenton please link here the documentation for both machines (stable and master)

randomorder commented 3 years ago

Adding to my comment above @agpenton can you put in place a redirect from the master demo to this page: http://geonode-back-soon.s3-website-us-west-2.amazonaws.com/redirect.html ?

Use HTTP temporary redirect instead of permanent (code 302, not 301)

agpenton commented 3 years ago

Adding to my comment above @agpenton can you put in place a redirect from the master demo to this page: http://geonode-back-soon.s3-website-us-west-2.amazonaws.com/redirect.html ?

Use HTTP temporary redirect instead of permanent (code 302, not 301) ok...on it

agpenton commented 3 years ago

Adding to my comment above @agpenton can you put in place a redirect from the master demo to this page: http://geonode-back-soon.s3-website-us-west-2.amazonaws.com/redirect.html ? Use HTTP temporary redirect instead of permanent (code 302, not 301) ok...on it

done

agpenton commented 3 years ago

news about the geoserver issue and monitoring?

@agpenton please link here the documentation for both machines (stable and master)

master demo https://docs.google.com/document/d/18PaJTH-Absl7xw4lRkDgBoHkEoyN57dOrpXbCS8mOD0/edit#heading=h.3neyfim0i8xz

stable demo https://docs.google.com/document/d/1cQ_UTU4N0aTHPQRbqo-0JFwxZavW72R5fgJ0OUiwrtA/edit#heading=h.3f8xflw2zp7e

randomorder commented 3 years ago

stable demo https://docs.google.com/document/d/1cQ_UTU4N0aTHPQRbqo-0JFwxZavW72R5fgJ0OUiwrtA/edit#heading=h.3f8xflw2zp7e

Is this just a clone of the original Doc?

agpenton commented 3 years ago

stable demo https://docs.google.com/document/d/1cQ_UTU4N0aTHPQRbqo-0JFwxZavW72R5fgJ0OUiwrtA/edit#heading=h.3f8xflw2zp7e

Is this just a clone of the original Doc?

i didn't change anything there.

randomorder commented 3 years ago

please check all my comments in the Doc

randomorder commented 3 years ago

still pending @agpenton ?

agpenton commented 3 years ago

the documents are updated, please let me know what else i need to change in the docs.

randomorder commented 3 years ago

still lots of pending comments are we looking at the same doc? https://docs.google.com/document/d/1cQ_UTU4N0aTHPQRbqo-0JFwxZavW72R5fgJ0OUiwrtA/edit#heading=h.xxrew09cah1

randomorder commented 3 years ago

@agpenton ? you're making this extraordinarily and unnecessarily painful