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

Already on GitHub? Sign in to your account

manage.py syncdb --noinput fails to run #46

Closed
richardbowden opened this Issue Mar 3, 2014 · 6 comments

Comments

Projects
None yet
3 participants

during a chef run syncdb fails to run. this is the error, i cannot see what is causing this... any ideas ? cheers

Chef::Exceptions::Exec: deploy_revision[datagether](/var/chef/cache/cookbooks/application/providers/default.rb line 122) had an error: Chef::Exceptions::Exec: /home/wolfpack/datagether/shared/env/bin/python manage.py syncdb --noinput returned 1, expected 0

There could be a number of reasons why this would fail AFAIK. Is it possible you're not passing an environment variable that django is expecting? Perhaps DJANGO_SETTINGS_MODULE or SECRET_KEY?

Hey @richardbowden, did you ever figure out what was causing your error?

FWIW I had a problem recently where a newly bootstrapped node installed chef 12 which caused unexpected errors with a deploy_revision resource. I don't have the logs unfortunately.

Hello @Carpetfizz, i spent a few days on it not getting anywhere, in the end i ditched the this cookbook and crafted a recipe specific for my app as I had to get the app deployed...

@Carpetfizz i have just checked my cookbooks, i did get it working post deployment just to satisfy my self...here the is recipe, if i remember correctly, i had to set the sync command manually as you can see from http://pastebin.com/9NpvNUui hope this may help a little

Thanks much, I'll check it out!

On Wed, Mar 11, 2015 at 6:35 AM, Richard Bowden notifications@github.com
wrote:

@Carpetfizz https://github.com/Carpetfizz i have just checked my
cookbooks, i did get it working post deployment just to satisfy my
self...here the is recipe, if i remember correctly, i had to set the sync
command manually as you can see from http://pastebin.com/9NpvNUui hope
this may help a little


Reply to this email directly or view it on GitHub
#46 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment