Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fab deploy failed on development environment #2286

Open
demis-svenska opened this issue Oct 18, 2018 · 0 comments
Open

fab deploy failed on development environment #2286

demis-svenska opened this issue Oct 18, 2018 · 0 comments

Comments

@demis-svenska
Copy link
Contributor

demis-svenska commented Oct 18, 2018

I run thic command cchq development fab deploy on control server and gets the following error

Requested: /home/cchq/www/dev/releases/2018-10-18_11.13/python_env/bin/python manage.py mail_admins --subject 'Deploy to development failed. Try resuming with fab development deploy:resume=yes.' 'Traceback:
  File "/vagrant/src/commcare_cloud/fab/fabfile.py", line 558, in _deploy_without_asking
    deploy_checkpoint(index, command.__name__, execute_with_timing, command)
  File "/vagrant/src/commcare_cloud/fab/fabfile.py", line 523, in deploy_checkpoint
    fn(*args, **kwargs)
  File "/vagrant/src/commcare_cloud/fab/utils.py", line 33, in execute_with_timing
    execute(fn, *args, **kwargs)
  File "/home/vagrant/.virtualenvs/ansible/local/lib/python2.7/site-packages/fabric/tasks.py", line 387, in execute
    multiprocessing
  File "/home/vagrant/.virtualenvs/ansible/local/lib/python2.7/site-packages/fabric/tasks.py", line 277, in _execute
    return task.run(*args, **kwargs)
  File "/home/vagrant/.virtualenvs/ansible/local/lib/python2.7/site-packages/fabric/tasks.py", line 174, in run
    return self.wrapped(*args, **kwargs)
  File "/vagrant/src/commcare_cloud/fab/fabfile.py", line 456, in _setup_release
    env.deploy_metadata.tag_setup_release()
  File "/vagrant/src/commcare_cloud/fab/utils.py", line 153, in tag_setup_release
    '"'"'Github API key does not have the right settings. '"'"'
Exception: Github API key does not have the right settings. Please create an API key with the public_repo scope enabled.' --slack --environment dev
Executed: sudo -S -p 'sudo password:' -H  -u "cchq"  /bin/bash -l -c "cd /home/cchq/www/dev/releases/2018-10-18_11.13 >/dev/null && /home/cchq/www/dev/releases/2018-10-18_11.13/python_env/bin/python manage.py mail_admins --subject 'Deploy to development failed. Try resuming with fab development deploy:resume=yes.' 'Traceback:
  File \"/vagrant/src/commcare_cloud/fab/fabfile.py\", line 558, in _deploy_without_asking
    deploy_checkpoint(index, command.__name__, execute_with_timing, command)
  File \"/vagrant/src/commcare_cloud/fab/fabfile.py\", line 523, in deploy_checkpoint
    fn(*args, **kwargs)
  File \"/vagrant/src/commcare_cloud/fab/utils.py\", line 33, in execute_with_timing
    execute(fn, *args, **kwargs)
  File \"/home/vagrant/.virtualenvs/ansible/local/lib/python2.7/site-packages/fabric/tasks.py\", line 387, in execute
    multiprocessing
  File \"/home/vagrant/.virtualenvs/ansible/local/lib/python2.7/site-packages/fabric/tasks.py\", line 277, in _execute
    return task.run(*args, **kwargs)
  File \"/home/vagrant/.virtualenvs/ansible/local/lib/python2.7/site-packages/fabric/tasks.py\", line 174, in run
    return self.wrapped(*args, **kwargs)
  File \"/vagrant/src/commcare_cloud/fab/fabfile.py\", line 456, in _setup_release
    env.deploy_metadata.tag_setup_release()
  File \"/vagrant/src/commcare_cloud/fab/utils.py\", line 153, in tag_setup_release
    '\"'\"'Github API key does not have the right settings. '\"'\"'
Exception: Github API key does not have the right settings. Please create an API key with the public_repo scope enabled.' --slack --environment dev"
Disconnecting from 192.168.33.15... done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant