Problem on user creatation after installation


#1

Hello!

After the installation ive got the following error:

  File "/www/sentry/local/lib/python2.7/site-packages/south/migration/__init__.py", line 234, in migrate_app
    success = migrator.migrate_many(target, workplan, database)
  File "/www/sentry/local/lib/python2.7/site-packages/south/migration/migrators.py", line 256, in migrate_many
    result = migrator.__class__.migrate_many(migrator, target, migrations, database)
  File "/www/sentry/local/lib/python2.7/site-packages/south/migration/migrators.py", line 347, in migrate_many
    interactive=self.interactive)
  File "/www/sentry/local/lib/python2.7/site-packages/south/db/generic.py", line 1067, in send_pending_create_signals
    interactive=interactive)
  File "/www/sentry/local/lib/python2.7/site-packages/south/db/generic.py", line 1113, in really_send_create_signal
    db=self.db_alias,
  File "/www/sentry/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 185, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/www/sentry/local/lib/python2.7/site-packages/sentry/receivers/users.py", line 28, in create_first_user
    call_command('sentry.runner.commands.createuser.createuser')
  File "/www/sentry/local/lib/python2.7/site-packages/sentry/runner/__init__.py", line 155, in call_command
    command.invoke(ctx)
  File "/www/sentry/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/www/sentry/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/www/sentry/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/www/sentry/local/lib/python2.7/site-packages/sentry/runner/decorators.py", line 36, in inner
    return ctx.invoke(f, *args, **kwargs)
  File "/www/sentry/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/www/sentry/local/lib/python2.7/site-packages/sentry/runner/commands/createuser.py", line 95, in createuser
    org = Organization.get_default()
  File "/www/sentry/local/lib/python2.7/site-packages/sentry/models/organization.py", line 128, in get_default
    )[0]
  File "/www/sentry/local/lib/python2.7/site-packages/django/db/models/query.py", line 132, in __getitem__
    return list(qs)[0]
  File "/www/sentry/local/lib/python2.7/site-packages/django/db/models/query.py", line 96, in __iter__
    self._fetch_all()
  File "/www/sentry/local/lib/python2.7/site-packages/django/db/models/query.py", line 857, in _fetch_all
    self._result_cache = list(self.iterator())
  File "/www/sentry/local/lib/python2.7/site-packages/django/db/models/query.py", line 220, in iterator
    for row in compiler.results_iter():
  File "/www/sentry/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 713, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/www/sentry/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 800, in <lambda>
    result = iter((lambda: cursor.fetchmany(GET_ITERATOR_CHUNK_SIZE)),
  File "/www/sentry/local/lib/python2.7/site-packages/django/db/utils.py", line 106, in inner
    return func(*args, **kwargs)
  File "/www/sentry/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 36, in utc_tzinfo_factory
    raise AssertionError("database connection isn't set to UTC")
AssertionError: database connection isn't set to UTC

Please help me im over :smiley:


#2

Sounds like a pretty obvious solution to me. Why is your database not in UTC?