Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
"svn: Can't recode string" - how is Cap's ssh connection different from mine?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
alex.curelea@gmail.com  
View profile  
 More options Jul 23 2007, 4:45 pm
From: "alex.cure...@gmail.com" <alex.cure...@gmail.com>
Date: Mon, 23 Jul 2007 20:45:59 -0000
Local: Mon, Jul 23 2007 4:45 pm
Subject: "svn: Can't recode string" - how is Cap's ssh connection different from mine?
Hi all,

I'm trying to get Capistrano working for the first time, and I've hit
a roadblock.

What I have working:
- I can manually checkout the source using SVN on both my local
machine (Windows) and the remote server (CentOS)
- I've set up deploy.rb, and Capistrano can connect to my server (both
cap deploy:setup and cap -q deploy:check are successful)

What doesn't work:
- cap deploy:cold fails when trying to checkout the code, with the
message "svn: Can't recode string"

The long story:

I have some files in SVN that were committed from a Mac machine.  When
I first manually checked out my code on the CentOS machine, SVN choked
on the files from the Mac with an "svn: Can't recode string" message.
I managed to solve this by setting LC_CTYPE="en_US.UTF-8" (instead of
LC_CTYPE="en_US").

However, when I try cap deploy:cold, I still get the "svn: Can't
recode string" message!

- I can checkout the code on my Windows box with no problems (just
copy&paste the Capistrano svn line and change the paths)
- I can SSH into the CentOS box and manually check out the code with
no problems (same user as Capistrano; same command line; no fiddling
with environment variables; nothing about the locale in .bash_profile;
I just login using SSH, copy&paste the Capistrano svn line).
- Capistrano deploy:cold fails on the svn command.

I'm at a loss - what's different between my putty SSH connection and
the one set up by Capistrano?  How can I go about troubleshooting
this?

Any help would be greatly appreciated.

Here's the output I get from Capistrano on my local machine:

C:\XXXX>cap deploy:cold
[DEPRECATION] Capistrano.configuration is deprecated. Use
Capistrano::Configuration.instance instead
  * executing `deploy:cold'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
SVN Password:
  * executing "svn checkout -q  -r165 --username XXXX --password XXXX
http://XXXX/repos/www/XXXX /home/XXXX/XXXX/releases/20070723193853 &&
(echo 165 > /home/XXXX/XXXX/releases/20070723193853/REVISION)"
    servers: ["xx.xx.161.39"]
Password:
    [xxx...@xx.xx.161.39] executing command
 ** [out] svn: Can't recode string
    command finished
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/XXXX/XXXX/releases/20070723193853; true"
    servers: ["xx.xx.161.39"]
    [xxx...@xx.xx.161.39] executing command
    command finished
command "svn checkout -q  -r165 --username XXXX --password XXXX http://XXXX
/repos/www/XXXX /home/XXXX/XXXX/releases/20070723193853 && (echo 165

> /home/XXXX/XXXXreleases/20070723193853/REVISION)" failed on

X...@xx.xx.161.39

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jamis Buck  
View profile  
 More options Jul 23 2007, 4:55 pm
From: "Jamis Buck" <ja...@37signals.com>
Date: Mon, 23 Jul 2007 14:55:20 -0600
Local: Mon, Jul 23 2007 4:55 pm
Subject: Re: [Capistrano] "svn: Can't recode string" - how is Cap's ssh connection different from mine?
Try adding this to your deploy.rb:

  default_environment["LC_CTYPE"] = "en_US.UTF-8"

The thing to remember is that Capistrano does not use a login shell,
which means that your .profile or .bashrc or whatever will not be
loaded automatically. (In general; you can reconfigure sshd to change
that, but the default is as I've described.)

- Jamis

On 7/23/07, alex.cure...@gmail.com <alex.cure...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
alex.curelea@gmail.com  
View profile  
 More options Jul 23 2007, 5:13 pm
From: "alex.cure...@gmail.com" <alex.cure...@gmail.com>
Date: Mon, 23 Jul 2007 21:13:38 -0000
Local: Mon, Jul 23 2007 5:13 pm
Subject: Re: "svn: Can't recode string" - how is Cap's ssh connection different from mine?
That worked like a charm.

Thanks for the prompt help, and thanks for a great tool!

Alex

On Jul 23, 4:55 pm, "Jamis Buck" <ja...@37signals.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google