Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-2577

Update 2.0 to 3: ProgrammingError: column django_content_type.name does not exist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.4.3
    • Fix Version/s: 3.5.0
    • Component/s: Backend
    • Labels:

      Description

      This issue prevents updates from oA 2!

      (env)➜  backend git:(master) ✗ ./manage.py install --pre-install
      Reading file /etc/default/openattic
      Reading local settings /home/sebastian/oA-git/backend/settings_local.conf
      2017-08-16 12:01:00,296 8426 install INFO ifconfig.models#__init__ - Current Version: 3.4.3
      Creating tables ...
      2017-08-16 12:01:00,404 8426 install ERROR sysutils.management.commands.install#pre_systemd - django_16_syncdb_and_migrate failes
      Traceback (most recent call last):
        File "/home/sebastian/oA-git/backend/sysutils/management/commands/install.py", line 111, in pre_systemd
          django_16_syncdb_and_migrate()
        File "/home/sebastian/oA-git/backend/sysutils/management/commands/install.py", line 108, in django_16_syncdb_and_migrate
          cmd.handle_noargs(noinput=False, verbosity=verbosity, database=DEFAULT_DB_ALIAS)
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 112, in handle_noargs
          emit_post_sync_signal(created_models, verbosity, interactive, db)
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/core/management/sql.py", line 216, in emit_post_sync_signal
          interactive=interactive, db=db)
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 185, in send
          response = receiver(signal=self, sender=sender, **named)
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py", line 82, in create_permissions
          ctype = ContentType.objects.db_manager(db).get_for_model(klass)
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/contrib/contenttypes/models.py", line 47, in get_for_model
          defaults = {'name': smart_text(opts.verbose_name_raw)},
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/db/models/manager.py", line 154, in get_or_create
          return self.get_queryset().get_or_create(**kwargs)
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 376, in get_or_create
          return self.get(**lookup), False
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 304, in get
          num = len(clone)
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 77, in __len__
          self._fetch_all()
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 857, in _fetch_all
          self._result_cache = list(self.iterator())
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 220, in iterator
          for row in compiler.results_iter():
        File "/home/sebastian/oA-git/env/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 "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 786, in execute_sql
          cursor.execute(sql, params)
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/db/backends/util.py", line 69, in execute
          return super(CursorDebugWrapper, self).execute(sql, params)
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
          return self.cursor.execute(sql, params)
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__
          six.reraise(dj_exc_type, dj_exc_value, traceback)
        File "/home/sebastian/oA-git/env/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
          return self.cursor.execute(sql, params)
      ProgrammingError: column django_content_type.name does not exist
      LINE 1: SELECT "django_content_type"."id", "django_content_type"."na...
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              swagner Sebastian Wagner
              Reporter:
              swagner Sebastian Wagner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: