From 1bef53eeebd6903716b6bbed08970be541d10b1f Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 6 Jun 2022 13:21:52 +0100 Subject: [PATCH] Running-from-source: Document setting TMPDIR for multi-user logging issue --- Running-from-source.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Running-from-source.md b/Running-from-source.md index 612f0dd..8d5e51b 100644 --- a/Running-from-source.md +++ b/Running-from-source.md @@ -211,6 +211,24 @@ Then you will need to set the correct location on the remote machine in the application's `Settings` > `Configuration` > `E:D journal file location` option. +## Ensure log files can be written + +The [application logfiles](Troubleshooting.md#debug-log-files) +are written under `$TMPDIR` if that is set, else +whatever the default is for your OS, e.g. `/tmp` on Linux. + +If you only ever run this application as one user then the default isn't a +problem. However, if you do run it as more than one user then the subsequent +user(s) won't have permission to write to the log files/directories. + +The best workaround for this is to ensure you explicitly set `TMPDIR` to a +per-user location, e.g. in `~/.bashrc`: + +```bash +export TMPDIR="${HOME}/tmp" +mkdir -p "${TMPDIR}" +``` + ## Run the application * Linux: `python3 EDMarketConnector.py`