Skip to content

Instantly share code, notes, and snippets.

@davekennewell
Last active January 6, 2017 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davekennewell/130f10d6b45a88e2d1bfa9b8dcd065ad to your computer and use it in GitHub Desktop.
Save davekennewell/130f10d6b45a88e2d1bfa9b8dcd065ad to your computer and use it in GitHub Desktop.
Geonode 2.5.6 ansible install error log 01
This is the error message when using commit 1e6d8f9:
TASK: [ansible-geonode | create {{db_metadata_instance}} db] ******************
changed: [34.193.54.183]
TASK: [ansible-geonode | add postgis to the {{db_metadata_instance}} db] ******
changed: [34.193.54.183]
TASK: [ansible-geonode | create {{db_data_instance}} db] **********************
changed: [34.193.54.183]
TASK: [ansible-geonode | add postgis to the {{db_data_instance}} db] **********
changed: [34.193.54.183]
TASK: [ansible-geonode | Django makemigrations] *******************************
ok: [34.193.54.183]
TASK: [ansible-geonode | Django syncdb] ***************************************
failed: [34.193.54.183] => {"cmd": "python manage.py syncdb --noinput --settings=my_test_app.settings", "failed": true, "path": "/home/ubuntu/venvs/my_test_app/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games", "state": "absent", "syspath": ["/home/ubuntu/.ansible/tmp/ansible-tmp-1483686316.51-246584327680340", "/usr/lib/python2.7", "/usr/lib/python2.7/plat-x86_64-linux-gnu", "/usr/lib/python2.7/lib-tk", "/usr/lib/python2.7/lib-old", "/usr/lib/python2.7/lib-dynload", "/usr/local/lib/python2.7/dist-packages", "/usr/lib/python2.7/dist-packages", "/usr/lib/python2.7/dist-packages/PILcompat"]}
msg: stdout: Operations to perform:
Synchronize unmigrated apps: tasks, dialogos, modeltranslation, django_extensions, djcelery, polymorphic, gis, pinax_theme_bootstrap_account, django_forms_bootstrap, catalogue, humanize, geoserver, storages, user_messages, mptt, friendlytagloader, staticfiles, geoexplorer, sitemaps, proxy, pinax_theme_bootstrap, pagination, autocomplete_light, messages, leaflet, api, social, security
Apply all migrations: people, tastypie, agon_ratings, documents, actstream, sites, maps, contenttypes, announcements, layers, sessions, guardian, auth, base, groups, services, oauth2_provider, account, admin, upload, avatar, taggit
Synchronizing apps without migrations:
Creating tables...
Creating table celery_taskmeta
Creating table celery_tasksetmeta
Creating table djcelery_intervalschedule
Creating table djcelery_crontabschedule
Creating table djcelery_periodictasks
Creating table djcelery_periodictask
Creating table djcelery_workerstate
Creating table djcelery_taskstate
Creating table dialogos_comment
Creating table user_messages_thread
Creating table user_messages_userthread
Creating table user_messages_message
Running deferred SQL...
:stderr: Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File "/home/ubuntu/venvs/my_test_app/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/home/ubuntu/venvs/my_test_app/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/ubuntu/venvs/my_test_app/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/ubuntu/venvs/my_test_app/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/home/ubuntu/venvs/my_test_app/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 25, in handle
call_command("migrate", **options)
File "/home/ubuntu/venvs/my_test_app/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 120, in call_command
return command.execute(*args, **defaults)
File "/home/ubuntu/venvs/my_test_app/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/home/ubuntu/venvs/my_test_app/local/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 "/home/ubuntu/venvs/my_test_app/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 318, in sync_apps
cursor.execute(statement)
File "/home/ubuntu/venvs/my_test_app/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/home/ubuntu/venvs/my_test_app/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/home/ubuntu/venvs/my_test_app/local/lib/python2.7/site-packages/django/db/utils.py", line 98, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/ubuntu/venvs/my_test_app/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 62, in execute
return self.cursor.execute(sql)
django.db.utils.ProgrammingError: relation "people_profile" does not exist
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/home/ubuntu/playbook.retry
34.193.54.183 : ok=53 changed=33 unreachable=0 failed=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment