{"action":"created","issue":{"url":"https://api.github.com/repos/osuosl/ganeti_webmgr/issues/82","labels_url":"https://api.github.com/repos/osuosl/ganeti_webmgr/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/osuosl/ganeti_webmgr/issues/82/comments","events_url":"https://api.github.com/repos/osuosl/ganeti_webmgr/issues/82/events","html_url":"https://github.com/osuosl/ganeti_webmgr/issues/82","id":109466776,"number":82,"title":"Unable to syncdb","user":{"login":"aaronbareford","id":14938190,"avatar_url":"https://avatars.githubusercontent.com/u/14938190?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronbareford","html_url":"https://github.com/aaronbareford","followers_url":"https://api.github.com/users/aaronbareford/followers","following_url":"https://api.github.com/users/aaronbareford/following{/other_user}","gists_url":"https://api.github.com/users/aaronbareford/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronbareford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronbareford/subscriptions","organizations_url":"https://api.github.com/users/aaronbareford/orgs","repos_url":"https://api.github.com/users/aaronbareford/repos","events_url":"https://api.github.com/users/aaronbareford/events{/privacy}","received_events_url":"https://api.github.com/users/aaronbareford/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-02T10:17:29Z","updated_at":"2015-10-02T10:34:44Z","closed_at":"2015-10-02T10:34:44Z","body":"Following the documentation on this page, we were unable to initilise the database using the following commends.\r\nhttp://ganeti-webmgr.readthedocs.org/en/latest/getting_started/installing.html\r\n\r\n`django-admin.py syncdb --migrate`\r\n\r\nThe following error is what we see - can you provide any assistance please?\r\n\r\n`(ganeti_webmgr)[root@localhost ganeti_webmgr]# django-admin.py syncdb --migrate\r\nTraceback (most recent call last):\r\n  File \"/opt/ganeti_webmgr/bin/django-admin.py\", line 5, in <module>\r\n    management.execute_from_command_line()\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/django/core/management/__init__.py\", line 443, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/django/core/management/__init__.py\", line 382, in execute\r\n    self.fetch_command(subcommand).run_from_argv(self.argv)\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/django/core/management/__init__.py\", line 261, in fetch_command\r\n    klass = load_command_class(app_name, subcommand)\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/django/core/management/__init__.py\", line 69, in load_command_class\r\n    module = import_module('%s.management.commands.%s' % (app_name, name))\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/django/utils/importlib.py\", line 35, in import_module\r\n    __import__(name)\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/south/management/commands/__init__.py\", line 10, in <module>\r\n    import django.template.loaders.app_directories\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/django/template/loaders/app_directories.py\", line 21, in <module>\r\n    mod = import_module(app)\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/django/utils/importlib.py\", line 35, in import_module\r\n    __import__(name)\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/haystack/__init__.py\", line 154, in <module>\r\n    handle_registrations()\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/haystack/__init__.py\", line 151, in handle_registrations\r\n    search_sites_conf = importlib.import_module(settings.HAYSTACK_SITECONF)\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/django/utils/importlib.py\", line 35, in import_module\r\n    __import__(name)\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/ganeti_webmgr/search_sites.py\", line 2, in <module>\r\n    haystack.autodiscover()\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/haystack/__init__.py\", line 121, in autodiscover\r\n    importlib.import_module(\"%s.search_indexes\" % app)\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/django/utils/importlib.py\", line 35, in import_module\r\n    __import__(name)\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/ganeti_webmgr/ganeti_web/search_indexes.py\", line 3, in <module>\r\n    from ganeti_webmgr.virtualmachines.models import VirtualMachine\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/ganeti_webmgr/virtualmachines/models.py\", line 5, in <module>\r\n    from ganeti_webmgr.clusters.models import CachedClusterObject\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/ganeti_webmgr/clusters/models.py\", line 297, in <module>\r\n    class Cluster(CachedClusterObject):\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/ganeti_webmgr/clusters/models.py\", line 309, in Cluster\r\n    max_length=128, blank=True)\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/django_fields/fields.py\", line 50, in __init__\r\n    self.cipher = self.cipher_object.new(settings.SECRET_KEY[:32])\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/Crypto/Cipher/AES.py\", line 95, in new\r\n    return AESCipher(key, *args, **kwargs)\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/Crypto/Cipher/AES.py\", line 59, in __init__\r\n    blockalgo.BlockAlgo.__init__(self, _AES, key, *args, **kwargs)\r\n  File \"/opt/ganeti_webmgr/lib/python2.7/site-packages/Crypto/Cipher/blockalgo.py\", line 141, in __init__\r\n    self._cipher = factory.new(key, *args, **kwargs)\r\nValueError: Key cannot be the null string`"},"comment":{"url":"https://api.github.com/repos/osuosl/ganeti_webmgr/issues/comments/144987055","html_url":"https://github.com/osuosl/ganeti_webmgr/issues/82#issuecomment-144987055","issue_url":"https://api.github.com/repos/osuosl/ganeti_webmgr/issues/82","id":144987055,"user":{"login":"aaronbareford","id":14938190,"avatar_url":"https://avatars.githubusercontent.com/u/14938190?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronbareford","html_url":"https://github.com/aaronbareford","followers_url":"https://api.github.com/users/aaronbareford/followers","following_url":"https://api.github.com/users/aaronbareford/following{/other_user}","gists_url":"https://api.github.com/users/aaronbareford/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronbareford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronbareford/subscriptions","organizations_url":"https://api.github.com/users/aaronbareford/orgs","repos_url":"https://api.github.com/users/aaronbareford/repos","events_url":"https://api.github.com/users/aaronbareford/events{/privacy}","received_events_url":"https://api.github.com/users/aaronbareford/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T10:34:44Z","updated_at":"2015-10-02T10:34:44Z","body":"We found the issue described here:\r\nhttps://groups.google.com/forum/#!msg/ganeti-webmgr/KQ6GH6BHqZA/bAcB9bCuAQAJ\r\n\r\nBy settings the variables in the config.yml django installed correctly."}}