[chef] Re: https://github.com/opscode-cookbooks/application


Chronological Thread 
  • From: Nilesh < >
  • To:
  • Subject: [chef] Re: https://github.com/opscode-cookbooks/application
  • Date: Sun, 11 Nov 2012 11:16:39 -0800

:~$ cd /var/www/shared/
:/var/www/shared$ ls -la
total 12
drwxr-xr-x 2 vagrant vagrant 4096 Nov 11 19:12 .
drwxr-xr-x 3 vagrant vagrant 4096 Nov 11 19:12 ..
-rw-r--r-- 1 vagrant vagrant 145 Nov 11 19:12 database.yml

here is log from another run on a fresh vagrant after chef update to 10.16.2  

https://gist.github.com/4055927

On Nov 11, 2012, at 10:55 AM, Andrea Campi < > wrote:




On Sun, Nov 11, 2012 at 7:34 PM, Nilesh < "> > wrote:
>
> Thanks. I am happy to note I am 95% of the way :)
>
> myapp is generic composed via rails new myapp -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb -T and available at https://github.com/lvnilesh/myapp


Uhm, ok, that's odd.

The Chef run fails while creating a symlink from /var/www/shared/database.yml to /var/www/releases/0465c9e08a9f73ba248bf814e9c816599e75dd95/config/database.yml

The log shows /var/www/shared/database.yml was created, so either it's lying, or it can't create the link in your target directory.
The former would be surprising and point to a bug somewhere—can you confirm /var/www/shared/database.yml is indeed there?

Verifying the latter is a bit tricky because the deploy resource (which is used under the hood) rolls back on error.

Add this to your application block: rollback_on_error true






Archive powered by MHonArc 2.6.16.

§