[jbosstools-issues] [JBoss JIRA] (JBIDE-21981) Error during rsync

Xavier Coulon (JIRA) issues at jboss.org
Tue Mar 29 08:58:00 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-21981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183216#comment-13183216 ] 

Xavier Coulon commented on JBIDE-21981:
---------------------------------------

The proposed patch fixes the {{stream is closed}} part of this issue, but the underlying file permissions part remains.

[~rob.stryker] [~fbricon]: after a bit of investigation, I found that the tooling was trying to rename a temporary {{<workspace>/.metadata/.plugins/org.eclipse.wst.server.core/tmp9098154414}} file 
into 
{{<workspace>/.metadata/.plugins/org.jboss.ide.eclipse.as.core/sample at eap-app/deploy/ROOT.war/META-INF/MANIFEST.MF}} 
but 
{{<workspace>/.metadata/.plugins/org.jboss.ide.eclipse.as.core/sample at eap-app/deploy/ROOT.war}} 
is a _file_, not a directory on my system. Maybe because the application was deployed in a non-exploded form before ?
 

> Error during rsync
> ------------------
>
>                 Key: JBIDE-21981
>                 URL: https://issues.jboss.org/browse/JBIDE-21981
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.3.1.CR1
>            Reporter: Xavier Coulon
>            Assignee: Xavier Coulon
>            Priority: Blocker
>             Fix For: 4.3.1.CR1
>
>
> While testing the debugging support on the server adapter, I got the following error:
> {code}
> Could not sync all pods to folder /Users/xcoulon/workspaces/runtime-Eclipse-mars.2/.metadata/.plugins/org.jboss.ide.eclipse.as.core/sample at eap-app/deploy
> OpenShiftBinaryCapability process exited: rsync: delete_file: rmdir "/Users/xcoulon/workspaces/runtime-Eclipse-mars.2/.metadata/.plugins/org.jboss.ide.eclipse.as.core/sample at eap-app/deploy/ROOT.war" failed: Directory not empty (66)
> rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-45/rsync/main.c(1400) [generator=2.6.9]
> error: exit status 23
> {code}
> The content of the {{.../deploy}} directory was:
> {code}
> drwxr-xr-x  9 xcoulon  staff      306 Mar 25 12:19 ./
> drwxr-xr-x  4 xcoulon  staff      136 Mar 25 11:55 ../
> -rw-r--r--  1 xcoulon  staff     9041 Mar 27  2015 README.txt
> drwxr-xr-x  7 xcoulon  staff      238 Mar 25 11:59 ROOT.war/
> -rw-r--r--  1 xcoulon  staff        8 Mar 23 17:59 ROOT.war.deployed
> -rw-r--r--  1 xcoulon  staff        8 Mar 25 12:18 ROOT.war.isdeploying
> -rw-r--r--  1 xcoulon  staff  8415373 Aug 11  2015 activemq-rar.rar
> -rw-r--r--  1 xcoulon  staff       16 Aug 11  2015 activemq-rar.rar.deployed
> -rw-r--r--  1 xcoulon  staff       16 Mar 25 12:18 activemq-rar.rar.isdeploying
> {code}
> As a side note, displaying the content of the process error message in the MessageDialog triggers an error later:
> {code}
> [ERROR] 2016-03-25 12:19:53,006 com.openshift.internal.restclient.capability.resources.OpenShiftBinaryRSync - Could not retrieve error message from process
> java.io.IOException: Stream closed
> 	at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
> 	at java.io.BufferedInputStream.read(BufferedInputStream.java:336)
> 	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
> 	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
> 	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
> 	at java.io.InputStreamReader.read(InputStreamReader.java:184)
> 	at java.io.Reader.read(Reader.java:140)
> 	at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1485)
> 	at org.apache.commons.io.IOUtils.copy(IOUtils.java:1461)
> 	at org.apache.commons.io.IOUtils.copy(IOUtils.java:1408)
> 	at org.apache.commons.io.IOUtils.copy(IOUtils.java:1433)
> 	at org.apache.commons.io.IOUtils.toString(IOUtils.java:585)
> 	at org.apache.commons.io.IOUtils.toString(IOUtils.java:563)
> 	at com.openshift.internal.restclient.capability.resources.OpenShiftBinaryRSync.getErrorMessage(OpenShiftBinaryRSync.java:107)
> 	at com.openshift.internal.restclient.capability.resources.OpenShiftBinaryRSync.await(OpenShiftBinaryRSync.java:94)
> {code} 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list