site:deploy URL issue?
All, When doing a site:deploy to a Linux machine, I get the following error message: [INFO] [site:deploy] scp://bcterwinlinux/website/Remora4 - Session: Opened Executing command: mkdir -p /website/myFolder/. scp://bcterwinlinux/website/myFolder - Session: Disconnecting scp://bcterwinlinux/website/myFolder - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Error performing commands for file transfer Exit code: 1 - mkdir: cannot create directory `/website': Permission denied It appears that mkdir attempts to create the folder in the root of the file system (/website/myFolder), to which we obviously don't have access. Three questions: 1. Is there a way to get rid of the leading '/' in the directory name?, or 2. Is there an scp version on RH FC3 that does a chroot? 3. Am I missing something obvious? Thanks in advance, Justin
RE: site:deploy URL issue?
Thanks Brian and Dana. Yes, scp://bcterwinlinux/home/website/myFolder worked. Appreciate the quick response. (Should have recognized this ;-) -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 12:18 PM To: Maven Users List Subject: RE: site:deploy URL issue? You need to use the full path on the remote machine. It does not assume home by default. -Original Message- From: Marose, Justin (GE EntSol, Security) [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 12:05 PM To: users@maven.apache.org Subject: site:deploy URL issue? All, When doing a site:deploy to a Linux machine, I get the following error message: [INFO] [site:deploy] scp://bcterwinlinux/website/Remora4 - Session: Opened Executing command: mkdir -p /website/myFolder/. scp://bcterwinlinux/website/myFolder - Session: Disconnecting scp://bcterwinlinux/website/myFolder - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Error performing commands for file transfer Exit code: 1 - mkdir: cannot create directory `/website': Permission denied It appears that mkdir attempts to create the folder in the root of the file system (/website/myFolder), to which we obviously don't have access. Three questions: 1. Is there a way to get rid of the leading '/' in the directory name?, or 2. Is there an scp version on RH FC3 that does a chroot? 3. Am I missing something obvious? Thanks in advance, Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with site:deploy
Hello all, I'm having issues deploying my site using scp protocol (same issue with sftp as well). I get the following error, which apparently means that maven can't find the URL: Cannot connect. Reason: invalid server's version string Here's the kicker... If I remove my http proxy settings from my settings.xml file, my site:deploy works! If looks like even though my distributionManagement URL is using the scp protocol, and my proxy settings specify the http protocol, that it is still going through my proxy. Here are the snippets from my xml files: settings.xml -- proxy idmyproxy/id activetrue/active protocolhttp/protocol hosthttp-proxy.appl.ge.com/host port8080/port nonProxyHostsserverhostname, *.ge.com/nonProxyHosts /proxy? pom.xml - distributionManagement site idmysite/id urlscp://serverhostname/website/url /site /distributionManagement Obviously, removing my proxy settings for http causes me to not be able to download plugins and dependencies. Also, setting 'active' to false does not seem to work, and setting my server's hostname (both fully qualified and not) in the 'nonProxyHosts' tag does not seem to work. Any suggestions would be greatly appreciated. Thanks in advance, Justin
RE: Problem with site:deploy
Yup. Looks like this solved the issue. Now I just have to find out why I'm getting a permission error on my server when trying to deploy. That issue is on my side though. Thanks! -Original Message- From: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 1:53 PM To: Maven Users List Subject: Re: Problem with site:deploy This is known as MSITE-211 http://jira.codehaus.org/browse/MSITE-211 I committed a fix for this and deployed a new 2.0-beta-7-SNAPSHOT. Could you please give that a try, to see if it solves the problem for you? Marose, Justin (GE EntSol, Security) wrote: Hello all, I'm having issues deploying my site using scp protocol (same issue with sftp as well). I get the following error, which apparently means that maven can't find the URL: Cannot connect. Reason: invalid server's version string Here's the kicker... If I remove my http proxy settings from my settings.xml file, my site:deploy works! If looks like even though my distributionManagement URL is using the scp protocol, and my proxy settings specify the http protocol, that it is still going through my proxy. Here are the snippets from my xml files: settings.xml -- proxy idmyproxy/id activetrue/active protocolhttp/protocol hosthttp-proxy.appl.ge.com/host port8080/port nonProxyHostsserverhostname, *.ge.com/nonProxyHosts /proxy? pom.xml - distributionManagement site idmysite/id urlscp://serverhostname/website/url /site /distributionManagement Obviously, removing my proxy settings for http causes me to not be able to download plugins and dependencies. Also, setting 'active' to false does not seem to work, and setting my server's hostname (both fully qualified and not) in the 'nonProxyHosts' tag does not seem to work. Any suggestions would be greatly appreciated. Thanks in advance, Justin -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
http proxy issue with site url protocol (scp or sftp) - defect?
Get an error when running 'site:deploy' because my distributionManagement URL goes through my proxy setting for http. What I don't understand is that my proxy setting is set up for the http protocol, and my distributionManagement site URL uses the scp protocol (same issue if I use the sftp protocol). The error I get is: Cannot connect. Reason: invalid server's version string The only way I can get around the issue is to remove the proxy setting in the settings.xml file. When this is done, my site is deployed (or at least it attempts to deploy - I get another error because of permission issues on the server, but that is out of scope). Obviously, removing my proxy settings for http causes me to not be able to download plugins and dependencies. Also, setting 'active' to false does not seem to work, and setting my server's hostname (both fully qualified and not) in the 'nonProxyHosts' tag does not seem to work. Here are the snippets from my xml files: settings.xml -- proxy idmyproxy/id activetrue/active protocolhttp/protocol hosthttp-proxy.appl.ge.com/host port8080/port nonProxyHostsserverhostname, *.ge.com/nonProxyHosts /proxy? pom.xml - distributionManagement site idmysite/id urlscp://serverhostname/website/url /site /distributionManagement Is this a known/new defect? If not, any suggestion would be greatly appreciated. Thanks in advance, Justin