From 4466ad051317b1b0a6642e8319339af7c91920a8 Mon Sep 17 00:00:00 2001 From: "Gallenkamp, Fabian (bax1489)" <476-bax1489@users.noreply.gitlab.rrz.uni-hamburg.de> Date: Tue, 22 Oct 2019 11:51:02 +0200 Subject: [PATCH] Minor faq-improvements. --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 37b1bbf..07096a6 100755 --- a/README.md +++ b/README.md @@ -87,7 +87,6 @@ otree_users: #### option B: upload otree project directly into ansible project 1. If no git-repository ``app_repo``-value with your otree configuration is provided, you have to place a copy of the project files (with scp) in ``/opt/otree/otree-ansible/files/<otree_username>/``. - ## deploy otree instances > :zap: **Warning:** Make sure there the are **unique** name definitions in the variable ``otree_users`` for the corresponding subdomain (e.g otree5 for otree5.domain.de) in config-file ``group_vars/otree_servers.yml``. (If there are entries with the same key, the last one defined will be deployed!) Make also sure that there are different **secret-keys**, **redis-slots** and **ports** configured for each instance as described above! @@ -106,18 +105,18 @@ otree_users: ## FAQ/Troubleshooting ### I see "TypeError: __init__() missing 1 required positional argument: 'on_delete'"? -Most likely an older otree version needs to be configured. Set ``otree==<desired_version>`` in ``requirements_base.txt``. +Most likely an older otree version has to be configured. Set ``otree==<desired_version>`` in ``requirements_base.txt``. Since Django 2.0 the "on_delete" parameter is required in a model and needs to be added in your code or in the included apps (e.g otree-tools). ### I see "ModuleNotFoundError: No module named '<someexperimentname>'"? -Remove definition in variable ``SESSION_CONFIGS`` from ``settings.py``. +Remove the definition in variable ``SESSION_CONFIGS`` from ``settings.py``. ### I see "ModuleNotFoundError: No module named 'otree_tools'"? -Add ``otree_tools`` in ``requirements_base.txt``. +Add ``otree_tools==<desired_version>`` in ``requirements_base.txt``. ### How can I restart an otree-instance? Where are the log files? Use supervisor: ``sudo supervisorctl restart <otree_instance_name>``. Log files are located in ``/var/log/supervisor/<otree_instance_name>``. -### How can I restart nginx? Where are the log files? +### How can I restart the web-server nginx? Where are the log files? Run: ``sudo systemctl restart nginx.service``. All log files are disabled by default due to data protection purposes. Adapt the ngninx template if logging is really necessary. ### For which operating system is this ansible script optimized? -- GitLab