cancel
Showing results for 
Search instead for 
Did you mean: 

Error while doing FSR deployment

roxanne
Champ in-the-making
Champ in-the-making
When i try to do a FSR deployment i am getting the following error. I have installed the external plugin needed for FSR deployment. But while deploying if i manually delete the depmetadata folder and then restart the Deploy_start batch file then only the deployment is successful.Otherwise i am getting the following error.



WARNING: Processing of RmiServiceExporter remote call resulted in fatal exceptio
n: org.alfresco.deployment.DeploymentReceiverService.commit
org.alfresco.deployment.impl.DeploymentException: Failure during prepare phase;
rolled back.
        at org.alfresco.deployment.impl.server.DeploymentReceiverServiceImpl.com
mit(DeploymentReceiverServiceImpl.java:283)
        at org.alfresco.deployment.impl.server.DeploymentReceiverTransportImpl.c
ommit(DeploymentReceiverTransportImpl.java:139)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:281)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:187)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:154)
        at org.springframework.remoting.support.RemoteInvocationTraceInterceptor
.invoke(RemoteInvocationTraceInterceptor.java:70)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:176)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:210)
        at $Proxy0.commit(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.remoting.support.RemoteInvocation.invoke(RemoteIn
vocation.java:181)
        at org.springframework.remoting.support.DefaultRemoteInvocationExecutor.
invoke(DefaultRemoteInvocationExecutor.java:38)
        at org.springframework.remoting.support.RemoteInvocationBasedExporter.in
voke(RemoteInvocationBasedExporter.java:76)
        at org.springframework.remoting.rmi.RmiBasedExporter.invoke(RmiBasedExpo
rter.java:72)
        at org.springframework.remoting.rmi.RmiInvocationWrapper.invoke(RmiInvoc
ationWrapper.java:62)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
        at sun.rmi.transport.Transport$1.run(Transport.java:153)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.alfresco.deployment.impl.DeploymentException: Could not create me
tadata directory /deployment/depmetadata\default.md\\ROOT\anurag
        at org.alfresco.deployment.impl.server.Target.update(Target.java:330)
        at org.alfresco.deployment.impl.server.Deployment.update(Deployment.java
:297)
        at org.alfresco.deployment.impl.server.DeploymentReceiverServiceImpl.com
mit(DeploymentReceiverServiceImpl.java:195)
        … 31 more
Sep 22, 2008 10:54:46 AM org.springframework.remoting.support.RemoteInvocationTr
aceInterceptor invoke
WARNING: Processing of RmiServiceExporter remote call resulted in fatal exceptio
n: org.alfresco.deployment.DeploymentReceiverService.abort
org.alfresco.deployment.impl.DeploymentException: Deployment timed out or invali
d token.
        at org.alfresco.deployment.impl.server.DeploymentReceiverServiceImpl.abo
rt(DeploymentReceiverServiceImpl.java:121)
        at org.alfresco.deployment.impl.server.DeploymentReceiverTransportImpl.a
bort(DeploymentReceiverTransportImpl.java:123)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:281)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:187)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:154)
        at org.springframework.remoting.support.RemoteInvocationTraceInterceptor
.invoke(RemoteInvocationTraceInterceptor.java:70)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:176)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:210)
        at $Proxy0.abort(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.remoting.support.RemoteInvocation.invoke(RemoteIn
vocation.java:181)
        at org.springframework.remoting.support.DefaultRemoteInvocationExecutor.
invoke(DefaultRemoteInvocationExecutor.java:38)
        at org.springframework.remoting.support.RemoteInvocationBasedExporter.in
voke(RemoteInvocationBasedExporter.java:76)
        at org.springframework.remoting.rmi.RmiBasedExporter.invoke(RmiBasedExpo
rter.java:72)
        at org.springframework.remoting.rmi.RmiInvocationWrapper.invoke(RmiInvoc
ationWrapper.java:62)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
        at sun.rmi.transport.Transport$1.run(Transport.java:153)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
        at java.lang.Thread.run(Thread.java:595)
1 REPLY 1

mrogers
Star Contributor
Star Contributor
The critcal part of your exception message is.

Caused by: org.alfresco.deployment.impl.DeploymentException: Could not create me
tadata directory /deployment/depmetadata\default.md\\ROOT\anurag.

The mixed forward and backslashes in the directory name look very suspicious.

In the older versions of Alfresco (such as 2.1), there is a known issue about the use of absolute directories for naming the metadata folder.     If you are trying to use an absolute path then experiment with using a relative path.   If on Windows then experiment with using the \\ characters as the directory separator.

Other things to check are that the FSR has permissions to read and write to the filesystem and there is available disk space.

This should get you going but if not then
    Could you confirm the version of Alfresco you are using,  your OS. and post the contents of your deployment.properties file.