Closed wolbernd closed 2 years ago
We know about this problem. RDMO version 1.6 will not use the psycopg library anymore because it upgrades to django3. The issue will disappear with the update. I will change the docker setup accordingly.
A discussion can be found here: rdmorganiser/rdmo#351
See also here: https://github.com/psycopg/psycopg2/issues/1293
Django 2.2 is incompatible with psycopg >= 2.9 due to some changes with regard to handling timezone infos. This leads to RDMO being unable to login users (Error 500 in Browser, no entry in logs) or importing catalogs (Stacktrace with
AssertionError: database connection isn't set to UTC
)This can be fixed by installing psycopg-2.8.6 by changing the line
pip install psycopg2
inrdmo/rootfs/opt/install-rdmo.sh
topip install psycopg2==2.8.6
.