Like it says, "Permission denied". Check you have permissions where it might be unzipping the files.

- Brett

On 20/08/2009, at 4:00 AM, <[email protected]> <[email protected] > wrote:

Thank You Brett!!



Running an ssh-agent has solved the problem. Now I could see that upload
happens with a wagonXXXXXXXXXXX.zip file.



I have landed into *another problem* now: I am not sure what is making
this to fail now. Why is Maven not able to unzip that wagonXXXX.zip
file? Would you know of any known issues or pointers to what I am
missing here.



[INFO] [site:deploy]

scpexe://mobiletv.w.c/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/ mbs_ut
ilities - Session: Opened

Executing command: mkdir -p
/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/mbs_utilities/.

Executing command: cmd.exe /X /C "ssh -i "C:\Documents and
Settings\subirs\.ssh\id_rsa" -o "BatchMode yes" [email protected]
"mkdir -p /var/www/html/docs/3.3.14.1-SNAPSHOT/modules/ mbs_utilities/.""





Executing command: mkdir -p
/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/mbs_utilities/.



Executing command: cmd.exe /X /C "ssh -i "C:\Documents and
Settings\subirs\.ssh\id_rsa" -o "BatchMode yes" [email protected]
"mkdir -p /var/www/html/docs/3.3.14.1-SNAPSHOT/modules/mbs_utilities/.

""





Uploading: ./wagon69669983633177590.zip to
scpexe://mobiletv.w.c/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/ mbs_ut
ilities



Executing command: cmd.exe /X /C "scp -i "C:\Documents and
Settings\subirs\.ssh\id_rsa" -o "BatchMode yes"
wagon69669983633177590.zip
[email protected]:/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/ mbs_uti
lities/./wagon69669983633177590.zip"

########################################################################
########################################################################
######################

Transfer finished. 676208 bytes copied in 1.203 seconds

Executing command: cd
/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/mbs_utilities/.; unzip -q
-o wagon69669983633177590.zip; rm -f wagon69669983633177590.zip

Executing command: cmd.exe /X /C "ssh -i "C:\Documents and
Settings\subirs\.ssh\id_rsa" -o "BatchMode yes" [email protected] "cd
/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/mbs_utilities/.; unzip -q
-o wagon69669983633177590.zip; rm -f wagon69669983633177590.zip""



error:  cannot open zipfile [ wagon69669983633177590.zip ]

       Permission deniedunzip:  cannot find or open
wagon69669983633177590.zip, wagon69669983633177590.zip.zip or
wagon69669983633177590.zip.ZIP.



Executing command: chmod -Rf g+w,a+rX
/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/mbs_utilities

Executing command: cmd.exe /X /C "ssh -i "C:\Documents and
Settings\subirs\.ssh\id_rsa" -o "BatchMode yes" [email protected]
"chmod -Rf g+w,a+rX
/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/mbs_utilities""





scpexe://mobiletv.w.c/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/ mbs_ut
ilities - Session: Disconnecting

scpexe://mobiletv.w.c/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/ mbs_ut
ilities - Session: Disconnected



Regards,

Subir



-----Original Message-----
From: Brett Porter [mailto:[email protected]] On Behalf Of Brett
Porter
Sent: Thursday, August 20, 2009 2:09 AM
To: Maven Users List
Subject: Re: [MAVEN-2.1.0] Using site:deploy for Wagon-scp-exe is not
successful.



Your key requires a passphrase, but the maven command is instructed

not to prompt for one.



Try running an ssh-agent so you don't have to enter it.



- Brett



On 19/08/2009, at 10:21 AM, <[email protected]> <[email protected]

wrote:



Hi,







This is my first email to Maven Users List. Hope I find a solution or

help or pointer to solve my issue.







I am trying to deploy my site data using scpexe://



I have already configured password less authenitication using rsa2.

i.e.

id_rsa and authorized_keys are configured.



Since it does not complain about ssh errors, so my settings.xml is

configured and distribution management for site is also correct I

guess.



<site>



     <id>m.website</id>



     <name>M Website</name>





<url>scpexe://mobiletv.w.c/var/www/html/docs/${project.version}/

modules<

/url>



</site>







I used Cygwin to run "mvn site:site site:deploy" command and upload

failed with a permission denied message like below.



My remote host is a RHEL 5 desktop and I deploy from Windows XP (using

Cygwin)







[INFO] [site:deploy]



scpexe://mobiletv.w.c/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/

mbs_ut

ilities - Session: Opened



Executing command: mkdir -p

/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/mbs_utilities/.



Executing command: cmd.exe /X /C "ssh -i "C:\Documents and

Settings\subirs\.ssh\id_rsa" -o "BatchMode yes" [email protected]

"mkdir -p /var/www/html/docs/3.3.14.1-SNAPSHOT/modules/

mbs_utilities/.""







Permission denied (publickey,gssapi-with-mic,password).







scpexe://mobiletv.w.c/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/

mbs_ut

ilities - Session: Disconnecting



scpexe://mobiletv.w.c/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/

mbs_ut

ilities - Session: Disconnected



[INFO]


------------------------------------------------------------------------



[ERROR] BUILD ERROR



[INFO]


------------------------------------------------------------------------



[INFO] Error uploading site







Embedded error: Error performing commands for file transfer



Exit code 255 - Permission denied (publickey,gssapi-with-

mic,password).







[INFO]


------------------------------------------------------------------------



[INFO] For more information, run Maven with the -e switch



[INFO]


------------------------------------------------------------------------



[INFO] Total time: 4 minutes 6 seconds



[INFO] Finished at: Wed Aug 19 19:41:32 IST 2009



[INFO] Final Memory: 61M/254M



[INFO]


------------------------------------------------------------------------







However if I use the same command from Cygwin command line it does not

complain of anything.







$> ssh [email protected] "mkdir -p

/var/www/html/docs/3.3.14.1-SNAPSHOT/modules/mbs_utilities/."



Enter passphrase for key 'C:\Documents and Settings\subirs\.ssh

\id_rsa':







If I give passphrase directory is also created successfully with the

above command.







So I guess there is some issue with Maven scp-exe wagon, but not

able to

figure out what it is...



Any help appreciated.







Subir S









Please do not print this email unless it is absolutely necessary.



The information contained in this electronic message and any

attachments to this message are intended for the exclusive use of

the addressee(s) and may contain proprietary, confidential or

privileged information. If you are not the intended recipient, you

should not disseminate, distribute or copy this e-mail. Please

notify the sender immediately and destroy all copies of this message

and any attachments.



WARNING: Computer viruses can be transmitted via email. The

recipient should check this email and any attachments for the

presence of viruses. The company accepts no liability for any damage

caused by any virus transmitted by this email.



www.w.c





---------------------------------------------------------------------

To unsubscribe, e-mail: [email protected]

For additional commands, e-mail: [email protected]




Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to