SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Error on FreeBSD: "select: Bad file descriptor"
Author Message
Post Error on FreeBSD: "select: Bad file descriptor" 
I am backing up two FreeBSD servers onto one. One of those backed up
servers is on the other side of a firewall but apart from that they are
the same -- 5.2.1, python and rdiff-backup version match. The one
inside the firewall works like a charm. The one outside on the other
hand gives me the following error with the same command.

Does anyone have an idea why this is so?

# /usr/local/bin/rdiff-backup --verbosity 6 root < at > raven.kierun.org::/etc \
/usr/vault/backups/raven/etc

Traceback (most recent call last):
File "/usr/local/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/local/lib/python2.3/site-packages/rdiff_backup/Main.py",
line 252, in Main
rps = map(SetConnections.cmdpair2rp, cmdpairs)
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/SetConnections.py",
line 73, in cmdpair2rp
if cmd: conn = init_connection(cmd)
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/SetConnections.py",
line 136, in init_connection
check_connection_version(conn, remote_cmd)
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/SetConnections.py",
line 144, in check_connection_version
try: remote_version = conn.Globals.get('version')
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 440, in __call__
return apply(self.connection.reval, (self.name,) + args)
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 360, in reval
result = self.get_response(req_num)
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 309, in get_response
try: req_num, object = self._get()
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 234, in _get
data = self._read(length)
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 203, in _read
return self.inpipe.read(length)
OverflowError: long int too large to convert to int
select: Bad file descriptor


--
yann < at > kierun.org -=*=- www.kierun.org
PGP: 009D 7287 C4A7 FD4F 1680 06E4 F751 7006 9DE2 6318

Post Error on FreeBSD: "select: Bad file descriptor" 
So, does anyone have a idea about this bug in rdiff?

Quoth Yann Golanski on Fri, Oct 01, 2004 at 10:28:04 +0100
I am backing up two FreeBSD servers onto one. One of those backed up
servers is on the other side of a firewall but apart from that they are
the same -- 5.2.1, python and rdiff-backup version match. The one
inside the firewall works like a charm. The one outside on the other
hand gives me the following error with the same command.

Does anyone have an idea why this is so?

# /usr/local/bin/rdiff-backup --verbosity 6 root < at > raven.kierun.org::/etc \
/usr/vault/backups/raven/etc

Traceback (most recent call last):
File "/usr/local/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/local/lib/python2.3/site-packages/rdiff_backup/Main.py",
line 252, in Main
rps = map(SetConnections.cmdpair2rp, cmdpairs)
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/SetConnections.py",
line 73, in cmdpair2rp
if cmd: conn = init_connection(cmd)
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/SetConnections.py",
line 136, in init_connection
check_connection_version(conn, remote_cmd)
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/SetConnections.py",
line 144, in check_connection_version
try: remote_version = conn.Globals.get('version')
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 440, in __call__
return apply(self.connection.reval, (self.name,) + args)
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 360, in reval
result = self.get_response(req_num)
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 309, in get_response
try: req_num, object = self._get()
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 234, in _get
data = self._read(length)
File
"/usr/local/lib/python2.3/site-packages/rdiff_backup/connection.py",
line 203, in _read
return self.inpipe.read(length)
OverflowError: long int too large to convert to int
select: Bad file descriptor


--
yann < at > kierun.org -=*=- www.kierun.org
PGP: 009D 7287 C4A7 FD4F 1680 06E4 F751 7006 9DE2 6318


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki


--
yann < at > kierun.org -=*=- www.kierun.org
PGP: 009D 7287 C4A7 FD4F 1680 06E4 F751 7006 9DE2 6318

Post Error on FreeBSD: "select: Bad file descriptor" 
On Mon, 4 Oct 2004 10:22:04 +0100
Yann Golanski <yann < at > kierun.org> wrote:

So, does anyone have a idea about this bug in rdiff?

I would start by identifying which file rdiff-backup is trying to back up
when the failure happens (or does it happen immediately?), and the if
nothing obvious appears to be wrong with that file, try manually copying it
to the other server to see if that can back it up.

If "rdiff-backup --test-server" works, I'd say it is unlikely to be the
fact that one machine is behind a firewall and the other not.

Keith

--
----------------------------------------------------------------------
Small business computer support: http://www.tiger-computing.co.uk
Linux consultancy: http://www.TheLinuxConsultancy.co.uk
----------------------------------------------------------------------

Post Error on FreeBSD: "select: Bad file descriptor" 
Quoth Yann Golanski on Fri, Oct 01, 2004 at 10:28:04 +0100
Does anyone have an idea why this is so?

*sigh* Found the solution to this. I was using Dean Gaudet's unattended
rdiff-backup pages for this. It appears that the shell used by this
connections is an interactive shell. Since I had some output done
within that, rdiff-backup was getting confused -- it was trying to parse
the content of "w" which it didn't like for obvious reasons.

So, it's all sorted and hopefully this will be archived and someone else
will find this if they have the same problem.

--
yann < at > kierun.org -=*=- www.kierun.org
PGP: 009D 7287 C4A7 FD4F 1680 06E4 F751 7006 9DE2 6318

Post Error on FreeBSD: "select: Bad file descriptor" 
Quoth Keith Edmunds on Mon, Oct 04, 2004 at 10:27:32 +0100
I would start by identifying which file rdiff-backup is trying to back up
when the failure happens (or does it happen immediately?), and the if
nothing obvious appears to be wrong with that file, try manually copying it
to the other server to see if that can back it up.

It was /etc but it was failing before that since rdiff-backup was trying
to parse the output from w.

If "rdiff-backup --test-server" works, I'd say it is unlikely to be the
fact that one machine is behind a firewall and the other not.

*nods* I thought it would be strange as well since all of it is going
via ssh.

Ah well, as is classical in the Internet, I found the solution a few
seconds after sending the message!

Sorry about that folks.

--
yann < at > kierun.org -=*=- www.kierun.org
PGP: 009D 7287 C4A7 FD4F 1680 06E4 F751 7006 9DE2 6318

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB