tguignar
09-28-2004, 11:17 AM
Hi eveyone
I just upgraded my kernel to 2.4.27. Among other things that needed to be fixed, there is something I don't quite understand.
I was using the afbackup service, and since the new kernel it doesn't work anymore because the server-side service doesn't work (afbackup is based on a client-server model, in my case my box acts both as client and server, the server process must be started by xinetd).
If I type xinetd -d to see debug info, this is what I get:
[root@lemapc77 root]> xinetd -d
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/afbackup [line=15]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/chargen [line=10]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/chargen-udp [line=18]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/cups-lpd [line=17]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/daytime [line=11]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/daytime-udp [line=15]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/echo [line=15]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/echo-udp [line=14]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/ktalk [line=15]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/rsync [line=12]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/servers [line=13]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/services [line=13]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/sgi_fam [line=13]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/time [line=16]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/time-udp [line=17]
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing chargen
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing chargen
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing printer
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing daytime
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing daytime
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing echo
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing echo
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing ntalk
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing rsync
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing servers
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing services
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing time
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing time
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: All sites
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST
Service configuration: afbackup
id = afbackup
flags = REUSE NAMEINARGS IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 2988
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /usr/local/backup/server/bin/afserver
Server argv = /usr/local/backup/server/bin/afserver /usr/local/backup/server/etc/backup.conf
Only from: All sites
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST
Service configuration: sgi_fam
id = sgi_fam
flags = IPv4
type = RPC UNLISTED
socket_type = stream
Protocol (name,number) = (tcp,6)
Groups = no
PER_SOURCE = -1
Bind = localhost.localdomain
Server = /usr/bin/fam
Server argv = fam
RPC data
program number = 391002
rpc_version = 2
Only from: All sites
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST
04/9/28@17:04:57: ERROR: 6495 {activate_normal} bind failed (Address already in use (errno = 98)). service = afbackup
04/9/28@17:04:57: ERROR: 6495 {activate_rpc} pmap_set failed. service=sgi_fam program=391002 version=2
04/9/28@17:04:58: DEBUG: 6495 {activate_rpc} Registered 0 versions of sgi_fam
04/9/28@17:04:58: DEBUG: 6495 {cnf_start_services} mask_max = 0, services_started = 0
04/9/28@17:04:58: CRITICAL: 6495 {init_services} no services. Exiting...
So it seems I have to problems here.
1. What is this business about the address being already in use? And how can it be fixed? I should have only one service answering to afbackup.
2. What on earth is this sgi_fam thing? What's broken?
Here are my xinetd.conf and xinetd.d/afbackup files:
xinetd.conf:
#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
xinetd.d/afbackup:
service afbackup
{
flags = REUSE NAMEINARGS
socket_type = stream
protocol = tcp
wait = no
user = tguignar
server = /usr/local/backup/server/bin/afserver
server_args = /usr/local/backup/server/bin/afserver /usr/local/backup/server/etc/backup.conf
}
I'm running RedHat 9.
[root@lemapc77 root]> uname -a
Linux lemapc77 2.4.27 #1 SMP Fri Sep 10 11:30:47 CEST 2004 i686 i686 i386 GNU/Linux
I just upgraded my kernel to 2.4.27. Among other things that needed to be fixed, there is something I don't quite understand.
I was using the afbackup service, and since the new kernel it doesn't work anymore because the server-side service doesn't work (afbackup is based on a client-server model, in my case my box acts both as client and server, the server process must be started by xinetd).
If I type xinetd -d to see debug info, this is what I get:
[root@lemapc77 root]> xinetd -d
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/afbackup [line=15]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/chargen [line=10]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/chargen-udp [line=18]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/cups-lpd [line=17]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/daytime [line=11]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/daytime-udp [line=15]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/echo [line=15]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/echo-udp [line=14]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/ktalk [line=15]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/rsync [line=12]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/servers [line=13]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/services [line=13]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/sgi_fam [line=13]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/time [line=16]
04/9/28@17:04:57: DEBUG: 6495 {handle_includedir} Reading included configuration file: /etc/xinetd.d/time-udp [line=17]
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing chargen
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing chargen
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing printer
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing daytime
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing daytime
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing echo
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing echo
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing ntalk
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing rsync
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing servers
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing services
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing time
04/9/28@17:04:57: DEBUG: 6495 {remove_disabled_services} removing time
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: All sites
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST
Service configuration: afbackup
id = afbackup
flags = REUSE NAMEINARGS IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 2988
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /usr/local/backup/server/bin/afserver
Server argv = /usr/local/backup/server/bin/afserver /usr/local/backup/server/etc/backup.conf
Only from: All sites
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST
Service configuration: sgi_fam
id = sgi_fam
flags = IPv4
type = RPC UNLISTED
socket_type = stream
Protocol (name,number) = (tcp,6)
Groups = no
PER_SOURCE = -1
Bind = localhost.localdomain
Server = /usr/bin/fam
Server argv = fam
RPC data
program number = 391002
rpc_version = 2
Only from: All sites
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST
04/9/28@17:04:57: ERROR: 6495 {activate_normal} bind failed (Address already in use (errno = 98)). service = afbackup
04/9/28@17:04:57: ERROR: 6495 {activate_rpc} pmap_set failed. service=sgi_fam program=391002 version=2
04/9/28@17:04:58: DEBUG: 6495 {activate_rpc} Registered 0 versions of sgi_fam
04/9/28@17:04:58: DEBUG: 6495 {cnf_start_services} mask_max = 0, services_started = 0
04/9/28@17:04:58: CRITICAL: 6495 {init_services} no services. Exiting...
So it seems I have to problems here.
1. What is this business about the address being already in use? And how can it be fixed? I should have only one service answering to afbackup.
2. What on earth is this sgi_fam thing? What's broken?
Here are my xinetd.conf and xinetd.d/afbackup files:
xinetd.conf:
#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
xinetd.d/afbackup:
service afbackup
{
flags = REUSE NAMEINARGS
socket_type = stream
protocol = tcp
wait = no
user = tguignar
server = /usr/local/backup/server/bin/afserver
server_args = /usr/local/backup/server/bin/afserver /usr/local/backup/server/etc/backup.conf
}
I'm running RedHat 9.
[root@lemapc77 root]> uname -a
Linux lemapc77 2.4.27 #1 SMP Fri Sep 10 11:30:47 CEST 2004 i686 i686 i386 GNU/Linux