ID: |
5402
|
Fixed in: |
|
Issue Date: |
2008-10-30 06:36 AEST
|
Owner: | CVS Support
|
Last Modified: | 2019-08-09 16:47 AEST | Reporter: | Arthur Barrett
|
Current Est. | 0.0 hours
| % Complete: | 0.0
|
Status: | NEW /
|
Severity: | normal
|
Affected: | 2.5.04
|
Description: | client "-4" option and server /etc/cvsnt/PServer IP=IPv4
|
Actions:
|
2008-10-30 06:36 AEST by Arthur Barrett - client should have a "-4" option like ssh, scp, rsync to get around people installing IPv6 but then not
configuring it.
CVSNT Server should have something similar, eg: a setting in the windows control panel or in
/etc/cvsnt/PServer where the type of IP to try can be set, eg: IP=IPv4 |
|
2019-08-09 01:44 AEST by Glen Starrett - This is important for customers who want to DISABLE ipv6. On RHEL / CentOS, if you disable ipv6 both cvslockd and cvsmanager fail to start.
STEPS TO REPRODUCE:
Using CentOS6
1. Append below line to the file /etc/sysctl.conf.
# IPv6 support in the kernel, set to 0 by default
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
2. To make the settings affective, execute :
# sysctl -p
[gstarret@pluto ~]$ sudo sysctl -p
...
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
[gstarret@pluto ~]$ ifconfig | grep inet6
[gstarret@pluto ~]$ sudo cvslockd -d
Initialising socket...
Initialising socket...
Getaddrinfo(NULL,2402,loopback,tcp)
Family 2, Type 1, Protocol 6
Family 10, Type 1, Protocol 6
Starting lock server on port 2402/tcp...
Starting lock server on port 2402/tcp...
Socket bind failed: errno 99 on socket 4 (AF 10)
Couldn't bind listening socket... Cannot assign requested address
Failed to bind listening socket (2402): Cannot assign requested address
LDD still looks good:
[gstarret@pluto ~]$ ldd /usr/bin/cvslockd
linux-gate.so.1 => (0x0056a000)
libcvsapi-2.8.01.5514.so => /usr/lib/libcvsapi-2.8.01.5514.so (0x0085a000)
libcvstools-2.8.01.5514.so => /usr/lib/libcvstools-2.8.01.5514.so (0x00824000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x004cb000)
libresolv.so.2 => /lib/libresolv.so.2 (0x0097a000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x07090000)
libm.so.6 => /lib/libm.so.6 (0x007f8000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00503000)
libpthread.so.0 => /lib/libpthread.so.0 (0x007c9000)
libc.so.6 => /lib/libc.so.6 (0x00630000)
libmdnsclient-2.8.01.5514.so => /usr/lib/libmdnsclient-2.8.01.5514.so (0x007ed000)
libdl.so.2 => /lib/libdl.so.2 (0x007e6000)
libfreebl3.so => /lib/libfreebl3.so (0x004fd000)
/lib/ld-linux.so.2 (0x800f6000)
No known workaround available:
[gstarret@pluto ~]$ sudo cvslockd -4 -d
cvslockd: invalid option -- '4'
Usage: cvslockd [-d] [-l] [-g] [-p port]
|
|
2019-08-09 01:48 AEST by Glen Starrett - Results for working condition, for reference:
[gstarret@pluto ~]$ ifconfig | grep inet6
inet6 addr: fe80::213:72ff:fec8:ab9c/64 Scope:Link
inet6 addr: ::1/128 Scope:Host
[gstarret@pluto ~]$ sudo cvslockd -d
Initialising socket...
Initialising socket...
Getaddrinfo(NULL,2402,loopback,tcp)
Family 10, Type 1, Protocol 6
Family 2, Type 1, Protocol 6
Starting lock server on port 2402/tcp...
Starting lock server on port 2402/tcp...
CVS Lock service initialised successfully
|
|
2019-08-09 01:52 AEST by Glen Starrett - Additional working condition status:
[gstarret@pluto ~]$ netstat -anp | grep 240[12]
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:2401 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:2402 0.0.0.0:* LISTEN -
tcp 0 0 :::2401 :::* LISTEN -
tcp 0 0 ::1:2402 :::* LISTEN -
|
|