Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Links to Upgrading GreenLight (gl) instead of the draft, before going live

...

This page takes you from a prepared Linux host to the first login to GreenLight, and describes how to operate the installation afterwards. What the host needs is described in Running GreenLight on your own Linux; upgrades in Upgrading GreenLight (NEW).

New installations and upgrades use the same installer. It checks the host, downloads or unpacks the GreenLight Docker images, creates the directories under /opt/panagenda, writes the configuration and starts the containers. This page describes the installer of GreenLight 5.2.1 and later; the server address screen is new in 5.2.1.

...

Offline installer: while it runs, the offline installer unpacks itself into /tmp and needs a little more free space there than the size of the package, about 2 GB. Check the free space with df -h /tmp. If /tmp is too small, for example because it is held in memory (tmpfs), let the installer use a directory on a larger filesystem instead (see Not Enough Disk Space). The installer checks the space itself and stops before it changes anything.

...

The last line lists the allowed browser addresses GreenLight uses. If the server address is not among them, a warning follows that says what to do (see Allowed Origins (CORS)).

...

  1. Show the current value:
    Code Block
    languagebash
    grep PANAGENDA_CORS_ALLOWED_ORIGINS /opt/panagenda/appdata/gl/config
  2. Open the file in an editor, for example nano /opt/panagenda/appdata/gl/config. With vi: move the cursor onto the line and type cc to retype it (or G, then o, to add a line at the end), and when you are done press Esc, type :wq and press Enter.
  3. Change the line so that it lists every address users type in their browser, each exactly as the browser shows it: with https://, in lower case, with the port if the address has one, without a path and without a / at the end. Separate them with commas without spaces. A space breaks the setting. Written as shown here, without quotes, GreenLight no longer reads ignores the line , and saving fails under every addressand uses an earlier line of the file or https://localhost instead. In quotes, GreenLight's web server does not start. The installer and gl hostname warn about both.
    Code Block
    languagetext
    PANAGENDA_CORS_ALLOWED_ORIGINS=https://greenlight.example.com,https://monitoring.example.com
    Keep the server address in the list. If the line is missing, add it.
  4. Save the file and apply the change; GreenLight is unavailable for a few minutes:
    Code Block
    languagebash
    gl recreate
  5. Open GreenLight under each address and save a change to check it.

...

If an entry differs from the server address only in upper case or a / at the end, the warning names it in a line of its own: browsers send the address in lower case and without the /, so such an entry never matches. If the list names no other address, for example only https://localhost, the warning leaves out the gl hostname line and its advice starts with "Add". A value in quotes that contains a space space in the value gets a warning of its own . A space in a value without quotes is not detected (see Troubleshooting).

To let GreenLight manage the value again, set it back to https://localhost and run gl hostname <server address>: it enters the server address and asks you to run gl recreate. The next upgrade would also do it.

...

  • "this installer must be run as root or with sudo": run the installer in a root shell (sudo -i) or with sudo. The message suggests sudo ./upgrade; the command for this package , as the second line of the message says: "Re-run the installer package with sudo, e.g. sudo sh ./gl-upgrade.sh". For the offline package, the command is sudo sh ./gl-upgrade-offline.sh.
  • "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' or ss -tlnp 'sport = :443', stop or reconfigure it, and start the installer again.
  • Port 5432 is in use (the installer stops with "ERROR: container (re)creation failed", or the database container does not start later): another PostgreSQL runs on the host. Stop it or move it to another port. If this happened during an installation or upgrade, run the installer again. Otherwise 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, change PANAGENDA_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 hostname and choose the name your users use.
  • GreenLight opens under another address, 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 Allowed Origins (CORS)).
  • Saving fails under every address, or GreenLight does not start, after a change of the allowed browser addresses: the value probably contains a space. Without quotes, every gl command reports "No such file or directory" for the line in /opt/panagenda/appdata/gl/config, and GreenLight uses an earlier line of the file or https://localhost instead. In quotes, the The installer and gl hostname warn that the line "contains a space, so GreenLight does not read it as written", and name the addresses GreenLight uses. In quotes, they warn that the addresses "contain a space", and GreenLight's web server does not start. Remove the spaces from PANAGENDA_CORS_ALLOWED_ORIGINS, so that only commas separate the addresses, and run gl recreate.
  • GreenLight shows no data after a reboot: a filesystem for the GreenLight directories was not mounted when Docker started. Mount the filesystems (for example mount -a), then run gl down and gl start, and add the setting that makes Docker wait for them (see Partitioning).

...