mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-07-13 23:21:21 +03:00
Running-from-source: Document setting TMPDIR for multi-user logging issue
parent
1c25102137
commit
1bef53eeeb
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user