Capistrano deployment issue ?

K

kalyan

Hi ,

I want to Capistrano deployment , it is urgent to me . While i cap deply:update it causes the error . Let me know any one solution for this problem .
Error:
-----------

$ cap deploy:cold
After some steps execute success fully, i got this error.
servers: ["172.20.1.33"]
[172.20.1.33] executing command
** [out :: 172.20.1.33] ln:
** [out :: 172.20.1.33] creating symbolic link `/media/disk-1/ror_projects/pras
ad/twitter_app/releases/20110508045420/log'
** [out :: 172.20.1.33] : Operation not permitted
** [out :: 172.20.1.33]
command finished in 109ms
failed: "sh -c 'rm -rf /media/disk-1/ror_projects/prasad/twitter_app/releases/20
110508045420/log /media/disk-1/ror_projects/prasad/twitter_app/releases/20110508
045420/public/system /media/disk-1/ror_projects/prasad/twitter_app/releases/2011
0508045420/tmp/pids &&\\\n mkdir -p /media/disk-1/ror_projects/prasad/twitt
er_app/releases/20110508045420/public &&\\\n mkdir -p /media/disk-1/ror_pro
jects/prasad/twitter_app/releases/20110508045420/tmp &&\\\n ln -s /media/di
sk-1/ror_projects/prasad/twitter_app/shared/log /media/disk-1/ror_projects/prasa
d/twitter_app/releases/20110508045420/log &&\\\n ln -s /media/disk-1/ror_pr
ojects/prasad/twitter_app/shared/system /media/disk-1/ror_projects/prasad/twitte
r_app/releases/20110508045420/public/system &&\\\n ln -s /media/disk-1/ror_
projects/prasad/twitter_app/shared/pids /media/disk-1/ror_projects/prasad/twitte
r_app/releases/20110508045420/tmp/pids'" on 172.20.1.33

Thanks.
 
E

Eugen Ciur

** [out :: 172.20.1.33] : Operation not permitted
** [out :: 172.20.1.33]
Check if one of below applies to you

1. Deployment folder doesn't exist
2. You have wrong permissions for you deployment folder.
3. No disk space left

You can also run this command
cap deploy:check
To see if you deployment path is ok.

Hope it helps.
 
P

Prasad B.

Eugen Ciur wrote in post #997541:
** [out :: 172.20.1.33] : Operation not permitted
** [out :: 172.20.1.33]
Check if one of below applies to you

1. Deployment folder doesn't exist
2. You have wrong permissions for you deployment folder.
3. No disk space left

You can also run this command
cap deploy:check
To see if you deployment path is ok.

Hope it helps.

Hi Ciur ,
The above things is not a problem , i run "cap deploy:check ",
it run successfully. If i run cap deploy:update_code it store code in
server but , it store code and fails at creating symbolic links. If any
command fails next some functions need to run for migrations and restart
server .

Thanks .
 
E

Eugen Ciur

fails at creating symbolic links

It fails to create symbolic links because link file already exists.
Misleading messages states though that (operation not permitted)!

See example, if I create symbolic link twice - second time it will fail:

:tmp> $ ln -s some_file link_name
:tmp> $ ln -s some_file link_name
ln: creating symbolic link `link_name': File exists

To help you, show us your deploy.rb file (at least place where you
create sym links)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top