Greetings once again,
My guess is folks may think I have a "normal" database connection
problem. I don't believe this is what's happening. Even when I run
deploy:setup I get the error "Could not connect to database" (see
output below). I don't believe cap is connecting to the application
database during a deploy:setup. I would just like to know what
database is being connected to so I can try to track down why I'm
getting the error. Any pointers of where to start looking (like the
location of a cap log file?) would be greatly appreciated.
TR
$ cap deploy:setup
* executing `deploy:setup'
* executing "umask 02 && mkdir -p /var/www/gcd /var/www/gcd/
releases /var/www/gcd/shared /var/www/gcd/shared/system /var/www/gcd/
shared/log /var/www/gcd/shared/pids"
servers: ["mydomain.com"]
Password:
[EMAIL PROTECTED] executing command
*** [err :: [EMAIL PROTECTED]
*** [err :: [EMAIL PROTECTED] Could not connect to database
command finished
On Dec 17, 4:41 pm, tr <[EMAIL PROTECTED]> wrote:
> Greetings,
>
> I started seeing the error message "Could not connect to database"
> when using any cap commands. Here's some output when I did a
> deploy:check after doing a deploy:setup. Note that everything "seems"
> to work OK, except for the errors reported.
>
> $ cap deploy:check
> * executing `deploy:check'
> * executing "test -d /var/www/gcd/releases"
> servers: ["myserver.com"]
> Password:
> [EMAIL PROTECTED] executing command
> [EMAIL PROTECTED]:
> Could not connect to database
>
> command finished
> * executing "test -w /var/www/gcd"
> servers: ["myserver.com"]
> [EMAIL PROTECTED] executing command
> [EMAIL PROTECTED]:
> Could not connect to database
>
> command finished
> * executing "test -w /var/www/gcd/releases"
> servers: ["myserver.com"]
> [EMAIL PROTECTED] executing command
> [EMAIL PROTECTED]:
> Could not connect to database
>
> command finished
> * executing "which svn"
> servers: ["myserver.com"]
> [EMAIL PROTECTED] executing command
> [EMAIL PROTECTED]:
> Could not connect to database
>
> command finished
> You appear to have all necessary dependencies installed
> $ cap deploy:cold
>
> When I do deploy:cold, it doesn't work correctly nor run the
> migration, nor start/restart mongrel. I'm guessing the database I
> can't connect to is my MySQL database, but the error message isn't
> clear. The credentials for the database are all proper and seem to
> work on the server. So, I'm a bit stumped about what the problem
> might be.
>
> Is there any place else I could look for more logging output? Does
> anyone have any suggestions or insights into what the problem might
> be?
>
> Any and all ideas appreciated.
>
> TR
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---