cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in alfresco standalone deployment Receiver

winsenthil
Champ in-the-making
Champ in-the-making
Hi…
I am new to alfresco. I am using alfresco 3.3g. I am practicing "Getting Started with Alfresco Web Content Management (WCM)" work guide. I followed the procedures guided and finally faced a problem during deployment:

When i tried to deploy by clicking the deploy icon of Initial Import in the Staging Sandbox, i am getting an error:
Deployment Failed
06280017 Could not connect to remote deployment receiver, transportName:default, hostName:localhost, port: 44100


Details seen in Last Deployment Report page:

FAILED default

org.alfresco.service.cmr.avm.AVMException: 06290002 Deployment exception, unable to deploy : srcPath:alfrescosample:/www/avm_webapps, target:default, version:3, adapterName:default, hostName:localhost, port:44,100, errorSmiley Surprisedrg.alfresco.service.cmr.avm.AVMException: 06290001 Could not connect to remote deployment receiver, transportName:default, hostName:localhost, port: 44100
at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifferenceFS(DeploymentServiceImpl.java:1249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.alfresco.repo.transaction.CheckTransactionAdvice.invoke(CheckTransactionAdvice.java:46)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.transaction.RetryingTransactionAdvice$1.execute(RetryingTransactionAdvice.java:64)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:321)
at org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:67)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy98.deployDifferenceFS(Unknown Source)
at org.alfresco.repo.avm.actions.AVMDeployWebsiteAction.executeImpl(AVMDeployWebsiteAction.java:403)
at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:133)
at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:726)
at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:658)
at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:494)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:321)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:228)
at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:503)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508)
at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:506)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.alfresco.service.cmr.avm.AVMException: 06290001 Could not connect to remote deployment receiver, transportName:default, hostName:localhost, port: 44100
at org.alfresco.repo.deploy.DeploymentServiceImpl.getDeploymentReceiverService(DeploymentServiceImpl.java:922)
at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifferenceFS(DeploymentServiceImpl.java:1112)
… 28 more
Caused by: org.springframework.remoting.RemoteLookupFailureException: Lookup of RMI stub failed; nested exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused: connect
at org.springframework.remoting.rmi.RmiClientInterceptor.lookupStub(RmiClientInterceptor.java:215)
at org.springframework.remoting.rmi.RmiClientInterceptor.prepare(RmiClientInterceptor.java:147)
at org.springframework.remoting.rmi.RmiClientInterceptor.afterPropertiesSet(RmiClientInterceptor.java:135)
at org.springframework.remoting.rmi.RmiProxyFactoryBean.afterPropertiesSet(RmiProxyFactoryBean.java:68)
at org.alfresco.repo.deploy.DeploymentReceiverTransportAdapterRMI.getTransport(DeploymentReceiverTransportAdapterRMI.java:41)
at org.alfresco.repo.deploy.DeploymentServiceImpl.getDeploymentReceiverService(DeploymentServiceImpl.java:913)
… 29 more
Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
at org.springframework.remoting.rmi.RmiClientInterceptor.lookupStub(RmiClientInterceptor.java:200)
… 34 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
… 41 more

Kindly help me to solve this issue.
Thanks in advance…
10 REPLIES 10

mrogers
Star Contributor
Star Contributor
Have you started the standalone deployment receiver before trying to deploy to it?

Are there any errors in your deployment.log file ?

winsenthil
Champ in-the-making
Champ in-the-making
Thanks mrogers for your reply….
I searched my whole alfresco workspace and I cant find deployment.log file. May be I had missed some installation files. I will explain the setups which I had installed.
Used this link for installation –> http://wiki.alfresco.com/wiki/Community_Edition_file_list_3.3g
Installed:
(1) Alfresco-Community-3.3g-Full-Setup.exe (C:\Alfresco)
(2) Alfresco-DeploymentCommunity-3.3g-Setup.exe (since Standalone Deployment Receiver was not installed after the complete setup, I had installed this separately)  —- (C:\Alfresco\Deployment)

As explained I had started
(1) Alfresco Web Server.
(2) Alfresco Virtual Server.
(3) Alfresco Standalone Deployment Receiver from start menu.
I can view the logs of both alfresco web servers. But I dont know where to view the logs of Standalone Deployment Receiver.

So I can preview my website but when tried to deploy, its shows the above mentioned error.
Thanks once again for your patience.

