'Could not connect to RMI service' on WCM 2.1.0 & 3b

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2008 07:58 AM
I've had a search of the forums, and this seems to be a common issue on Linux. When trying to deploy content from one Alfresco instance to another on Linux (Ubuntu 8.04), I get the following errors in the log:
17:11:03,680 WARN [remoting.rmi.RmiProxyFactoryBean] Could not connect to RMI service [rmi://172.16.249.139:50500/authentication] - retrying17:11:03,730 ERROR [avm.actions.AVMDeploySnapshotAction] org.alfresco.service.cmr.avm.AVMException: Could not Initialize Remote Connection to 172.16.249.139
On the target machine (172.16.249.139), I get the following:root@ubuntu-desktop:/opt/alfresco# lsof -i :50500COMMAND PID USER FD TYPE DEVICE SIZE NODE NAMEjava 9417 alfresco 133u IPv6 57772 TCP alfresco-server-receiver:50500->alfresco-author:50185 (ESTABLISHED)java 9417 alfresco 177u IPv6 30638 TCP *:50500 (LISTEN)root@ubuntu-desktop:/opt/alfresco# netstat -an | grep 50500tcp6 0 0 :::50500 :::* LISTEN tcp6 0 0 172.16.249.139:50500 172.16.249.138:50185 ESTABLISHED
Anyone got any ideas? At this stage it's a dealbreaker for Alfresco on Linux - I don't want to have to try and repeat this evaluation on Windows if it's Linux-specific.
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2008 08:35 AM
It's likely that the problem connecting is due to the linux firewall.
I'm not that familiar with Linux but refering to the following web document.
http://wiki.linuxquestions.org/wiki/Firewall
How about running the command
iptables –list
to see whether there is a firewall on your Linux box?
Then there may be some Linux administrators reading this that can help.
I'm not that familiar with Linux but refering to the following web document.
http://wiki.linuxquestions.org/wiki/Firewall
How about running the command
iptables –list
to see whether there is a firewall on your Linux box?
Then there may be some Linux administrators reading this that can help.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2008 04:49 AM
18:46:13,606 User:admin WARN [remoting.rmi.RmiProxyFactoryBean] Could not connect to RMI service [rmi://172.16.249.144:50500/authentication] - retrying18:46:13,613 User:admin ERROR [avm.actions.AVMDeployWebsiteAction] org.alfresco.service.cmr.avm.AVMException: Deployment to 172.16.249.144 failed.
I'm now getting the identical error on a fresh build of Alfresco Labs 3b. I've deliberately cleared the iptables to ensure that there are no firewall issues, and I can both ping and telnet between the two VMs - telnetting to port 50500 is successful.SURELY someone knows how to resolve this - it's a recurring problem in the forums and I can't be the only person trying to deploy between two Linux servers.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 09:28 AM
Hi
I have the same problem.
My configuration is: Ubuntu 8.04 on both servers, java sdk 1.5.0_15, Alfresco Enterprise WCM 2.2.
When i try to deploy from an alfresco instance to another, i get the follow error message:
WARN [org.springframework.remoting.rmi.RmiProxyFactoryBean] Could not connect to RMI service [rmi://10.0.0.194:50500/authentication] - retrying
ERROR [org.alfresco.repo.avm.actions.AVMDeployWebsiteAction] org.alfresco.service.cmr.avm.AVMException: Deployment to 10.0.0.194 failed.
in this message i see that the sender server try to connect to receiver server as 127.0.0.1 and not with its network ip address…..
……Caused by: org.springframework.remoting.RemoteConnectFailureException: Cannot connect to remote service [rmi://10.0.0.194:50500/authentication]; nested exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exceptio……..
if i try telnet on port 50500 it works!!
please help me
I have the same problem.
My configuration is: Ubuntu 8.04 on both servers, java sdk 1.5.0_15, Alfresco Enterprise WCM 2.2.
When i try to deploy from an alfresco instance to another, i get the follow error message:
WARN [org.springframework.remoting.rmi.RmiProxyFactoryBean] Could not connect to RMI service [rmi://10.0.0.194:50500/authentication] - retrying
ERROR [org.alfresco.repo.avm.actions.AVMDeployWebsiteAction] org.alfresco.service.cmr.avm.AVMException: Deployment to 10.0.0.194 failed.
in this message i see that the sender server try to connect to receiver server as 127.0.0.1 and not with its network ip address…..
……Caused by: org.springframework.remoting.RemoteConnectFailureException: Cannot connect to remote service [rmi://10.0.0.194:50500/authentication]; nested exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exceptio……..
if i try telnet on port 50500 it works!!
please help me
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 05:13 PM
The 127.0.0.1 address is suspicious and led me to the following discussion on the web.
http://forums.sun.com/thread.jspa?threadID=5248497&messageID=10027310
Could you try adding the following java option to the command line starting Alfresco.
-Djava.rmi.server.hostname=x.x.x.x
Where x.x.x.x is your hostname?
http://forums.sun.com/thread.jspa?threadID=5248497&messageID=10027310
Could you try adding the following java option to the command line starting Alfresco.
-Djava.rmi.server.hostname=x.x.x.x
Where x.x.x.x is your hostname?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 05:58 PM
Woohoo! Thanks mrogers!
I followed the supplied link - two things:
1. My hostname in /etc/hosts on both servers was still addressed at 127.0.0.1 instead of the machine's IP - fixed that
2. I started the "authoring" alfresco server with the -D option - after that, deployment was successful
Now I just need to figure out where the content ended up… I thought that perhaps a corresponding web project would have been created on the ASR, but there wasn't - I need to poke around in the ASR for a bit now to understand the deployment process.
cheers!
I followed the supplied link - two things:
1. My hostname in /etc/hosts on both servers was still addressed at 127.0.0.1 instead of the machine's IP - fixed that
2. I started the "authoring" alfresco server with the -D option - after that, deployment was successful
Now I just need to figure out where the content ended up… I thought that perhaps a corresponding web project would have been created on the ASR, but there wasn't - I need to poke around in the ASR for a bit now to understand the deployment process.
cheers!
