[cvsnt] Error: No connection could be made because the target machine actively refused it

Gaurav Chhabra messagegc at gmail.com
Wed May 6 11:00:55 BST 2009


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Hi,


We have CVSNT 2.5.04 [(Zen) Build 3236] server running on RHEL ES 4. On
client side we have WinCVS 2.0.2.4 on WinXP SP3.
I am trying to connect to the server using :pserver:

I earlier got some error messages (
http://www.cvsnt.org/pipermail/cvsnt/2009-April/032098.html) and I am still
struggling, trying to establish connection between client & server. I am now
getting the following error:
--------------------
cvs -z9 -d :pserver:cvsuser at 10.5.68.161:2401/usr/local/cvsrep login
Logging in to :pserver:cvsuser at 10.5.68.161:2401:/usr/local/cvsrep
connect to 10.5.68.161:2401 failed: No connection could be made because the
target machine actively refused it.
--------------------

After searching through the archives, I got that "This means CVSNT is not up
and running or you have a firewall on that machine blocking access (port
2401) from outside."

So, I checked the following:
=====================
SERVER SIDE --->
[root at localhost ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root at localhost ~]#

I think the firewall is OFF. Please correct me if I’m wrong.
--------------------
[root at localhost ~]# netstat -nap | grep 2401
[root at localhost ~]#
Does the above mean that 2401 on server side is not listening?
--------------------
[root at localhost ~]# netstat -nap | grep cvs
tcp     0    0 127.0.0.1:2402         0.0.0.0:*                  LISTEN
3426/cvslockd
tcp     0    0 ::1:2402                  :::*                         LISTEN
3426/cvslockd
tcp     0    0 ::ffff:10.5.68.161:22  ::ffff:10.5.68.35:4089 ESTABLISHED
4861/sshd: syscvs [
udp     0    0 0.0.0.0:5353            0.0.0.0:*
3426/cvslockd
unix 3    [ ]   STREAM CONNECTED 11947 4861/sshd: syscvs [
unix 2    [ ]   DGRAM 7710 3426/cvslockd
--------------------
[root at localhost ~]# cat /etc/xinetd.d/cvspserver
service cvspserver
{
socket_type = stream
protocol = tcp
wait = no
user = cvs
passenv = PATH
log_type = FILE /var/log/cvspserver
server = /usr/local/bin/cvsnt
server_args = authserver
disable = no
}
=====================
CLIENT SIDE --->
On command prompt,
C:\Documents and Settings>telnet xx.x.xx.xxx 2401Connecting To
xx.x.xx.xxx...Could not open connection to the host, on port 2401: Connect
failed
--------------------
C:\Documents and Settings>netstat -na
Active Connections
Proto Local Address Foreign Address State
TCP   0.0.0.0:2401  0.0.0.0:0          LISTENING
=====================

Can anyone please point me to the problem?


Regards,
Gaurav


More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook