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.

...

  • "this installer must be run as root or with sudo": run the installer in a root shell (sudo -i) or with sudo, as the second line of the message says: "Re-run the installer package with sudo. The message suggests sudo , e.g. sudo sh ./upgrade; gl-upgrade.sh". For the offline package, the command for this package 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. 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).

...