# Did I totally screw up my svn repository? (first deployment)

**URL:** <https://www.ruby-forum.com/t/did-i-totally-screw-up-my-svn-repository-first-deployment/117680>\
**Category:** Deployment\
**Created:** [October 19, 2007, 9:25am UTC](https://www.ruby-forum.com/t/did-i-totally-screw-up-my-svn-repository-first-deployment/117680 "2007-10-19T09:25:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [October 19, 2007, 9:25am UTC](https://www.ruby-forum.com/t/did-i-totally-screw-up-my-svn-repository-first-deployment/117680/1 "2007-10-19T09:25:53Z")

</div>

So I really didn’t know what I was doing when I manually changed a file  
in my current application directory. Now I can’t get my basic status  
command to work:

Peter-Marks-MBP:~/Rails/app petermarks$ svn checkout  
[http://svn.domain.com/svn/app](http://svn.domain.com/svn/app) subv  
A blah blah blah  
Checked out revision 1.  
Peter-Marks-MBP:~/Rails/app petermarks$ svn status  
svn: warning: ‘.’ is not a working copy

Have I messed up my subversion repo beyond repair?

---

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [October 19, 2007, 11:38am UTC](https://www.ruby-forum.com/t/did-i-totally-screw-up-my-svn-repository-first-deployment/117680/2 "2007-10-19T11:38:23Z")

</div>

Hi Peter,

I think you are just in the wrong directory.

On Oct 19, 8:25 am, Peter M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Peter-Marks-MBP:~/Rails/app petermarks$ svn checkout [http://svn.domain.com/svn/app](http://svn.domain.com/svn/app) subv  
> A blah blah blah  
> Checked out revision 1.

this checked out your code into directory “subv”, so you need to cd to  
that dir at this point before running svn status.

Alternatively, specify the dir you want to get the status of:

svn status subv

Jon

---

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [October 19, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/did-i-totally-screw-up-my-svn-repository-first-deployment/117680/3 "2007-10-19T23:14:20Z")

</div>

Jon Evans wrote:

> I think you are just in the wrong directory.

Good call Jon. That’s exactly what I was doing wrong. Thanks a lot 🙂

I have a new problem however. I have yet to deploy my application and  
when I try to execute ‘cap deploy:cold’, the process stalls. Here is  
what comes up:

Peter-Marks-MBP:~/Rails/app/subv petermarks$ cap deploy:cold \*  
executing `deploy:cold’

- executing `deploy:update’  
\*\* transaction: start
- executing `deploy:update\_code’
- executing “svn export -q -r1 [http://svn.orbussystems.com/svn/orbus](http://svn.orbussystems.com/svn/orbus)  
/home/peter/rails\_apps/orbus/releases/20071019205601 && (echo 1 \>  
/home/peter/rails\_apps/orbus/releases/20071019205601/REVISION)”  
servers: [“[zeus.ocssolutions.com](http://zeus.ocssolutions.com)”]  
Password:  
[[zeus.ocssolutions.com](http://zeus.ocssolutions.com)] executing command  
\*\* [err] Authentication realm: [http://svn.orbussystems.com:80](http://svn.orbussystems.com:80)  
[svn.orbussystems.com](http://svn.orbussystems.com)  
\*\* [err] Password for ‘user.orbussystems’:  
\*\* [err] Authentication realm: [http://svn.orbussystems.com:80](http://svn.orbussystems.com:80)  
[svn.orbussystems.com](http://svn.orbussystems.com)  
\*\* Username:

It freezes when it gets to the last line. The authentication info I’m  
giving it is correct and works for ‘cap deploy:setup’. Any idea what  
might be causing this?

---

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [October 20, 2007, 2:42pm UTC](https://www.ruby-forum.com/t/did-i-totally-screw-up-my-svn-repository-first-deployment/117680/4 "2007-10-20T14:42:47Z")

</div>

Hi Peter,

On Oct 19, 10:14 pm, Peter M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> /home/peter/rails\_apps/orbus/releases/20071019205601 && (echo 1 \>
> 
> It freezes when it gets to the last line. The authentication info I’m  
> giving it is correct and works for ‘cap deploy:setup’. Any idea what  
> might be causing this?

I would try connecting to [zeus.ocssolutions.com](http://zeus.ocssolutions.com) as the user defined in  
your deploy.rb file (petermarks if you haven’t overridden it with  
set :user, ‘someuser’), then try executing this command:

svn ls [http://svn.orbussystems.com/svn/orbus](http://svn.orbussystems.com/svn/orbus)

It will probably prompt you for svn authentication info. Give it the  
correct details, and it should cache them for next time. Verify that  
by executing the same command again, it should just list the  
repository without asking for user info.

Once you’ve done all that, your cap deploy command should work.

Jon

---

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [October 21, 2007, 1:48am UTC](https://www.ruby-forum.com/t/did-i-totally-screw-up-my-svn-repository-first-deployment/117680/5 "2007-10-21T01:48:37Z")

</div>

Hi Jon:

Thanks again for your advice. When I execute the command you suggested  
it lists the repository as expected:

Peter-Marks-MBP:~/Rails/Orbus petermarks$ svn ls  
[http://svn.orbussystems.com/svn/orbus](http://svn.orbussystems.com/svn/orbus)  
Capfile  
README  
Rakefile  
app/  
components/  
config/  
db/  
doc/  
lib/  
log/  
orbus/  
public/  
script/  
test/  
tmp/  
vendor/

However, I’m still getting the same error on ‘cap deploy:cold’

Thanks again for your suggestion though.

Peter

---

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [October 22, 2007, 3:15am UTC](https://www.ruby-forum.com/t/did-i-totally-screw-up-my-svn-repository-first-deployment/117680/6 "2007-10-22T03:15:22Z")

</div>

> Looks like you’re running that command from your MacBook. I meant for  
> you to ssh to the machine you’re trying to deploy to, and run ‘svn ls’  
> from there.
> 
> Jon

Running your suggested command on my server cleared that barrier. Thanks  
Jon 🙂

In-keeping with the pattern of my deployment process however, I’m  
confronted with yet another barrier. After successfully migrating the db  
with cap deploy:cold I get the following error:

- executing `deploy:start’
- executing “cd /home/peter/rails\_apps/orbus/current; mongrel\_rails  
start -e production -p 60559 -d”  
servers: [“[zeus.ocssolutions.com](http://zeus.ocssolutions.com)”]  
[[zeus.ocssolutions.com](http://zeus.ocssolutions.com)] executing command  
\*\*\* [err :: [zeus.ocssolutions.com](http://zeus.ocssolutions.com)] \*\* Ruby version is not up-to-date;  
loading cgi\_multipart\_eof\_fix  
command finished

Looks like I need to update ruby on my server. I’m not sure how to do  
this as it’s shared hosting, so I’ll have to contact my host tomorrow.

Thanks again for your help Jon. I really appreciate it.

---

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [October 22, 2007, 10:17am UTC](https://www.ruby-forum.com/t/did-i-totally-screw-up-my-svn-repository-first-deployment/117680/7 "2007-10-22T10:17:49Z")

</div>

On Oct 22, 2:15 am, Peter M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> \*\*\* [err :: [zeus.ocssolutions.com](http://zeus.ocssolutions.com)] \*\* Ruby version is not up-to-date;  
> loading cgi\_multipart\_eof\_fix  
> command finished
> 
> Looks like I need to update ruby on my server. I’m not sure how to do  
> this as it’s shared hosting, so I’ll have to contact my host tomorrow.

It’s not necessary to update Ruby - Mongrel spits out this warning if  
you have a Ruby version \< 1.8.6, IIRC,  
and I think the cgi\_multipart\_eof\_fix is loade to get around that  
fact. Have you checked whether you can access  
your mongrel instances?

-Chrisl

---

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [October 22, 2007, 2:10am UTC](https://www.ruby-forum.com/t/did-i-totally-screw-up-my-svn-repository-first-deployment/117680/8 "2007-10-22T02:10:41Z")

</div>

Hi Peter,

On Oct 21, 12:48 am, Peter M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Thanks again for your advice. When I execute the command you suggested  
> it lists the repository as expected:
> 
> Peter-Marks-MBP:~/Rails/Orbus petermarks$ svn lshttp://svn.orbussystems.com/svn/orbus  
> Capfile  
> README

etc.

Looks like you’re running that command from your MacBook. I meant for  
you to ssh to the machine you’re trying to deploy to, and run ‘svn ls’  
from there.

Jon

---

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [October 23, 2007, 1:29pm UTC](https://www.ruby-forum.com/t/did-i-totally-screw-up-my-svn-repository-first-deployment/117680/9 "2007-10-23T13:29:46Z")

</div>

> Have you checked whether you can access your mongrel instances?
> 
> -Chrisl

Hi Chris:

I can manually create mongrel instances in a control panel. Is this the  
same as accessing them? Sorry for my unfamiliarity, I cant find much on  
interacting directly with mongrel. I’ve been getting by 100% through my  
host’s wiki. Is there anything you can point me towards?

Thanks,

Peter

---

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [October 25, 2007, 12:55am UTC](https://www.ruby-forum.com/t/did-i-totally-screw-up-my-svn-repository-first-deployment/117680/10 "2007-10-25T00:55:17Z")

</div>

Turns out the ‘error’ I was freaking out about really wasn’t much of an  
error at all. The command finished, mongrel has started and my site is  
online and functional!

Thanks for the help Chris and Jon 🙂
