FW: [SLE] CVS connection refused
I have change my xinetd/cvs according to your suggestion with xinetd restart or reboot the Suse box but the problem still remain. jason@tux:/var/log> telnet 10.10.10.24 2401 Trying 10.10.10.24... telnet: connect to address 10.10.10.24: Connection refused /var/log/messages Mar 31 14:39:33 tux sudo: jason : TTY=pts/0 ; PWD=/var/log ; USER=root ; COMMAND=/usr/bin/vi messages Mar 31 14:40:00 tux sudo: jason : TTY=pts/0 ; PWD=/var/log ; USER=root ; COMMAND=/etc/init.d/xinetd restart Mar 31 14:40:00 tux xinetd[852]: Exiting... Mar 31 14:40:00 tux xinetd[1306]: xinetd Version 20030122 started with libwrap loadavg options compiled in. Mar 31 14:40:00 tux xinetd[1306]: Started working: 3 available services Mar 31 14:40:05 tux sudo: jason : TTY=pts/0 ; PWD=/var/log ; USER=root ; COMMAND=/usr/bin/vi message I can't find any log files related to cvs in my /var/log folder beside xinetd restarted. Below is my /etc/xinetd.d/cvs attach. # CVS pserver (remote acces to your CVS repositories) # Please read the section on security and passwords in the CVS manual, # before you enable this. # default: off service cvspserver { disable = no socket_type = stream protocol = tcp wait = no user = cvs port = 2401 server = /usr/bin/cvs server_args = -f --allow-root=/home/cvsroot pserver } -----Original Message----- From: Alin Dobre [mailto:alin.dobre@ravantivirus.com] Sent: Wednesday, March 31, 2004 2:23 PM To: Jason Lim; SuSE Linux Mailing List (SLE) Subject: Re: [SLE] CVS connection refused Hello, Jason Lim wrote:
Hi,
I also try this before and seem to be no luck for me.
Anyway, /etc/services already have this 2401 open.
In /etc/services there are only defined the associations between ports and names, but not "opened". Still, the port number must be defined in the /etc/xinetd/cvs, either with its name (defined in /etc/services) or with its number (when you don't wanna depend with /etc/services).
I'm believed this must be related to my port opening and cvs services was not start properly.
Is there anything related with the cvs xinetd service in the log files?
Thanks.
-----Original Message----- From: Alin Dobre [mailto:alin.dobre@ravantivirus.com] Sent: Wednesday, March 31, 2004 1:56 PM To: Jason Lim Subject: Re: [SLE] CVS connection refused
Hello,
You must set in your cvspserver xinetd configuration file: port = 2401 and then restart: /etc/init.d/xinetd restart
Regards, Alin.
Jason Lim wrote:
Hi,
Below is the configuration of my CVS
/etc/xinetd.d/cvs
service cvspserver
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = cvs
server = /usr/bin/cvs
server_args = -f --allow-root=/var/cvsroot pserver
}
Suse Linux 2.4.20-64GB-SMP #1 SMP Sat Feb 7 02:07:52 UTC 2004 i686 unknown unknown GNU/Linux
/var/cvsroot/CVSROOT/passwd (created by /usr/sbin/htpasswd)
myusername:KjsaTw4EW0MQM:cvs
export CVSROOT=:pserver:myusername@10.10.10.2:/var/cvsroot
export EDITOR=vi
-restart the server
-run command 'netstat -a |grep LISTEN' but cannot find any cvspserver or port 2401
- try with cvs login enter the password
myusername@tux:/var/cvsroot/CVSROOT> cvs login
(Logging in to myusername@10.10.10.2)
CVS password:
cvs [login aborted]: connect to 10.10.10.2:2401 failed: Connection refused
PLEASE HELP!
Thanks in advanced
- Jason Lim
-- Alin DOBRE Technical Support Engineer - RAV Division mailto:alin.dobre@ravantivirus.com Tel./Fax: +40-21-321.78.03 Hotline: +40-21-321.78.59; http://www.ravantivirus.com Worry less! RAV is watching. --------------------------- This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake please let us know by reply and then delete it from your system; you should not copy the message or disclose its contents to anyone.
Jason Lim wrote: <SNIP>
Below is my /etc/xinetd.d/cvs attach.
# CVS pserver (remote acces to your CVS repositories) # Please read the section on security and passwords in the CVS manual, # before you enable this. # default: off
service cvspserver { disable = no socket_type = stream protocol = tcp wait = no user = cvs port = 2401 server = /usr/bin/cvs server_args = -f --allow-root=/home/cvsroot pserver
}
That looks fine. I don't have the port setting in mine, but it shouldn't matter.
In /etc/services there are only defined the associations between ports and names, but not "opened". Still, the port number must be defined in the /etc/xinetd/cvs, either with its name (defined in /etc/services) or with its number (when you don't wanna depend with /etc/services).
The relevant section of my services file is: cvspserver 2401/tcp cvspserver 2401/udp In your original file you had the line
server_args = -f --allow-root=/var/cvsroot pserver
This is a different directory than the one above. You would need to put your password file in the appropriate directory.
Have you run ... cvs -d /home/cvsroot init The only thing I can see wrong at this point is getting everything pointing to the same directory and maybe running the above command (changing the directory if needed). -- Louis D. Richards LDR Interactive Technologies
Finally I found the solution. Please configure your /etc/xinetd.conf and restart it. Anyway, thanks a lot. -----Original Message----- From: Louis Richards [mailto:louis@ldrinteractive.com] Sent: Thursday, April 01, 2004 12:28 AM To: Jason Lim Cc: suse-linux-e@suse.com Subject: Re: FW: [SLE] CVS connection refused Jason Lim wrote: <SNIP>
Below is my /etc/xinetd.d/cvs attach.
# CVS pserver (remote acces to your CVS repositories) # Please read the section on security and passwords in the CVS manual, # before you enable this. # default: off
service cvspserver { disable = no socket_type = stream protocol = tcp wait = no user = cvs port = 2401 server = /usr/bin/cvs server_args = -f --allow-root=/home/cvsroot pserver
}
That looks fine. I don't have the port setting in mine, but it shouldn't matter.
In /etc/services there are only defined the associations between ports and names, but not "opened". Still, the port number must be defined in the /etc/xinetd/cvs, either with its name (defined in /etc/services) or with its number (when you don't wanna depend with /etc/services).
The relevant section of my services file is: cvspserver 2401/tcp cvspserver 2401/udp In your original file you had the line
server_args = -f --allow-root=/var/cvsroot pserver
This is a different directory than the one above. You would need to put your password file in the appropriate directory.
Have you run ... cvs -d /home/cvsroot init The only thing I can see wrong at this point is getting everything pointing to the same directory and maybe running the above command (changing the directory if needed). -- Louis D. Richards LDR Interactive Technologies
participants (2)
-
Jason Lim
-
Louis Richards