database connection isn't set to UTC

3,423 views
Skip to first unread message

Janet Jiang

unread,
Jun 17, 2021, 1:42:25 AM6/17/21
to oTree help & discussion
Hi all,

I was pushing a new project to Heroku. I was able to open the app and go to the demo page, but when I clicked on the links for testing, I got the following error. Has anybody seen this before? Thanks!

Janet
==========

AssertionError at /p/6lio3llg/instructions/Introduction/1/database connection isn't set to UTCRequest Method:
GETRequest URL:
https://no-money-seq.herokuapp.com/p/6lio3llg/instructions/Introduction/1/Django Version:
2.2.12Exception Type:
AssertionError
Exception Value:
database connection isn't set to UTC
Exception Location:
/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/postgresql/utils.py in utc_tzinfo_factory, line 6Python Executable:
/app/.heroku/python/bin/pythonPython Version:
3.7.10Python Path:
['/app/.heroku/python/bin', '/app', '/app/.heroku/python/lib/python37.zip', '/app/.heroku/python/lib/python3.7', '/app/.heroku/python/lib/python3.7/lib-dynload', '/app/.heroku/python/lib/python3.7/site-packages']Server time:
Thu, 17 Jun 2021 07:33:34 +0200

Janet Jiang

unread,
Jun 17, 2021, 6:21:08 PM6/17/21
to oTree help & discussion
After a lot of search, I think the problem is described here:

I followed the instructions to put "psycopg2>=2.8,<2.9" in my requirements file and it solved my problem.

Janet


--
You received this message because you are subscribed to the Google Groups "oTree help & discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otree+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/1e6528cb-27d7-4804-84fb-143968e0cdc3n%40googlegroups.com.
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Chris @ oTree

unread,
Jun 20, 2021, 2:12:52 AM6/20/21
to oTree help & discussion
I've fixed this issue in the latest 3.x release (it doesn't affect 5.x).
Reply all
Reply to author
Forward
0 new messages