Open zeuner opened 3 years ago
I can enter credentials when I disable USE_TZ
in the Django configuration: https://github.com/zeuner/mturk-manager/blob/postgres-timezone/mturk_db/mturk_db/settings.py#L143
I don't know whether mturk-manager is expected to work correctly with USE_TZ
disabled, though.
Could you please check the version of your installed psycopg2 package? This is something like the python driver for postgres, I think. If it's installed in version 2.9, please downgrade to 2.8 and try again.
This answer here states that they changed the utc behavior in version 2.9: https://stackoverflow.com/a/68025007/4071305
If it works in version 2.8 I have to update the requirements.txt and pin the version to 2.8 (should've done this from the beginning).
And yes, turning off the utc setting in django might help with getting rid of the error but is not a good idea.
Thanks for the pointer. I can confirm that the docker container had psycopg2 version 2.9.1 installed.
With psycopg2 pinned to version 2.8.6 (https://github.com/webis-de/mturk-manager/pull/72), the error disappears.
When I enter an URL and a Token at the frontend
/add_credentials
page, mturk-manager connects to/config
at the backend, throwing an HTTP 500 error there.With debugging enabled, I could get the following trace:
Any clues for how to debug this?