Page History
...
Your choice does not rename the host. You can change it later with gl hostname (see The gl Command).
Allowed origins (CORS): GreenLight accepts requests from a browser only if the address the browser shows is listed in PANAGENDA_CORS_ALLOWED_ORIGINS in the configuration file. The installer sets it to https://<server address> when the setting is missing, still has the default https://localhost, or holds the address the installer wrote before. A value you set yourself is kept; if it does not contain the server address, the installer shows a warning that names the address in your value. While PANAGENDA_METABASE_SITE_URL is set, the installer leaves the setting alone and says so; it is then up to you. For other addresses, see Configuration File.
| Note | ||
|---|---|---|
| ||
The CORS behavior follows the plan for GreenLight 5.2.1 and is not implemented yet. The exact messages, and how upper case, a trailing slash and several addresses are compared, follow after the measurement on a test system. |
Installation Progress
The installer then shows "Installing GreenLight version … in 10 seconds", downloads or loads the Docker images, creates the directories under /opt/panagenda, writes the configuration file and starts the containers. Depending on the download, this takes several minutes.
Step 4: Check the Result
If the installation fails, the installer ends with a message starting with "ERROR" that identifies the cause; see Troubleshooting. Otherwise, it reports "Installation complete, GreenLight is starting up!" and ends with the server address and the addresses of GreenLight and Metabase:
| Code Block | ||
|---|---|---|
| ||
Server address: greenlight.acme.com
GreenLight: https://greenlight.acme.com/
Metabase: https://greenlight.acme.com/metabase
Change later: run 'gl hostname'
Reachability check: https://greenlight.acme.com/metabase/api/health answered (HTTP 200). |
The last line is a check from the host itself that the address answers. Any HTTP status counts; right after an installation it is often not 200, because Metabase is still starting. If instead the installer reports "could not reach … from this server", wait a few minutes and open the address in a browser; if it does not open, check DNS, firewalls and proxies between the host and the address. The installation itself is complete in either case. A warning also appears if the server address is an IP address, a short name or a name that does not point to the host. Without curl on the host, the installer skips the check.
Check that the GreenLight containers are running:
| Code Block | ||
|---|---|---|
| ||
docker ps --filter name=gl_ |
All containers listed (their names start with gl_) show the status "Up". On the first start, GreenLight needs a few minutes before the web interface responds.
Step 5: Log In for the First Time
- Open
https://<server address>/, the address the installer showed at the end, in a browser. Until you install your own certificate, the browser warns about the connection: GreenLight comes with a panagenda certificate that does not match your server address (see Using Your Own TLS Certificate). - Log in with the default credentials (see Setup Guide, Default user login information) and change the password.
- Upload your GreenLight license (see Setup Guide, panagenda GreenLight License) and continue with the Getting Started Assistant.
After the Installation
Using Your Own TLS Certificate
Replace the panagenda certificate with a certificate for your server address, so that browsers trust the connection:
- Save the certificate as
certfile.pem(PEM format, followed by any intermediate certificates) and the private key askeyfile.key(PEM format, without a passphrase). Keep exactly these file names. - Copy both files to
/opt/panagenda/appdata/volumes/nginx/. - Restart GreenLight:
Code Block language bash gl restart
If you only have a PFX file, extract the key and the certificates with OpenSSL. With OpenSSL 3 and older PFX files, add the option -legacy.
| Code Block | ||
|---|---|---|
| ||
openssl pkcs12 -in yourfile.pfx -nocerts -nodes -out keyfile.key
openssl pkcs12 -in yourfile.pfx -nokeys -out certfile.pem |
To return to the panagenda certificate, delete both files and run gl restart.
Configuration File
The installer creates the configuration file /opt/panagenda/appdata/gl/config with the server address you chose and the values it detects on the host. Later runs do not replace the file; they only change single settings: the server address when you choose one, the allowed origins as described under Server Address, and the time zone after you confirm it. Settings you may want to change:
| Setting | Purpose |
|---|---|
PANAGENDA_HOSTNAME | The server address: the name users open in their browser, also used for the Metabase reports and in the links of alert emails. Chosen during the installation; change it with gl hostname rather than in the file. |
PANAGENDA_CORS_ALLOWED_ORIGINS | The addresses from which browsers may use GreenLight, by default https://<server address>. Set it yourself only if users reach GreenLight under another address as well, for example a DNS alias or a reverse proxy: https://greenlight.acme.com, several addresses separated by commas. The installer and gl hostname then no longer change it. |
PANAGENDA_TIMEZONE | The time zone of the containers. Detected from the host. |
PANAGENDA_COMPOSE_NETWORK_SUBNET | The private subnet of the internal Docker network, by default 172.18.0.0/16. Change it if your network already uses this subnet. |
PANAGENDA_METABASE_SITE_URL | The address of the Metabase reports, by default https://<PANAGENDA_HOSTNAME>/metabase. Set it only if users reach Metabase through a reverse proxy with another port or path, in the form https://proxy.acme.com:8443/metabase; for another name, change the server address with gl hostname instead. While it is set, the installer does not ask for the server address and does not change PANAGENDA_CORS_ALLOWED_ORIGINS. The Site URL can no longer be changed in Metabase itself. |
PANAGENDA_METABASE_AI_FEATURES_ENABLED | Metabase's AI features, by default false. Set it to true to use them; they also need an AI provider configured in Metabase. The setting can no longer be changed in Metabase itself. |
PANAGENDA_POSTGRES_SHM_SIZE | Shared memory of the database, by default 2gb. Lower it only on small test hosts with less than 4 GB RAM. |
The file may also contain PANAGENDA_CONFIRMED_HOSTNAME. The installer and gl hostname write it to remember that the server address was confirmed; do not edit it.
Apply changes with:
| Code Block | ||
|---|---|---|
| ||
gl recreate |
Note: "gl recreate" recreates the GreenLight containers, so GreenLight is unavailable for a few minutes; stopping the containers alone can take up to two minutes. "gl restart" does not apply configuration changes.
To change the server address later, run gl hostname (see The gl Command). If you change the time zone of the host, update PANAGENDA_TIMEZONE and run "gl recreate". If the file and the host disagree at the next upgrade, the installer asks which value to keep: the installer also enters the server address in the setting that tells GreenLight which browser addresses to accept. Usually there is nothing else to do; if users open GreenLight under more than one address, see Allowed Origins (CORS).
Installation Progress
The installer then shows "Installing GreenLight version … in 10 seconds", downloads or loads the Docker images, creates the directories under /opt/panagenda, writes the configuration file and starts the containers. Depending on the download, this takes several minutes.
Step 4: Check the Result
If the installation fails, the installer ends with a message starting with "ERROR" that identifies the cause; see Troubleshooting. Otherwise, it reports "Installation complete, GreenLight is starting up!" and ends with the server address and the addresses of GreenLight and Metabase:
| Code Block | ||
|---|---|---|
| ||
Server address: greenlight.acme.com
GreenLight: https://greenlight.acme.com/
Metabase: https://greenlight.acme.com/metabase
Change later: run 'gl hostname'
Reachability check: https://greenlight.acme.com/metabase/api/health answered (HTTP 200). |
The last line is a check from the host itself that the address answers. Any HTTP status counts; right after an installation it is often not 200, because Metabase is still starting. If instead the installer reports "could not reach … from this server", wait a few minutes and open the address in a browser; if it does not open, check DNS, firewalls and proxies between the host and the address. The installation itself is complete in either case. A warning also appears if the server address is an IP address, a short name or a name that does not point to the host. Without curl on the host, the installer skips the check.
Check that the GreenLight containers are running:
| Code Block | ||
|---|---|---|
| ||
docker ps --filter name=gl_ |
All containers listed (their names start with gl_) show the status "Up". On the first start, GreenLight needs a few minutes before the web interface responds.
Step 5: Log In for the First Time
- Open
https://<server address>/, the address the installer showed at the end, in a browser. Until you install your own certificate, the browser warns about the connection: GreenLight comes with a panagenda certificate that does not match your server address (see Using Your Own TLS Certificate). - Log in with the default credentials (see Setup Guide, Default user login information) and change the password.
- Upload your GreenLight license (see Setup Guide, panagenda GreenLight License) and continue with the Getting Started Assistant.
After the Installation
Using Your Own TLS Certificate
Replace the panagenda certificate with a certificate for your server address, so that browsers trust the connection:
- Save the certificate as
certfile.pem(PEM format, followed by any intermediate certificates) and the private key askeyfile.key(PEM format, without a passphrase). Keep exactly these file names. - Copy both files to
/opt/panagenda/appdata/volumes/nginx/. - Restart GreenLight:
Code Block language bash gl restart
If you only have a PFX file, extract the key and the certificates with OpenSSL. With OpenSSL 3 and older PFX files, add the option -legacy.
| Code Block | ||
|---|---|---|
| ||
openssl pkcs12 -in yourfile.pfx -nocerts -nodes -out keyfile.key
openssl pkcs12 -in yourfile.pfx -nokeys -out certfile.pem |
To return to the panagenda certificate, delete both files and run gl restart.
Configuration File
The installer creates the configuration file /opt/panagenda/appdata/gl/config with the server address you chose and the values it detects on the host. Later runs do not replace the file; they only change single settings: the server address when you choose one, the allowed origins as described under Server Address, and the time zone after you confirm it. Settings you may want to change:
| Setting | Purpose |
|---|---|
PANAGENDA_HOSTNAME | The server address: the name users open in their browser, also used for the Metabase reports and in the links of alert emails. Chosen during the installation; change it with gl hostname rather than in the file. |
PANAGENDA_CORS_ALLOWED_ORIGINS | The addresses under which browsers may use GreenLight, by default https://<server address>, set by the installer. Change it only if users open GreenLight under more than one address (see Allowed Origins (CORS)). |
PANAGENDA_TIMEZONE | The time zone of the containers. Detected from the host. |
PANAGENDA_COMPOSE_NETWORK_SUBNET | The private subnet of the internal Docker network, by default 172.18.0.0/16. Change it if your network already uses this subnet. |
PANAGENDA_METABASE_SITE_URL | The address of the Metabase reports, by default https://<PANAGENDA_HOSTNAME>/metabase. Set it only if users reach Metabase through a reverse proxy with another port or path, in the form https://proxy.acme.com:8443/metabase; for another name, change the server address with gl hostname instead. While it is set, the installer does not ask for the server address and does not change PANAGENDA_CORS_ALLOWED_ORIGINS. The Site URL can no longer be changed in Metabase itself. |
PANAGENDA_METABASE_AI_FEATURES_ENABLED | Metabase's AI features, by default false. Set it to true to use them; they also need an AI provider configured in Metabase. The setting can no longer be changed in Metabase itself. |
PANAGENDA_POSTGRES_SHM_SIZE | Shared memory of the database, by default 2gb. Lower it only on small test hosts with less than 4 GB RAM. |
The file may also contain PANAGENDA_CONFIRMED_HOSTNAME. The installer and gl hostname write it to remember that the server address was confirmed; do not edit it.
Apply changes with:
| Code Block | ||
|---|---|---|
| ||
gl recreate |
Note: "gl recreate" recreates the GreenLight containers, so GreenLight is unavailable for a few minutes; stopping the containers alone can take up to two minutes. "gl restart" does not apply configuration changes.
To change the server address later, run gl hostname (see The gl Command). If you change the time zone of the host, update PANAGENDA_TIMEZONE and run "gl recreate". If the file and the host disagree at the next upgrade, the installer asks which value to keep.
Allowed Origins (CORS)
GreenLight accepts changes from a browser, for example saving a sensor, only if the address in the browser's address bar is listed in the setting PANAGENDA_CORS_ALLOWED_ORIGINS. This protects GreenLight against other web pages that try to act in the name of a logged-in user. The technical term is CORS (Cross-Origin Resource Sharing); you do not need to know more about it to set it up.
Usually you do not need to do anything. The installer sets the value to the server address, for example https://greenlight.acme.com, and gl hostname keeps it in step when you change the address.
Set it yourself if users open GreenLight under more than one address, for example under a DNS alias in addition to the server address, under the IP address, or through a load balancer or reverse proxy. Typical sign: GreenLight opens and shows its data under that address, but saving a change fails.
- Show the current value:
Code Block language bash grep PANAGENDA_CORS_ALLOWED_ORIGINS /opt/panagenda/appdata/gl/config - Open the file in an editor, for example
nano /opt/panagenda/appdata/gl/config. Withvi: move to the line, pressito edit, and when you are done press Esc, type:wqand press Enter. - Change the line so that it lists every address users type in their browser, each with
https://and without a path, separated by commas:
Keep the server address in the list. If the line is missing, add it.Code Block language text PANAGENDA_CORS_ALLOWED_ORIGINS=https://greenlight.acme.com,https://monitoring.acme.com - Save the file and apply the change; GreenLight is unavailable for a few minutes:
Code Block language bash gl recreate - Open GreenLight under each address and save a change to check it.
From then on, the installer and gl hostname keep your value. If it does not contain the server address, they show a warning that names the address in your value. To let GreenLight manage the value again, set it back to https://localhost: the next upgrade or the next change with gl hostname replaces it with the server address. While PANAGENDA_METABASE_SITE_URL is set, the installer and gl hostname do not touch the value at all.
| Note | ||
|---|---|---|
| ||
The CORS behavior follows the plan for GreenLight 5.2.1 and is not implemented yet. Still to confirm on a test system: which requests GreenLight checks (the "saving fails" sign), how upper case, a trailing slash and spaces in the list are treated, and the exact warning text. |
The gl Command
Operate GreenLight with the command gl as root:
...
Both forms of gl hostname also update PANAGENDA_CORS_ALLOWED_ORIGINS, unless you set it yourself (see Server Address Allowed Origins (CORS)).
Logs
- Installer:
/opt/panagenda/logs/greenlight-upgrade_<date>_<time>.log, one file per run. Attach it to every support request about an installation or upgrade. - Services:
/opt/panagenda/logs/<service>/, for exampletomcat,postgres,metabaseornginx. GreenLight deletes these files after 7 to 30 days. - Containers:
docker logs gl_<service>shows the latest output of a container; add-fto follow it.
...
- "this installer must be run as root or with sudo": run the installer in a root shell (
sudo -i) or withsudo. - "the following required tools are missing": install the tools the message names and start the installer again. On Ubuntu, fdisk is a package of its own (
apt install fdisk). - "required port(s) … are already in use": another service, for example Apache or nginx, uses port 80 or 443. Find it with
ss -tlnp 'sport = :80'orss -tlnp 'sport = :443', stop or reconfigure it, and start the installer again. - The database container does not start, port 5432 is in use: another PostgreSQL runs on the host. Stop it or move it to another port, then run
gl start. - SELinux error about semanage or restorecon: install the package policycoreutils-python-utils and start the installer again.
- "exec format error" when the containers start: the host has an ARM processor. GreenLight requires x86_64.
- GreenLight cannot reach monitored servers or other systems: the internal Docker network may collide with a network in your environment. Run
gl diagnose-network; if it reports a collision, changePANAGENDA_COMPOSE_NETWORK_SUBNET(see Configuration File). The check cannot see networks the host has no route to; ask your network team if in doubt. - Links in Metabase or in emails do not open, or Metabase shows another address than users type: the server address is a name or IP address that users cannot reach. Run
gl hostnameand choose the name your users use. - The web interface opens, but actions fail GreenLight opens under another address: the address in the browser , but saving a change fails: that address is not listed in
PANAGENDA_CORS_ALLOWED_ORIGINS. Open GreenLight under the server address, or add the other address (see Configuration File Allowed Origins (CORS)). - GreenLight shows no data after a reboot: a filesystem for the GreenLight directories was not mounted when Docker started. Run
gl down, mount the filesystems, rungl start, and add the setting that makes Docker wait for them (see Partitioning).
...
