Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sso is referencing user before user migrated on new projects #1373

Closed
sklirg opened this issue Dec 13, 2015 · 0 comments
Closed

Sso is referencing user before user migrated on new projects #1373

sklirg opened this issue Dec 13, 2015 · 0 comments

Comments

@sklirg
Copy link
Member

sklirg commented Dec 13, 2015

The sso app triggers this exception:

Synchronizing apps without migrations:
  Creating tables...
    Creating table sso_client
    Running deferred SQL...
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/sklirg/projects/github/onlineweb4/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/Users/sklirg/projects/github/onlineweb4/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/sklirg/projects/github/onlineweb4/env/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/Users/sklirg/projects/github/onlineweb4/env/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
    output = self.handle(*args, **options)
  File "/Users/sklirg/projects/github/onlineweb4/env/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 179, in handle
    created_models = self.sync_apps(connection, executor.loader.unmigrated_apps)
  File "/Users/sklirg/projects/github/onlineweb4/env/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 318, in sync_apps
    cursor.execute(statement)
  File "/Users/sklirg/projects/github/onlineweb4/env/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File "/Users/sklirg/projects/github/onlineweb4/env/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
  File "/Users/sklirg/projects/github/onlineweb4/env/lib/python2.7/site-packages/django/db/utils.py", line 98, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/Users/sklirg/projects/github/onlineweb4/env/lib/python2.7/site-packages/django/db/backends/utils.py", line 62, in execute
    return self.cursor.execute(sql)
django.db.utils.ProgrammingError: relation "authentication_onlineuser" does not exist

Pretty similar to the bug reported at dotkom/redwine#19. I'm guessing it's referencing the user model before it's migrated or something.

This happens on a fresh install using postgres as database backend. (not sqlite3)

@sklirg sklirg added the bug label Dec 13, 2015
@sklirg sklirg changed the title Referencing user before user migrated on new projects Sso is referencing user before user migrated on new projects Dec 13, 2015
@henrikhorluck henrikhorluck closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Not important
Development

No branches or pull requests

3 participants