Page History
...
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)).
...
- 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 the cursor onto the line and typeccto retype it (orG, theno, to add a line at the end), 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 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 orhttps://localhostinstead. In quotes, GreenLight's web server does not start. The installer andgl hostnamewarn about both.
Keep the server address in the list. If the line is missing, add it.Code Block language text PANAGENDA_CORS_ALLOWED_ORIGINS=https://greenlight.example.com,https://monitoring.example.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.
...
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 withsudo. The message suggestssudo ./upgrade; the command for this package issudo sh ./gl-upgrade.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'orss -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, 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. - 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
glcommand reports "No such file or directory" for the line in/opt/panagenda/appdata/gl/config, and GreenLight uses an earlier line of the file orhttps://localhostinstead. In quotes, the The installer andgl hostnamewarn 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 fromPANAGENDA_CORS_ALLOWED_ORIGINS, so that only commas separate the addresses, and rungl 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 rungl downandgl start, and add the setting that makes Docker wait for them (see Partitioning).
...
