Yes. Is this normal? or is there a solution to this problem.

On Oct 17, 10:45 am, Rafa García <[email protected]> wrote:
> I guess you're suffering a kind of race condition. By one side is trying to
> decompress, in other side deleting the file,...
>
> 2011/10/17 linuxbsdfreak <[email protected]>
>
>
>
>
>
>
>
>
>
> > Yes. They are the same machines. However i also noticed that the
> > althought the file /tmp/20111011151849.tar.gz exists and it extracts
> > the tar archive. The last command rm /tmp/20111011151849.tar.gz always
> > fails.  I am wondering although the file exists, why does the command
> > fail. Is this a bug in capistrano. If i edit the file in
>
> > gems/capistrano-2.9.0/lib/capistrano/recipes/deploy/strategy/copy.rb
>
> > and change the line
>
> > run "cd #{configuration[:releases_path]} &&
> > #{decompress(remote_filename).join(" ")} && rm #{remote_filename}"
>
> > to
>
> >  run "cd #{configuration[:releases_path]} &&
> > #{decompress(remote_filename).join(" ")}"
>
> > The command works and doesnt do a rollback. Wondering why this
> > behaviour is happening.
>
> > Regards,
> > Kevin
>
> > On Oct 16, 10:53 pm, Rafa García <[email protected]> wrote:
> > > It's late, sorry. But are webserver and webserver.test.local the same
> > > machine?
>
> > > 2011/10/11 linuxbsdfreak <[email protected]>
>
> > > > Hi All,
>
> > > >  I am getting the following error:
>
> > > > * executing "cd /usr/share/webapps/configuration/releases && tar xzf /
> > > > tmp/20111011151849.tar.gz && rm /tmp/20111011151849.tar.gz"
> > > >    servers: ["webserver", "webserver.test.local"]
> > > >    [webserver] executing command
> > > >    [webserver.test.local] executing command
> > > > *** [err :: webserver]
> > > > *** [err :: webserver] gzip:
> > > > *** [err :: webserver] stdin: unexpected end of file
> > > > *** [err :: webserver] tar:
> > > > *** [err :: webserver] Child returned status 1
> > > > *** [err :: webserver]
> > > > *** [err :: webserver] tar:
> > > > *** [err :: webserver] Error exit delayed from previous errors
> > > > *** [err :: webserver]
> > > > *** [err :: webserver.test.local]
> > > > *** [err :: webserver.test.local] gzip:
> > > > *** [err :: webserver.test.local] stdin: unexpected end of file
> > > > *** [err :: webserver.test.local] tar:
> > > > *** [err :: webserver.test.local] Child returned status 1
> > > > *** [err :: webserver.test.local]
> > > > *** [err :: webserver.test.local] tar:
> > > > *** [err :: webserver.test.local] Error exit delayed from previous
> > > > errors
> > > > *** [err :: webserver.test.local]
>
> > > > I am using the following config
>
> > > > set :stages, %w[staging production]
> > > > set :deploy_to, "/usr/share/webserver/configuration"
> > > > set :deploy_via, :copy
> > > > set :copy_exclude,  ".git/*"
> > > > set :application, "Webapp"
> > > > set :repository,  "ssh://webserver.test.loca/repodata/git/repos/
> > > > webapp.git"
> > > > set :branch, "master"
> > > > set :scm, :git
> > > > set :scm_verbose, true
> > > > set :use_sudo, false
> > > > set :keep_releases, 2
> > > > set :git_shallow_clone, 1
>
> > > > role :web, "webserver"
>
> > > > Am i missing anything in the configuration?
>
> > > > Regards,
> > > > Kevin
>
> > > > --
> > > > * You received this message because you are subscribed to the Google
> > Groups
> > > > "Capistrano" group.
> > > > * To post to this group, send email to [email protected]
> > > > * To unsubscribe from this group, send email to
> > > > [email protected] For more options, visit this
> > group
> > > > athttp://groups.google.com/group/capistrano?hl=en
>
> > --
> > * You received this message because you are subscribed to the Google Groups
> > "Capistrano" group.
> > * To post to this group, send email to [email protected]
> > * To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group
> > athttp://groups.google.com/group/capistrano?hl=en

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to