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

Django configure step fails, no /current directory? #10

Open
meconlin opened this issue Jan 18, 2016 · 2 comments
Open

Django configure step fails, no /current directory? #10

meconlin opened this issue Jan 18, 2016 · 2 comments

Comments

@meconlin
Copy link

I am attempting to setup a Django application layer in Opsworks.
I can run opsworks_deploy_python::django-setup with no issue.
However opsworks_deploy_python::django-configure fails with the error below.

The directory .../current does not exist.
Am I missing a step?

My stack has this custom json:

{
"deploy": {
    "django-test": {
     "custom_type":"django"                
    }
}
}

error logs:

[2016-01-18T18:43:03+00:00] INFO: Processing template[/srv/www/django-test/current/local_settings.py] action create (opsworks_deploy_python::django-configure line 47)

================================================================================
Error executing action `create` on resource 'template[/srv/www/django-test/current/local_settings.py]'
================================================================================


Chef::Exceptions::EnclosingDirectoryDoesNotExist
------------------------------------------------
Parent directory /srv/www/django-test/current does not exist.
@alecpm
Copy link
Owner

alecpm commented Jan 19, 2016

Surprised that setup would complete successfully without creating the "current" symlink. I haven't done a Django deployment in a while so I'll need to look into this in a bit more detail. Did it give you a line number in the recipe for that error?

@meconlin
Copy link
Author

Yeah opsworks_deploy_python::django-setup runs fine with no errors.
Gist of that log

Configure fails on line number 47 of dango-configure:

[2016-01-18T18:43:03+00:00] INFO: Processing template[/srv/www/django-test/current/local_settings.py] action create (opsworks_deploy_python::django-configure line 47)

================================================================================
Error executing action `create` on resource 'template[/srv/www/django-test/current/local_settings.py]'
================================================================================

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

2 participants