pan.do/ra update fails #3215

Closed
opened 2019-06-26 15:07:45 +00:00 by rlx · 1 comment
Owner
root@ddfe80fccb5cfffe3c4ea6:/var/lib/lxc/pandora/rootfs/srv/pandora# ./ctl debug
pandora: unrecognized service
pandora-tasks: unrecognized service
pandora-encoding: unrecognized service
pandora-cron: unrecognized service
pandora-websocketd: unrecognized service
root@ddfe80fccb5cfffe3c4ea6:/var/lib/lxc/pandora/rootfs/srv/pandora# ./update.py 
Checking pandora
Enter passphrase for key '/root/.ssh/id_rsa': 
You are not currently on a branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

fatal: reference is not a tree: 95202456a6bad2a41344a065256fbc6be58057a2
Checking oxtimelines
Already up to date.
fatal: reference is not a tree: 95202456a6bad2a41344a065256fbc6be58057a2
Checking python-ox
Already up to date.
fatal: reference is not a tree: 95202456a6bad2a41344a065256fbc6be58057a2
Checking oxjs
Enter passphrase for key '/root/.ssh/id_rsa': 
Already up to date.
Database has changed, please make a backup and run ./update.py db
root@ddfe80fccb5cfffe3c4ea6:/var/lib/lxc/pandora/rootfs/srv/pandora# ./update.py db

Running "./manage.py migrate"


Traceback (most recent call last):
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 21, in <module>
    import psycopg2 as Database
<ModuleNotFoundError>: No module named 'psycopg2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
> File "./manage.py", line 75, in <module>
    execute_from_command_line(sys.argv)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/core/management/*init*.py", line 364, in execute_from_command_line
    utility.execute()
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/core/management/*init*.py", line 338, in execute
    django.setup()
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/*init*.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models()
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/apps/config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
> File "/usr/lib/python3.6/importlib/*init*.py", line 126, in import_module
    return _bootstrap._gcd_import(name[]level:, package, level)
> File "<frozen importlib._bootstrap>", line 994, in _gcd_import
> File "<frozen importlib._bootstrap>", line 971, in _find_and_load
> File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
> File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 678, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/contrib/auth/models.py", line 4, in <module>
    from django.contrib.auth.base_user import <AbstractBaseUser>, <BaseUserManager>
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/contrib/auth/base_user.py", line 52, in <module>
    class <AbstractBaseUser>(models.Model):
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/base.py", line 124, in *new*
    new_class.add_to_class('_meta', Options(meta, app_label))
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/base.py", line 325, in add_to_class
    value.contribute_to_class(cls, name)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/options.py", line 214, in contribute_to_class
    self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/*init*.py", line 33, in *getattr*
    return getattr(connections[]DEFAULT_DB_ALIAS, item)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/utils.py", line 211, in *getitem*
    backend = load_backend(db['ENGINE'])
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/utils.py", line 115, in load_backend
    return import_module('%s.base' % backend_name)
> File "/usr/lib/python3.6/importlib/*init*.py", line 126, in import_module
    return _bootstrap._gcd_import(name[]level:, package, level)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 25, in <module>
    raise <ImproperlyConfigured>("Error loading psycopg2 module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2'
Traceback (most recent call last):
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 21, in <module>
    import psycopg2 as Database
<ModuleNotFoundError>: No module named 'psycopg2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
> File "./manage.py", line 75, in <module>
    execute_from_command_line(sys.argv)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/core/management/*init*.py", line 364, in execute_from_command_line
    utility.execute()
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/core/management/*init*.py", line 338, in execute
    django.setup()
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/*init*.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models()
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/apps/config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
> File "/usr/lib/python3.6/importlib/*init*.py", line 126, in import_module
    return _bootstrap._gcd_import(name[]level:, package, level)
> File "<frozen importlib._bootstrap>", line 994, in _gcd_import
> File "<frozen importlib._bootstrap>", line 971, in _find_and_load
> File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
> File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 678, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/contrib/auth/models.py", line 4, in <module>
    from django.contrib.auth.base_user import <AbstractBaseUser>, <BaseUserManager>
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/contrib/auth/base_user.py", line 52, in <module>
    class <AbstractBaseUser>(models.Model):
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/base.py", line 124, in *new*
    new_class.add_to_class('_meta', Options(meta, app_label))
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/base.py", line 325, in add_to_class
    value.contribute_to_class(cls, name)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/options.py", line 214, in contribute_to_class
    self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/*init*.py", line 33, in *getattr*
    return getattr(connections[]DEFAULT_DB_ALIAS, item)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/utils.py", line 211, in *getitem*
    backend = load_backend(db['ENGINE'])
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/utils.py", line 115, in load_backend
    return import_module('%s.base' % backend_name)
> File "/usr/lib/python3.6/importlib/*init*.py", line 126, in import_module
    return _bootstrap._gcd_import(name[]level:, package, level)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 25, in <module>
    raise <ImproperlyConfigured>("Error loading psycopg2 module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2'
Traceback (most recent call last):
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 21, in <module>
    import psycopg2 as Database
<ModuleNotFoundError>: No module named 'psycopg2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
> File "./manage.py", line 75, in <module>
    execute_from_command_line(sys.argv)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/core/management/*init*.py", line 364, in execute_from_command_line
    utility.execute()
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/core/management/*init*.py", line 338, in execute
    django.setup()
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/*init*.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models()
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/apps/config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
> File "/usr/lib/python3.6/importlib/*init*.py", line 126, in import_module
    return _bootstrap._gcd_import(name[]level:, package, level)
> File "<frozen importlib._bootstrap>", line 994, in _gcd_import
> File "<frozen importlib._bootstrap>", line 971, in _find_and_load
> File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
> File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 678, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/contrib/auth/models.py", line 4, in <module>
    from django.contrib.auth.base_user import <AbstractBaseUser>, <BaseUserManager>
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/contrib/auth/base_user.py", line 52, in <module>
    class <AbstractBaseUser>(models.Model):
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/base.py", line 124, in *new*
    new_class.add_to_class('_meta', Options(meta, app_label))
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/base.py", line 325, in add_to_class
    value.contribute_to_class(cls, name)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/options.py", line 214, in contribute_to_class
    self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/*init*.py", line 33, in *getattr*
    return getattr(connections[]DEFAULT_DB_ALIAS, item)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/utils.py", line 211, in *getitem*
    backend = load_backend(db['ENGINE'])
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/utils.py", line 115, in load_backend
    return import_module('%s.base' % backend_name)
> File "/usr/lib/python3.6/importlib/*init*.py", line 126, in import_module
    return _bootstrap._gcd_import(name[]level:, package, level)
> File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 25, in <module>
    raise <ImproperlyConfigured>("Error loading psycopg2 module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2'

Please restart pan.do/ra to finish the update:
	sudo /var/lib/lxc/pandora/rootfs/srv/pandora/ctl reload
root@ddfe80fccb5cfffe3c4ea6:/var/lib/lxc/pandora/rootfs/srv/pandora# ./ctl reload
pandora: unrecognized service
pandora-tasks: unrecognized service
pandora-encoding: unrecognized service
pandora-cron: unrecognized service
pandora-websocketd: unrecognized service
``` root@ddfe80fccb5cfffe3c4ea6:/var/lib/lxc/pandora/rootfs/srv/pandora# ./ctl debug pandora: unrecognized service pandora-tasks: unrecognized service pandora-encoding: unrecognized service pandora-cron: unrecognized service pandora-websocketd: unrecognized service root@ddfe80fccb5cfffe3c4ea6:/var/lib/lxc/pandora/rootfs/srv/pandora# ./update.py Checking pandora Enter passphrase for key '/root/.ssh/id_rsa': You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <remote> <branch> fatal: reference is not a tree: 95202456a6bad2a41344a065256fbc6be58057a2 Checking oxtimelines Already up to date. fatal: reference is not a tree: 95202456a6bad2a41344a065256fbc6be58057a2 Checking python-ox Already up to date. fatal: reference is not a tree: 95202456a6bad2a41344a065256fbc6be58057a2 Checking oxjs Enter passphrase for key '/root/.ssh/id_rsa': Already up to date. Database has changed, please make a backup and run ./update.py db root@ddfe80fccb5cfffe3c4ea6:/var/lib/lxc/pandora/rootfs/srv/pandora# ./update.py db Running "./manage.py migrate" Traceback (most recent call last): > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 21, in <module> import psycopg2 as Database <ModuleNotFoundError>: No module named 'psycopg2' During handling of the above exception, another exception occurred: Traceback (most recent call last): > File "./manage.py", line 75, in <module> execute_from_command_line(sys.argv) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/core/management/*init*.py", line 364, in execute_from_command_line utility.execute() > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/core/management/*init*.py", line 338, in execute django.setup() > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/*init*.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/apps/registry.py", line 108, in populate app_config.import_models() > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/apps/config.py", line 202, in import_models self.models_module = import_module(models_module_name) > File "/usr/lib/python3.6/importlib/*init*.py", line 126, in import_module return _bootstrap._gcd_import(name[]level:, package, level) > File "<frozen importlib._bootstrap>", line 994, in _gcd_import > File "<frozen importlib._bootstrap>", line 971, in _find_and_load > File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked > File "<frozen importlib._bootstrap>", line 665, in _load_unlocked > File "<frozen importlib._bootstrap_external>", line 678, in exec_module > File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/contrib/auth/models.py", line 4, in <module> from django.contrib.auth.base_user import <AbstractBaseUser>, <BaseUserManager> > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/contrib/auth/base_user.py", line 52, in <module> class <AbstractBaseUser>(models.Model): > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/base.py", line 124, in *new* new_class.add_to_class('_meta', Options(meta, app_label)) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/base.py", line 325, in add_to_class value.contribute_to_class(cls, name) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/options.py", line 214, in contribute_to_class self.db_table = truncate_name(self.db_table, connection.ops.max_name_length()) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/*init*.py", line 33, in *getattr* return getattr(connections[]DEFAULT_DB_ALIAS, item) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/utils.py", line 211, in *getitem* backend = load_backend(db['ENGINE']) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/utils.py", line 115, in load_backend return import_module('%s.base' % backend_name) > File "/usr/lib/python3.6/importlib/*init*.py", line 126, in import_module return _bootstrap._gcd_import(name[]level:, package, level) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 25, in <module> raise <ImproperlyConfigured>("Error loading psycopg2 module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2' Traceback (most recent call last): > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 21, in <module> import psycopg2 as Database <ModuleNotFoundError>: No module named 'psycopg2' During handling of the above exception, another exception occurred: Traceback (most recent call last): > File "./manage.py", line 75, in <module> execute_from_command_line(sys.argv) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/core/management/*init*.py", line 364, in execute_from_command_line utility.execute() > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/core/management/*init*.py", line 338, in execute django.setup() > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/*init*.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/apps/registry.py", line 108, in populate app_config.import_models() > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/apps/config.py", line 202, in import_models self.models_module = import_module(models_module_name) > File "/usr/lib/python3.6/importlib/*init*.py", line 126, in import_module return _bootstrap._gcd_import(name[]level:, package, level) > File "<frozen importlib._bootstrap>", line 994, in _gcd_import > File "<frozen importlib._bootstrap>", line 971, in _find_and_load > File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked > File "<frozen importlib._bootstrap>", line 665, in _load_unlocked > File "<frozen importlib._bootstrap_external>", line 678, in exec_module > File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/contrib/auth/models.py", line 4, in <module> from django.contrib.auth.base_user import <AbstractBaseUser>, <BaseUserManager> > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/contrib/auth/base_user.py", line 52, in <module> class <AbstractBaseUser>(models.Model): > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/base.py", line 124, in *new* new_class.add_to_class('_meta', Options(meta, app_label)) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/base.py", line 325, in add_to_class value.contribute_to_class(cls, name) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/options.py", line 214, in contribute_to_class self.db_table = truncate_name(self.db_table, connection.ops.max_name_length()) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/*init*.py", line 33, in *getattr* return getattr(connections[]DEFAULT_DB_ALIAS, item) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/utils.py", line 211, in *getitem* backend = load_backend(db['ENGINE']) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/utils.py", line 115, in load_backend return import_module('%s.base' % backend_name) > File "/usr/lib/python3.6/importlib/*init*.py", line 126, in import_module return _bootstrap._gcd_import(name[]level:, package, level) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 25, in <module> raise <ImproperlyConfigured>("Error loading psycopg2 module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2' Traceback (most recent call last): > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 21, in <module> import psycopg2 as Database <ModuleNotFoundError>: No module named 'psycopg2' During handling of the above exception, another exception occurred: Traceback (most recent call last): > File "./manage.py", line 75, in <module> execute_from_command_line(sys.argv) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/core/management/*init*.py", line 364, in execute_from_command_line utility.execute() > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/core/management/*init*.py", line 338, in execute django.setup() > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/*init*.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/apps/registry.py", line 108, in populate app_config.import_models() > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/apps/config.py", line 202, in import_models self.models_module = import_module(models_module_name) > File "/usr/lib/python3.6/importlib/*init*.py", line 126, in import_module return _bootstrap._gcd_import(name[]level:, package, level) > File "<frozen importlib._bootstrap>", line 994, in _gcd_import > File "<frozen importlib._bootstrap>", line 971, in _find_and_load > File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked > File "<frozen importlib._bootstrap>", line 665, in _load_unlocked > File "<frozen importlib._bootstrap_external>", line 678, in exec_module > File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/contrib/auth/models.py", line 4, in <module> from django.contrib.auth.base_user import <AbstractBaseUser>, <BaseUserManager> > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/contrib/auth/base_user.py", line 52, in <module> class <AbstractBaseUser>(models.Model): > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/base.py", line 124, in *new* new_class.add_to_class('_meta', Options(meta, app_label)) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/base.py", line 325, in add_to_class value.contribute_to_class(cls, name) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/models/options.py", line 214, in contribute_to_class self.db_table = truncate_name(self.db_table, connection.ops.max_name_length()) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/*init*.py", line 33, in *getattr* return getattr(connections[]DEFAULT_DB_ALIAS, item) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/utils.py", line 211, in *getitem* backend = load_backend(db['ENGINE']) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/utils.py", line 115, in load_backend return import_module('%s.base' % backend_name) > File "/usr/lib/python3.6/importlib/*init*.py", line 126, in import_module return _bootstrap._gcd_import(name[]level:, package, level) > File "/var/lib/lxc/pandora/rootfs/srv/pandora/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 25, in <module> raise <ImproperlyConfigured>("Error loading psycopg2 module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2' Please restart pan.do/ra to finish the update: sudo /var/lib/lxc/pandora/rootfs/srv/pandora/ctl reload root@ddfe80fccb5cfffe3c4ea6:/var/lib/lxc/pandora/rootfs/srv/pandora# ./ctl reload pandora: unrecognized service pandora-tasks: unrecognized service pandora-encoding: unrecognized service pandora-cron: unrecognized service pandora-websocketd: unrecognized service ```
j added the
backend
label 2019-06-26 15:07:45 +00:00
j added this to the 14.04 milestone 2019-06-26 15:07:45 +00:00
j self-assigned this 2019-06-26 15:07:45 +00:00
j added the
normal
defect
labels 2019-06-26 15:07:45 +00:00
Owner

./update.py dev must be run as pandora user

./update.py dev must be run as pandora user
j added the
invalid
label 2019-06-27 20:09:40 +00:00
j closed this issue 2019-06-27 20:09:40 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#3215
No description provided.