winsenthil
Champ in-the-making
Champ in-the-making
Hi mrogers….
I had pasted the error message of my tomcat web server below:


    08,817 User:admin ERROR [avm.actions.AVMDeployWebsiteAction] Deployment Error
    org.alfresco.service.cmr.avm.AVMException: 06300027 Deployment exception, unable to deploy : srcPath:sysvine:/www/avm_webapps, target:default, version:3, adapterName:default, hostName:localhost, port:44,100, errorSmiley Surprisedrg.alfresco.service.cmr.avm.AVMException: 06300026 Could not connect to remote deployment receiver, transportName:default, hostName:localhost, port: 44100
       at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifferenceFS(DeploymentServiceImpl.java:1249)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
       at org.alfresco.repo.transaction.CheckTransactionAdvice.invoke(CheckTransactionAdvice.java:46)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.alfresco.repo.transaction.RetryingTransactionAdvice$1.execute(RetryingTransactionAdvice.java:64)
       at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:321)
       at org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:67)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
       at $Proxy98.deployDifferenceFS(Unknown Source)
       at org.alfresco.repo.avm.actions.AVMDeployWebsiteAction.executeImpl(AVMDeployWebsiteAction.java:403)
       at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:133)
       at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:726)
       at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:658)
       at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:494)
       at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:321)
       at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:228)
       at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:503)
       at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508)
       at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:506)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)
    Caused by: org.alfresco.service.cmr.avm.AVMException: 06300026 Could not connect to remote deployment receiver, transportName:default, hostName:localhost, port: 44100
       at org.alfresco.repo.deploy.DeploymentServiceImpl.getDeploymentReceiverService(DeploymentServiceImpl.java:922)
       at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifferenceFS(DeploymentServiceImpl.java:1112)
       … 28 more
    Caused by: org.springframework.remoting.RemoteLookupFailureException: Lookup of RMI stub failed; nested exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
       java.net.ConnectException: Connection refused: connect
       at org.springframework.remoting.rmi.RmiClientInterceptor.lookupStub(RmiClientInterceptor.java:215)
       at org.springframework.remoting.rmi.RmiClientInterceptor.prepare(RmiClientInterceptor.java:147)
       at org.springframework.remoting.rmi.RmiClientInterceptor.afterPropertiesSet(RmiClientInterceptor.java:135)
       at org.springframework.remoting.rmi.RmiProxyFactoryBean.afterPropertiesSet(RmiProxyFactoryBean.java:68)
       at org.alfresco.repo.deploy.DeploymentReceiverTransportAdapterRMI.getTransport(DeploymentReceiverTransportAdapterRMI.java:41)
       at org.alfresco.repo.deploy.DeploymentServiceImpl.getDeploymentReceiverService(DeploymentServiceImpl.java:913)
       … 29 more
    Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
       java.net.ConnectException: Connection refused: connect
       at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
       at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
       at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
       at sun.rmi.server.UnicastRef.newCall(Unknown Source)
       at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
       at java.rmi.Naming.lookup(Unknown Source)
       at org.springframework.remoting.rmi.RmiClientInterceptor.lookupStub(RmiClientInterceptor.java:200)
       … 34 more
    Caused by: java.net.ConnectException: Connection refused: connect
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.PlainSocketImpl.doConnect(Unknown Source)
       at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
       at java.net.PlainSocketImpl.connect(Unknown Source)
       at java.net.SocksSocketImpl.connect(Unknown Source)
       at java.net.Socket.connect(Unknown Source)
       at java.net.Socket.connect(Unknown Source)
       at java.net.Socket.<init>(Unknown Source)
       at java.net.Socket.<init>(Unknown Source)
       at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
       at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
       … 41 more


Kindly suggest me to fix this deployment problem.

mrogers
Star Contributor
Star Contributor
I suspect your problem is on the receiving end so that stack trace does not help.

winsenthil
Champ in-the-making
Champ in-the-making
Hi  friends…..
I need some guidance from you for the above said problem.. I am struggling with this issue….
I had explain my full work process above… Some more are clearly explained in
http://forums.alfresco.com/en/viewtopic.php?f=29&t=24838#p92587
http://forums.alfresco.com/en/viewtopic.php?f=29&t=24838#p92644

Did I had left any configurations.. I simply installed both  Alfresco-Community-3.3g-Full-Setup.exe and Alfresco-DeploymentCommunity-3.3g-Setup.exe both in windows. I hadnt configured separately for this deployment. Do i need anything to be done?
I used http://wiki.alfresco.com/w/images/f/f5/Getting_Started_with_WCM_for_Alfresco_Community_Edition_3_3.p... for practicing an sample….


Kindly reply me…. Waiting eagerly for your valuable suggestions…….

winsenthil
Champ in-the-making
Champ in-the-making
Hi…
At last I found to deploy my web project by modifying the port to 50500 and Target name to avm… Now the deployment is successful. I dont have idea about why its not successfully deployed when I used the port 44100. If anyone have idea, kindly post…

mrogers
Star Contributor
Star Contributor
You have deployed to a different target on a different deployment engine.

I still suspect that your standalone deployment server is not running.     Have you found the deployment.log file yet, it
should be in the <sdr deploy dir>/logs directory.

winsenthil
Champ in-the-making
Champ in-the-making
Thanks for your immediate reply mrogers….
I think you are correct… because when I typed netstat -a in cmd prompt, I cant see the port 44100 listening. But 50500 port is there. So it seems RMI port is not open..

For your question, there is no such "logs" folder inside deployment directory (sorry for repeating again). As said above I had installed
(1) Alfresco-Community-3.3g-Full-Setup.exe (C:\Alfresco)
(2) Alfresco-DeploymentCommunity-3.3g-Setup.exe (since Standalone Deployment Receiver was not installed after the complete setup, I had installed this in —> C:\Alfresco\Deployment)

When I searched for *.log files (in whole alfresco), I can see them only in tomcat and virtual tomcat folder.
And the logs folder exists only in tomcat and virtual tomcat.

In C:\Alfresco\Deployment, I can see only two files regarding logs. They are:
(1) log4j.property
(2) log4j-1.2.15 (jar file)

Do I need to create the logs folder manually or do I need to install any other .exe??

mrogers
Star Contributor
Star Contributor
I see that you are using windows.

Your logs folder will be C:\Alfresco\Deployment\logs however it sounds like you are not getting as far as creating the log file.

From a windows command prompt type "java -version" to check that you have java installed.    3.3G needs a 1.6 JRE.
Then type "set" and make sure you have an Environment variable set for JAVA_HOME.

Then cd to c:\alfresco\deployment and run deploy_start from your command prompt.  

There may be some error message.