logo       

Re: Could not connect to database: msg#00116

lang.ruby.capistrano.general

Subject: Re: Could not connect to database


OK, please ignore the previous posts. This is NOT a Capistrano
problem. I still have the problem, but it's a problem on my server.

Sorry to have interrupted this channel.

TR

On Dec 18, 8:48 am, tr <terry...-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote:
> 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:
> [r...-3Q2Tfjf0mexWk0Htik3J/w@xxxxxxxxxxxxxxxx] executing command
> *** [err :: r...-3Q2Tfjf0mexWk0Htik3J/w@xxxxxxxxxxxxxxxx]
> *** [err :: r...-3Q2Tfjf0mexWk0Htik3J/w@xxxxxxxxxxxxxxxx] Could not connect
> to database
> command finished
>
> On Dec 17, 4:41 pm, tr <terry...-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx>
> 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:
> > [r...-mXuENlnwU4lWk0Htik3J/w@xxxxxxxxxxxxxxxx] executing command
> > r...-mXuENlnwU4lWk0Htik3J/w@xxxxxxxxxxxxxxxx:
> > Could not connect to database
>
> > command finished
> > * executing "test -w /var/www/gcd"
> > servers: ["myserver.com"]
> > [r...-mXuENlnwU4lWk0Htik3J/w@xxxxxxxxxxxxxxxx] executing command
> > r...-mXuENlnwU4lWk0Htik3J/w@xxxxxxxxxxxxxxxx:
> > Could not connect to database
>
> > command finished
> > * executing "test -w /var/www/gcd/releases"
> > servers: ["myserver.com"]
> > [r...-mXuENlnwU4lWk0Htik3J/w@xxxxxxxxxxxxxxxx] executing command
> > r...-mXuENlnwU4lWk0Htik3J/w@xxxxxxxxxxxxxxxx:
> > Could not connect to database
>
> > command finished
> > * executing "which svn"
> > servers: ["myserver.com"]
> > [r...-mXuENlnwU4lWk0Htik3J/w@xxxxxxxxxxxxxxxx] executing command
> > r...-mXuENlnwU4lWk0Htik3J/w@xxxxxxxxxxxxxxxx:
> > 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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise