GR360RY / dhcpawn

Other
2 stars 1 forks source link

Initial Deployment fails on Mac #1

Closed GR360RY closed 9 years ago

GR360RY commented 9 years ago

Ansible TASK: [webapp | migrate db] - Fails with the below error:

TASK: [webapp | bootstrap] ****************************************************
changed: [dhcpsrv]

TASK: [webapp | ensure private config] ****************************************
changed: [dhcpsrv]

TASK: [webapp | migrate db] ***************************************************
failed: [dhcpsrv] => {"changed": true, "cmd": "cd /opt/dhcpawn && python manage.py db upgrade", "delta": "0:00:00.402363", "end": "2015-04-18 15:16:41.058795", "rc": 1, "start": "2015-04-18 15:16:40.656432", "warnings": []}
stderr: [2015-04-18 15:16:40.927250] INFO: Generic: Started
Traceback (most recent call last):
  File "manage.py", line 192, in <module>
    cli()
  File "/opt/dhcpawn/.env/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/opt/dhcpawn/.env/local/lib/python2.7/site-packages/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/opt/dhcpawn/.env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/dhcpawn/.env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/dhcpawn/.env/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/dhcpawn/.env/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "/opt/dhcpawn/_lib/bootstrapping.py", line 21, in new_func
    return func(*args, **kwargs)
  File "/opt/dhcpawn/_lib/db.py", line 87, in upgrade
    with _migrate_context() as migrate:
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/opt/dhcpawn/_lib/db.py", line 93, in _migrate_context
    from flask_app.app import app
  File "/opt/dhcpawn/flask_app/app.py", line 48, in <module>
    from . import models
  File "/opt/dhcpawn/flask_app/models.py", line 4, in <module>
    from sqlalchemy_utils import IPAddressType
ImportError: No module named sqlalchemy_utils

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/Users/gregs/site.retry

dhcpsrv                    : ok=57   changed=47   unreachable=0    failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
Traceback (most recent call last):
  File "manage.py", line 192, in <module>
    cli()
  File "/Users/gregs/dev/dhcpawn/.env/lib/python2.7/site-packages/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/Users/gregs/dev/dhcpawn/.env/lib/python2.7/site-packages/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/Users/gregs/dev/dhcpawn/.env/lib/python2.7/site-packages/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/gregs/dev/dhcpawn/.env/lib/python2.7/site-packages/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/gregs/dev/dhcpawn/.env/lib/python2.7/site-packages/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "manage.py", line 76, in deploy
    _run_deploy(dest)
  File "manage.py", line 88, in _run_deploy
    subprocess.check_call('vagrant up', shell=True, env=environ)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'vagrant up' returned non-zero exit status 1