* [gentoo-user] Need help discovering what's using a port (for cvsd)
@ 2010-03-04 23:02 Michael Sullivan
2010-03-04 23:30 ` Paul Hartman
0 siblings, 1 reply; 5+ messages in thread
From: Michael Sullivan @ 2010-03-04 23:02 UTC (permalink / raw
To: gentoo-user
A few years ago I was working on a programming project. I installed a
cvsd server on our server box and checked in/checked out the project
whenever I felt like working on it (it would have gotten majorly screwed
up if the only copy of the project lived on my personal workstation -
hence using cvsd). Anyway, I got busy with other things and forgot
about that particular programming project. At some point over the last
few years, cvsd got unmerged. I remerged it today and have been trying
to get it to work. I checked the repository directory and the files I
need are still there. I can't get the server to start. I tried
running /etc/init.d/cvsd start and it failed with the [!!] thing. I
catted the script and saw that the executable for the cvsd server lives
at /usr/sbin/cvsd, so I tried calling it directly:
carter log # /usr/sbin/cvsd --debug
cvsd: debug: reading config file (/etc/cvsd/cvsd.conf)
cvsd: debug: done reading config file
cvsd: debug: cvscmd: /bin/cvs
cvsd: debug: cvsargs[0]: cvs
cvsd: debug: cvsargs[1]: -f
cvsd: debug: cvsargs[2]: --allow-root=/root
cvsd: debug: cvsargs[3]: pserver
cvsd: debug: cvsenv[0]: HOME=/
cvsd: debug: cvsenv[1]: PATH=/bin
cvsd: debug: cvsenv[2]: SHELL=/bin/sh
cvsd: debug: cvsenv[3]: TMPDIR=/tmp
cvsd: debug: cvsenv[4]: CVSUMASK=027
cvsd: version 1.0.7 starting
cvsd: debug: binding 0.0.0.0 2401 family=2 socktype=1 protocol=6
cvsd: listening on 0.0.0.0 2401
cvsd: debug: binding :: 2401 family=10 socktype=1 protocol=6
cvsd: bind() failed: Address already in use
cvsd: version 1.0.7 bailing out
carter log # netstat -anp | grep 2401
carter log #
Nothing. I hope I'm using the netstat command correctly. I wrote in to
a linux list years ago asking how to find out which process is using a
port, and they said to grep `netstat -anp` for whatever port I was
looking for. Anyway, when I ran netstat -anpv, I got some errors:
netstat: no support for `AF IPX' on this system.
netstat: no support for `AF AX25' on this system.
netstat: no support for `AF X25' on this system.
netstat: no support for `AF NETROM' on this system.
I assume these are kernel options, but without knowing specific symbol
names, I'm not sure how to compile them into the kernel. Can anyone
give me any advice on this situation?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Need help discovering what's using a port (for cvsd)
2010-03-04 23:02 [gentoo-user] Need help discovering what's using a port (for cvsd) Michael Sullivan
@ 2010-03-04 23:30 ` Paul Hartman
2010-03-04 23:54 ` OT: CVS [WAS: Re: [gentoo-user] Need help discovering what's using a port (for cvsd)] Michael Sullivan
0 siblings, 1 reply; 5+ messages in thread
From: Paul Hartman @ 2010-03-04 23:30 UTC (permalink / raw
To: gentoo-user
On Thu, Mar 4, 2010 at 5:02 PM, Michael Sullivan <msulli1355@gmail.com> wrote:
> netstat: no support for `AF IPX' on this system.
> netstat: no support for `AF AX25' on this system.
> netstat: no support for `AF X25' on this system.
> netstat: no support for `AF NETROM' on this system.
>
>
> I assume these are kernel options, but without knowing specific symbol
> names, I'm not sure how to compile them into the kernel. Can anyone
> give me any advice on this situation?
I think if you don't have support for those protocols the chances of a
program using them is probably zero. :) FWIW i get the exact same
messages. I don't think it is meaningful.
I use a similar command (omitting all the unix sockets stuff): netstat
-lnp --inet
With regard to your original problem, try to edit the cvsd.conf and
specify an actual IP address to listen on (instead of 0.0.0.0 or * or
however it is defined there) and see if that helps.
^ permalink raw reply [flat|nested] 5+ messages in thread
* OT: CVS [WAS: Re: [gentoo-user] Need help discovering what's using a port (for cvsd)]
2010-03-04 23:30 ` Paul Hartman
@ 2010-03-04 23:54 ` Michael Sullivan
2010-03-05 15:43 ` Paul Hartman
0 siblings, 1 reply; 5+ messages in thread
From: Michael Sullivan @ 2010-03-04 23:54 UTC (permalink / raw
To: gentoo-user
On Thu, 2010-03-04 at 17:30 -0600, Paul Hartman wrote:
> On Thu, Mar 4, 2010 at 5:02 PM, Michael Sullivan <msulli1355@gmail.com> wrote:
> > netstat: no support for `AF IPX' on this system.
> > netstat: no support for `AF AX25' on this system.
> > netstat: no support for `AF X25' on this system.
> > netstat: no support for `AF NETROM' on this system.
> >
> >
> > I assume these are kernel options, but without knowing specific symbol
> > names, I'm not sure how to compile them into the kernel. Can anyone
> > give me any advice on this situation?
>
> I think if you don't have support for those protocols the chances of a
> program using them is probably zero. :) FWIW i get the exact same
> messages. I don't think it is meaningful.
>
> I use a similar command (omitting all the unix sockets stuff): netstat
> -lnp --inet
>
> With regard to your original problem, try to edit the cvsd.conf and
> specify an actual IP address to listen on (instead of 0.0.0.0 or * or
> however it is defined there) and see if that helps.
>
Now I've got the server running, but I can't connect to it:
michael@camille ~ $ cvs login
Logging in to :pserver:michael@carter.espersunited.com:2401/root
CVS password:
cvs [login aborted]: connect to
carter.espersunited.com(192.168.1.2):2401 failed: Connection refused
My .cvspass looks kinda weird too:
michael@camille ~ $ cat .cvspass
/1 :pserver:michael@carter.espersunited.com:2401/root Ah0 %0]y?
Is this right?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OT: CVS [WAS: Re: [gentoo-user] Need help discovering what's using a port (for cvsd)]
2010-03-04 23:54 ` OT: CVS [WAS: Re: [gentoo-user] Need help discovering what's using a port (for cvsd)] Michael Sullivan
@ 2010-03-05 15:43 ` Paul Hartman
2010-06-16 15:00 ` OT: CVS [WAS: Re: [gentoo-user] Need help discovering what's using a port (for cvsd)] SOLVED Michael Sullivan
0 siblings, 1 reply; 5+ messages in thread
From: Paul Hartman @ 2010-03-05 15:43 UTC (permalink / raw
To: gentoo-user
On Thu, Mar 4, 2010 at 5:54 PM, Michael Sullivan <msulli1355@gmail.com> wrote:
> On Thu, 2010-03-04 at 17:30 -0600, Paul Hartman wrote:
>> On Thu, Mar 4, 2010 at 5:02 PM, Michael Sullivan <msulli1355@gmail.com> wrote:
>> > netstat: no support for `AF IPX' on this system.
>> > netstat: no support for `AF AX25' on this system.
>> > netstat: no support for `AF X25' on this system.
>> > netstat: no support for `AF NETROM' on this system.
>> >
>> >
>> > I assume these are kernel options, but without knowing specific symbol
>> > names, I'm not sure how to compile them into the kernel. Can anyone
>> > give me any advice on this situation?
>>
>> I think if you don't have support for those protocols the chances of a
>> program using them is probably zero. :) FWIW i get the exact same
>> messages. I don't think it is meaningful.
>>
>> I use a similar command (omitting all the unix sockets stuff): netstat
>> -lnp --inet
>>
>> With regard to your original problem, try to edit the cvsd.conf and
>> specify an actual IP address to listen on (instead of 0.0.0.0 or * or
>> however it is defined there) and see if that helps.
>>
>
> Now I've got the server running, but I can't connect to it:
>
> michael@camille ~ $ cvs login
> Logging in to :pserver:michael@carter.espersunited.com:2401/root
> CVS password:
> cvs [login aborted]: connect to
> carter.espersunited.com(192.168.1.2):2401 failed: Connection refused
Hmm, does cvsd use inetd? maybe it needs to be added to allowed port
list or something like that.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OT: CVS [WAS: Re: [gentoo-user] Need help discovering what's using a port (for cvsd)] SOLVED
2010-03-05 15:43 ` Paul Hartman
@ 2010-06-16 15:00 ` Michael Sullivan
0 siblings, 0 replies; 5+ messages in thread
From: Michael Sullivan @ 2010-06-16 15:00 UTC (permalink / raw
To: gentoo-user
On Fri, 2010-03-05 at 09:43 -0600, Paul Hartman wrote:
> On Thu, Mar 4, 2010 at 5:54 PM, Michael Sullivan <msulli1355@gmail.com> wrote:
> > On Thu, 2010-03-04 at 17:30 -0600, Paul Hartman wrote:
> >> On Thu, Mar 4, 2010 at 5:02 PM, Michael Sullivan <msulli1355@gmail.com> wrote:
> >> > netstat: no support for `AF IPX' on this system.
> >> > netstat: no support for `AF AX25' on this system.
> >> > netstat: no support for `AF X25' on this system.
> >> > netstat: no support for `AF NETROM' on this system.
> >> >
> >> >
> >> > I assume these are kernel options, but without knowing specific symbol
> >> > names, I'm not sure how to compile them into the kernel. Can anyone
> >> > give me any advice on this situation?
> >>
> >> I think if you don't have support for those protocols the chances of a
> >> program using them is probably zero. :) FWIW i get the exact same
> >> messages. I don't think it is meaningful.
> >>
> >> I use a similar command (omitting all the unix sockets stuff): netstat
> >> -lnp --inet
> >>
> >> With regard to your original problem, try to edit the cvsd.conf and
> >> specify an actual IP address to listen on (instead of 0.0.0.0 or * or
> >> however it is defined there) and see if that helps.
> >>
> >
> > Now I've got the server running, but I can't connect to it:
> >
> > michael@camille ~ $ cvs login
> > Logging in to :pserver:michael@carter.espersunited.com:2401/root
> > CVS password:
> > cvs [login aborted]: connect to
> > carter.espersunited.com(192.168.1.2):2401 failed: Connection refused
>
> Hmm, does cvsd use inetd? maybe it needs to be added to allowed port
> list or something like that.
>
This line in the config file:
Listen 127.0.0.1 2401
needed to be changed to this:
Listen 192.168.1.2 2401
And now it works
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-06-16 15:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-04 23:02 [gentoo-user] Need help discovering what's using a port (for cvsd) Michael Sullivan
2010-03-04 23:30 ` Paul Hartman
2010-03-04 23:54 ` OT: CVS [WAS: Re: [gentoo-user] Need help discovering what's using a port (for cvsd)] Michael Sullivan
2010-03-05 15:43 ` Paul Hartman
2010-06-16 15:00 ` OT: CVS [WAS: Re: [gentoo-user] Need help discovering what's using a port (for cvsd)] SOLVED Michael Sullivan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox