<?xml version="1.0" encoding="utf-8"?>
		<feed xmlns="http://www.w3.org/2005/Atom">
		  <title type="text">Slicehost Forum - cap deploy_with_migrations error #2</title>
		  <updated>2010-09-09T03:01:39+00:00</updated>
		  <id>http://forum.slicehost.com/</id>
		  <link rel="alternate" type="text/html" hreflang="en" href="http://forum.slicehost.com/comments.php?DiscussionID=352"/>
		  <link rel="self" type="application/atom+xml" href="http://forum.slicehost.com/comments.php?DiscussionID=352&amp;Feed=Atom"/>
		  <generator uri="http://getvanilla.com/" version="1.1.8">
			 Lussumo Vanilla
		  </generator>
		  <entry>
		<title>cap deploy_with_migrations error #2</title>
		<link rel="alternate" href="http://forum.slicehost.com/comments.php?DiscussionID=352&amp;Focus=1909#Comment_1909" type="application/xhtml+xml" hreflang="en"/>
		<id>http://forum.slicehost.com/comments.php?DiscussionID=352&amp;Focus=1909#Comment_1909</id>
		<published>2007-03-27T23:03:48+00:00</published>
		<updated>2007-03-27T23:04:19+00:00</updated>
		<author>
			<name>bdm</name>
			<uri>http://forum.slicehost.com/account.php?u=153</uri>
		</author>
		<summary type="text" xml:lang="en">
			Hi All,

Following Jason's HOWTO on deploying a Rails App using Deprec/Capistrano, have had some issues.

The Local Development Environment is a Kubuntu Edgy Eft machine and the Remote Machine ...
		</summary>
		<content type="html">
			<![CDATA[Hi All,<br /><br />Following Jason's <a href="http://wiki.slicehost.com/doku.php?id=automated_rails_install_and_deployment_with_deprec_capistrano" >HOWTO</a> on deploying a Rails App using Deprec/Capistrano, have had some issues.<br /><br />The Local Development Environment is a Kubuntu Edgy Eft machine and the Remote Machine (Slice) is an Ubuntu Edgy Eft server. Both systems are current and up-to-date.<br /><br />Following these commands so far;<br /><br />$ cap install_full_rails_stack<br />$ cap deprec_setup<br />$ cap setup_scm<br /><br />Works fine, nil errors.<br /><br />$ cap deploy_with_migrations<br /><br />Fails with this error output, using both 'cap deploy_with_migrations' and 'cap deploy';<br /><br />ben@speedymunky:~/project/fourwallsandaroof_machine$ cap deploy_with_migrations<br />  * executing task deploy_with_migrations<br />  * executing task update_code<br />  * querying latest revision...<br />Enter passphrase for key '/home/ben/.ssh/id_rsa':<br />  * executing "if [[ ! -d /var/www/apps/fourwallsandaroof/releases/20070327155358 ]]; then\n              svn co --no-auth-cache   -q -r3 svn+ssh://deploy@63.97.251.238/var/www/apps/fourwallsandaroof/repos/trunk /var/www/apps/fourwallsandaroof/releases/20070327155358 &&\n              (test -e /var/www/apps/fourwallsandaroof/revisions.log || (touch /var/www/apps/fourwallsandaroof/revisions.log && chmod 666 /var/www/apps/fourwallsandaroof/revisions.log)) && echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER 3 20070327155358 >> /var/www/apps/fourwallsandaroof/revisions.log;\n            fi"<br />    servers: ["63.97.251.238"]<br />Enter password for /home/ben/.ssh/id_rsa:<br />Enter password for /home/ben/.ssh/id_rsa:<br />Enter password for /home/ben/.ssh/id_rsa:<br />    [63.97.251.238] executing command<br /> ** [out :: 63.97.251.238] sh: [[: not found<br />    command finished<br />  * executing task set_permissions<br />  * executing "chmod -R g+w /var/www/apps/fourwallsandaroof/releases/20070327155358"<br />    servers: ["63.97.251.238"]<br />    [63.97.251.238] executing command<br /> ** [out :: 63.97.251.238] chmod: cannot access `/var/www/apps/fourwallsandaroof/releases/20070327155358': No such file or directory<br />    command finished<br />command "chmod -R g+w /var/www/apps/fourwallsandaroof/releases/20070327155358" failed on 63.97.251.238<br /><br />I have spoken to Jason about this and he reckons it is unusual. Have redone the steps again twice and the error remains.<br /><br />Anyone seen this before?<br /><br />Cheers, Ben.]]>
		</content>
	</entry>
	<entry>
		<title>cap deploy_with_migrations error #2</title>
		<link rel="alternate" href="http://forum.slicehost.com/comments.php?DiscussionID=352&amp;Focus=1911#Comment_1911" type="application/xhtml+xml" hreflang="en"/>
		<id>http://forum.slicehost.com/comments.php?DiscussionID=352&amp;Focus=1911#Comment_1911</id>
		<published>2007-03-27T23:30:56+00:00</published>
		<updated>2010-09-09T03:01:39+00:00</updated>
		<author>
			<name>jason</name>
			<uri>http://forum.slicehost.com/account.php?u=10</uri>
		</author>
		<summary type="text" xml:lang="en">
			Ben solved the riddle in the chatroom.  He dist-upgraded to edgy which changes the default shell from bash to dash which doesn't like the [['s

To work around, edit /etc/password and change /bin/sh ...
		</summary>
		<content type="html">
			<![CDATA[Ben solved the riddle in the chatroom.  He dist-upgraded to edgy which changes the default shell from bash to dash which doesn't like the [['s<br /><br />To work around, edit /etc/password and change /bin/sh to /bin/bash for your deployment user]]>
		</content>
	</entry>
	<entry>
		<title>cap deploy_with_migrations error #2</title>
		<link rel="alternate" href="http://forum.slicehost.com/comments.php?DiscussionID=352&amp;Focus=1912#Comment_1912" type="application/xhtml+xml" hreflang="en"/>
		<id>http://forum.slicehost.com/comments.php?DiscussionID=352&amp;Focus=1912#Comment_1912</id>
		<published>2007-03-27T23:55:07+00:00</published>
		<updated>2010-09-09T03:01:39+00:00</updated>
		<author>
			<name>bdm</name>
			<uri>http://forum.slicehost.com/account.php?u=153</uri>
		</author>
		<summary type="text" xml:lang="en">
			Jason solved the riddle, I just provided the clues ... he is too modest!
		</summary>
		<content type="html">
			<![CDATA[Jason solved the riddle, I just provided the clues ... he is too modest!]]>
		</content>
	</entry>
	
		</feed>