Skip to content
Snippets Groups Projects
Commit 4466ad05 authored by Gallenkamp, Fabian's avatar Gallenkamp, Fabian
Browse files

Minor faq-improvements.

parent d95b5fc5
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment