Source install - gsad gsa URL not found

Following instructions for the install from source from here : Building 22.4 from Source - Greenbone Community Documentation

gsad installed in /usr/local/sbin/gsad and starting correctly from systemd
gsa installed under /usr/local/share/gvm/gsad/web/

But browsing to http://127.0.0.1:9392/ gives a “URL not found” from gsad

Increasing the logging in gsad give little hint :

gsad main:MESSAGE:2024-02-06 16h36.42 utc:1579: Starting GSAD version 22.9.1
gsad main:  DEBUG:2024-02-06 16h36.42 utc:1579: GSAD started successfully and is listening on port 9392.
gsad http handler:  DEBUG:2024-02-06 16h36.51 utc:1579: ============= url: /?r=1
gsad http handler:  DEBUG:2024-02-06 16h36.51 utc:1579: Validating url /
gsad http handler:  DEBUG:2024-02-06 16h36.51 utc:1579: method router handling GET
gsad http handler:  DEBUG:2024-02-06 16h36.51 utc:1579: checking url map for url / against ^/(img|js|css|locales)/.+$
gsad http handler:  DEBUG:2024-02-06 16h36.51 utc:1579: checking url map for url / against ^/robots\.txt$
gsad http handler:  DEBUG:2024-02-06 16h36.51 utc:1579: checking url map for url / against ^/config\.*js$
gsad http handler:  DEBUG:2024-02-06 16h36.51 utc:1579: checking url map for url / against ^/static/(img|js|css|media)/.+$
gsad http handler:  DEBUG:2024-02-06 16h36.51 utc:1579: checking url map for url / against ^/manual/.+$
gsad http handler:  DEBUG:2024-02-06 16h36.51 utc:1579: checking url map for url / against ^/gmp$
gsad http handler:  DEBUG:2024-02-06 16h36.51 utc:1579: checking url map for url / against ^/system_report/.+$
gsad http handler:  DEBUG:2024-02-06 16h36.51 utc:1579: checking url map for url / against ^/logout/?$
gsad http:  DEBUG:2024-02-06 16h36.51 utc:1579: File index.html not found. Return index.html
gsad http:  DEBUG:2024-02-06 16h36.51 utc:1579: File index.html failed,
gsad main:  DEBUG:2024-02-06 16h36.51 utc:1579: connectiontype=2

It looks like gsad is looking for index.html in /usr/local/share/gvm/gsad/web/ where gsa installs it under /usr/local/share/gvm/gsad/web/public

Any idea how to adress this issue ?

Hi,

I am sorry but using the source build guide installs GSA into /usr/local/shar/gvm/gsad/web/ as desired.

export GSA_VERSION=23.0.0
export SOURCE_DIR=/tmp
curl -f -L https://github.com/greenbone/gsa/releases/download/v$GSA_VERSION/gsa-dist-$GSA_VERSION.tar.gz -o $SOURCE_DIR/gsa-$GSA_VERSION.tar.gz
mkdir -p $SOURCE_DIR/gsa-$GSA_VERSION
tar -C $SOURCE_DIR/gsa-$GSA_VERSION -xvzf $SOURCE_DIR/gsa-$GSA_VERSION.tar.gz
ls gsa-$GSA_VERSION

shows

img  index.html  locales  robots.txt  static

and no public directory.

Afterwards these content gets copied to /usr/local/shar/gvm/gsad/web/ via

sudo cp -rv $SOURCE_DIR/gsa-$GSA_VERSION/* $INSTALL_PREFIX/share/gvm/gsad/web/
2 Likes