LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-24-2007, 02:01 PM   #1
joeshmoe
LQ Newbie
 
Registered: Dec 2007
Posts: 13

Rep: Reputation: 0
Question cvs login fails (connection refused) - why?


I am trying to setup a CVS server on a Fedora Core 8 Linux box.

In order to enable the cvs pserver, I basically modified /etc/xinetd.d/cvs to contain:
Code:
service cvspserver 
{ 
        disable         = no 
        port            = 2401 
        socket_type     = stream 
        protocol        = tcp 
        wait            = no 
        user            = cvsroot 
        passenv         = 
        server          = /usr/bin/cvs 
        env             = HOME=/home/cvsroot 
        server_args     = --allow-root=/home/cvsroot -f pserver 
        log             = /var/log/cvslog 
        id              = cvspserver 
#       bind            = 127.0.0.1 
}
I also configured the firewall to allow both tcp and udp on port 2401 (cvspserver).

I also created in $CVSROOT/CVSROOT the password file, passwd.


On the Windows (XP) client, I added the environment variables;


LOGNAME = joeshmoe
CVSROOT = :pserver:joesh...@192.168.0.2:/home/cvsroot


I then try to do cvs login from the client:

Quote:
~> cvs login
Logging in to :pserver:joesh...@192.168.0.2:2401/home/cvsroot
CVS password:
But when I type the password (which I triple-verified!), cvs login
simply fails:
Quote:
cvs.exe [login aborted]: connect to 192.168.0.2(192.168.0.2):2401
failed: Connection timed out
My question is: How do I troubleshoot such a problem? How do I know why it failed and how to fix it?

BTW, I tried telnet 192.168.0.2 2401 but all I receive in response is:
Quote:
Connecting To 192.168.157.2...Could not open connection to the host, on port 2401: Connect failed
What does this mean? Is it possible that something totally unrelated to cvs blocks this connection? SELinux perhaps? How do I find out?


Thanks,
Joe
 
Old 12-24-2007, 02:05 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
There may be some info in /var/log/messages about what went wrong. Does the cvsroot user have permission to write to /var/log/cvslog? If not, that's part of the problem - if so, there may also be useful info in there.
 
Old 12-24-2007, 02:46 PM   #3
joeshmoe
LQ Newbie
 
Registered: Dec 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Smile Problem Solved!

Am I stupid or am I stupid?

Problem solved! It turned out the xinetd package was not even installed...

(despite the /etc/xinetd.d direcotry being there with two sample config files).

I installed xinetd, started it - and all is well (for now). Thanks, joe!

Joe
 
Old 05-06-2012, 05:10 PM   #4
popilla20k
LQ Newbie
 
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
Installing xinetd worked for me too. I though I had it installed, but it wasn't. Too many linux installations... Thank you very much.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Socket Connection Failed: 111 Connection Refused degraffenried13 Linux - General 3 05-31-2009 01:17 AM
Oracle EM. emctl start dbconsole fails: connection refused. deanbrown3d Linux - Software 4 01-31-2005 03:01 AM
Gnome CVS : Connection refused AxeZ Linux - General 0 09-14-2003 05:05 PM
Connection refused to CVS tawsie Linux - Newbie 4 07-18-2003 11:16 AM
cvs server connection refused mindcry Linux - Software 0 07-14-2003 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration