Steven,
Could you try the attached patch?
You should not get a "Could not bind to any port: Invalid argument"
error in the debug file.
Jean-Louis
Steven Backus wrote:
Could you post the amanda.*.debug from episun7.med.utah.edu
and the sendbackup.*.debug if one is created.
amandad: time 0.376: stream_server: Could not bind to any port: Invalid argument
amandad: time 0.377: stream_server: Retrying entire range after 10 second delay.
amandad: time 6.207: stream_server: Could not bind to any port: Invalid argument
amandad: time 6.207: stream_server: Retrying entire range after 10 second delay.
diff -u -r --show-c-function --new-file
--exclude-from=/home/martinea/src.orig/amanda.diff
--ignore-matching-lines='$Id:' amanda-2.5.2/common-src/stream.c
amanda-2.5.2.bind/common-src/stream.c
--- amanda-2.5.2/common-src/stream.c 2007-04-20 12:54:17.000000000 -0400
+++ amanda-2.5.2.bind/common-src/stream.c 2007-05-04 13:42:46.000000000
-0400
@@ -131,7 +131,7 @@ stream_server(
dbprintf(("%s: stream_server: Could not bind to port in range: %d -
%d.\n",
debug_prefix_time(NULL), portrange[0], portrange[1]));
} else {
- socklen = sizeof(server);
+ socklen = SS_LEN(&server);
if (bind(server_socket, (struct sockaddr *)&server, socklen) == 0)
goto out;
dbprintf(("%s: stream_server: Could not bind to any port: %s\n",
|