# Capistrano getaddrinfo error?

**URL:** <https://www.ruby-forum.com/t/capistrano-getaddrinfo-error/68789>\
**Category:** Rails\
**Created:** [September 15, 2006, 2:52pm UTC](https://www.ruby-forum.com/t/capistrano-getaddrinfo-error/68789 "2006-09-15T14:52:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 15, 2006, 2:52pm UTC](https://www.ruby-forum.com/t/capistrano-getaddrinfo-error/68789/1 "2006-09-15T14:52:13Z")

</div>

I’m having troubles setting up Capistrano on Dreamhost … here’s the  
EXACT steps I took, almost following the guide from [nubyonrails.com](http://nubyonrails.com):

On server:

cd svn/  
mkdir rails.bechbox.dk  
svnadmin create ~/svn/rails.bechbox.dk

Local:

~/rails megl$ ls  
blog portfolio rails.bechbox.dk  
rails.ubtesten.info tags  
~/rails megl$ svn import rails.bechbox.dk  
svn+ssh://removed\_email\_address@domain.invalid/home/megl/svn/rails.bechbox.dk -m “import”

and then svn adds all the files in rails.bechbox.dk

~/rails megl$ svn co  
svn+ssh://removed\_email\_address@domain.invalid/home/megl/svn/rails.bechbox.dk  
rails.bechbox.dk  
svn: Failed to add directory ‘rails.bechbox.dk/test’: object of the  
same name already exists

~/rails megl$ mv rails.bechbox.dk rails.bechbox.dk\_presvn  
~/rails megl$ svn co  
svn+ssh://removed\_email\_address@domain.invalid/home/megl/svn/rails.bechbox.dk  
rails.bechbox.dk

~/rails/rails.bechbox.dk megl$ cap -A .  
exists config  
create config/deploy.rb  
exists lib/tasks  
create lib/tasks/capistrano.rake  
Loaded suite /usr/local/bin/cap  
Started

Finished in 0.000458 seconds.

0 tests, 0 assertions, 0 failures, 0 errors

And then I change the deploy.rb to the one from [nubyonrails.com](http://nubyonrails.com) and  
make the necessary changes in there

So far so good! But now it goes haywire:

~/rails/rails.bechbox.dk megl$ rake remote:exec ACTION=setup  
(in /Users/megl/rails/rails.bechbox.dk)  
loading configuration  
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/recipes/standard.rb  
loading configuration ./config/deploy.rb

- executing task setup
- executing “mkdir -p -m 775 /home/megl/rails.bechbox.dk/releases  
/home/megl/rails.bechbox.dk/shared/system &&\n mkdir -p -m 777  
/home/megl/rails.bechbox.dk/shared/log &&\n mkdir -p -m 777  
/home/megl/rails.bechbox.dk/shared/pids”  
servers: [“rails.bechbox.dk”]  
rake aborted!  
getaddrinfo: No address associated with nodename

(See full trace by running task with --trace)

I’ve done the exact same thing with another project on the same server  
a while ago, and that went fine. Any ideas what I might be doing wrong  
here?

Thanks in advance!!

Mikkel

> **[Mikkel Bech](https://bechbox.dk/)**

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 15, 2006, 3:52pm UTC](https://www.ruby-forum.com/t/capistrano-getaddrinfo-error/68789/2 "2006-09-15T15:52:30Z")

</div>

Interesting, seems like a simple problem resolving the domain  
rails.bechbox.dk.

I just did a dig lookup on your name and can’t find it:

rails.bechbox.dk. IN A

but I can see:

bechbox.dk. 3600 IN A 208.97.163.60

can you check your dns, or use the www server instead?

On 9/15/06, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ~/rails megl$ svn co  
> ~/rails/rails.bechbox.dk megl$ cap -A .
> 
> - executing task setup  
> I’ve done the exact same thing with another project on the same server
> 
> >

–  
Charles Brian Q.  
self-promotion: [www.seebq.com](http://www.seebq.com)  
highgroove studios: [www.highgroove.com](http://www.highgroove.com)  
slingshot hosting: [www.slingshothosting.com](http://www.slingshothosting.com)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 15, 2006, 3:56pm UTC](https://www.ruby-forum.com/t/capistrano-getaddrinfo-error/68789/3 "2006-09-15T15:56:32Z")

</div>

Yeah - maybe I’m just being too impatient 😉 I’ll wait a few hours  
and try again.

/megl

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 15, 2006, 4:02pm UTC](https://www.ruby-forum.com/t/capistrano-getaddrinfo-error/68789/4 "2006-09-15T16:02:33Z")

</div>

Wait a minute … what if I did create the sub domain AFTER checking  
out the repository … does that have anything to say?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 15, 2006, 4:14pm UTC](https://www.ruby-forum.com/t/capistrano-getaddrinfo-error/68789/5 "2006-09-15T16:14:36Z")

</div>

yeah but in your svn statements, you were using the bechbox.dk domain  
too.

your dns is at 3600 second updates, it should propogate by now…

On 9/15/06, Mikkel B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > On 9/15/06, Charles Brian Q. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> > 
> > > > svn+ssh://removed\_email\_address@domain.invalid/home/megl/svn/rails.bechbox.dk -m “import”  
> > > > ~/rails megl$ svn co
> > > > 
> > > > (in /Users/megl/rails/rails.bechbox.dk)  
> > > > getaddrinfo: No address associated with nodename
> > > 
> > > highgroove studios: [www.highgroove.com](http://www.highgroove.com)  
> > > slingshot hosting: [www.slingshothosting.com](http://www.slingshothosting.com)
> > > 
> > > > >
> 
> >

–  
Charles Brian Q.  
self-promotion: [www.seebq.com](http://www.seebq.com)  
highgroove studios: [www.highgroove.com](http://www.highgroove.com)  
slingshot hosting: [www.slingshothosting.com](http://www.slingshothosting.com)
