Skip to content

Latest commit

 

History

History
96 lines (54 loc) · 3.17 KB

File metadata and controls

96 lines (54 loc) · 3.17 KB

Exit Codes

The following exit codes are supported:

When in server mode:

Id Code Description
HTTP_STATUSCODE_200_OK 0 All OK
HTTP_STATUSCODE_404_NOT_FOUND 32 Triggers when something is not found, also when the timerange is not found
HTTP_STATUSCODE_422_UNPROCESSABLE_ENTITY 33 The client requested something unprocessable and the server encountered an error handling the request

When in command mode when scanning files or datasets:

Id Code Description
SCAN_EXITCODE_FILENOMATCH 64 File is available but does not match any of the available datasets
SCAN_EXITCODE_DATASETNOEXIST 65 The dataset configuration file does not exist.
SCAN_EXITCODE_SCANERROR 66 An error occured during scanning
SCAN_EXITCODE_FILENOEXIST 67 The file does not exist on the file system
SCAN_EXITCODE_FILENOMATCH_ISDELETED 68 File does not match any of the available datasets and is deleted
SCAN_EXITCODE_TIMEOUT 124 The scan process timed out

Environment variables

List and overview of environment variables.

ADAGUC_TRACE_TIMINGS

  • TRUE: Measure timings like how much amount is spent on database queries, fileaccess and image generation
  • FALSE: off.

The information is logged and made available in a header named x-trace-timings.

ADAGUC_ENABLELOGBUFFER

Controls behaviour of logstream buffer:

  • FALSE (unset / default): unbuffered output with live logging, but can have a slower service as effect
  • TRUE: buffered logging
  • DISABLELOGGING: no logging at all

ADAGUC_PATH

The root directory of the adaguc-server code base. Used to read data files like legend definitions and fonts. Defaults to pwd

ADAGUC_DATASET_DIR

The directory for dataset configuration xml files. Defaults to /data/adaguc-datasets

ADAGUC_DATA_DIR

The directory where data files are places, for example realtime updates of NetCDF files. Defaults to /data/adaguc-data

ADAGUC_AUTOWMS_DIR

A sandbox directory where you can place your NetCDF, PNG, CSV or HDF5 files. A WMS service will be autogenerated and you can browse and preview the data and its containing variables. defaults to /data/adaguc-autowms

ADAGUC_CONFIG

The location of the main server configuration file. Defaults to ${ADAGUC_PATH}/python/lib/adaguc/adaguc-server-config-python-postgres.xml

ADAGUC_NUMPARALLELPROCESSES

The amount of parallel processes the adaguc-server should use. Defaults to 4

ADAGUC_DB

The PostGres database configuration. Defaults to "user=adaguc password=adaguc host=localhost dbname=adaguc"

ADAGUC_TMP

The temporary directory where adaguc-server can write temporary files.

ADAGUC_LOGFILE

File where log messages will be stored

ADAGUC_FONT

A default TTF font location for print fonts in imagery. E.gFreeSans.ttf.

ADAGUC_ONLINERESOURCE

optional, specify the online resource in the CGI script itself, see OnlineResource to configure in

PGBOUNCER_ENABLE

Enable or disable the usage of PostgreSQL connection pooling by PGBouncer. Default: true.

PGBOUNCER_DISABLE_SSL

If PGBouncer is used, disable the usage of SSL. Default: true.