[GeoNetwork-devel] geonetwork website is down/missing

The GeoNetwork website (https://geonetwork-opensource.org) is not available.

Drilling into content like https://geonetwork-opensource.org/manuals/trunk/eng/users/build/html/manuals/trunk/eng/users/ is also empty.

Looking at the build server shows GeoNetworkWebsite job completed 11hrs ago.

Digging into the logs this job appears to build several branches, and contains some indication that it is having trouble uploading:

Example:

=======> latest manuals created
=> Build website
rm -rf build/*
mkdir -p build/html build/doctrees
sphinx-build -b html -d build/doctrees   . build/html
Traceback (most recent call last):
  File "/usr/local/bin/sphinx-build", line 7, in <module>
    from sphinx import main
ImportError: No module named sphinx
make: *** [html] Error 1
=======> Copy GeoNetwork 3.x.y docs to website folder

Example:

···


Jody Garnett

Checking out docs and building locally (want to see how translations are handled anyways) to check if change of maven repository is messing us up.

I ran into a very macOS specific issue:

% maven package -Platest

ImportError: dlopen(/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_ssl.cpython-37m-darwin.so, 2): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

Referenced from: /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_ssl.cpython-37m-darwin.so

Reason: image not found

It appears that:

  1. apple switched from OpenSSL to LibreSSL.
  2. home-brew which I use to install gdal, switched from OpenSSL 1.0 to libssl 1.1
  3. There are steps (a bit sketchy) to install the older version

Building using make html works (so sphinx itself is fine) … so I have a mystery.

Looking at the pom.xml file it calls through to make, …

The execution org.codehaus.mojo:exec-maven-plugin#build-docs calls:

make html_languages LANGS=“‘en’ ‘fr’”

  • loads translations [fr]
  • docs themselves have lots of warnings
  • builds output int target/docs/fr/index.html … but I just see english text

Looking at the pom.xml latest profile calls through to tx …

[DEBUG] Executing command line: [tx, pull, --language=‘,es,fr,ge,it,ko,nl,cz,ca,fi,is,sr,pt_BR,’]

Which hangs … calling that on the command line prompts me for my api token, so we need to run tx once first.

I will make a PR to update the docs and have the build fail a bit more explicitly then hanging.

···

Jody Garnett

I have now been able to build everything locally, I noticed a few inconsistencies covered in the following PR: https://github.com/geonetwork/doc/pull/140

Juan are you in a position to review the above?

I would also like to recommend that:

  • building documentation be covered in “compile” phase (currently “package”)

  • the “package” phase be used to bundle up the manual as a zip

···


Jody Garnett

Jose rebuilt the contents and uploaded.

···


Jody Garnett