From: Russell S. <rus...@st...> - 2010-09-01 03:58:15
|
Using python's kinterbase to talk to the server I am getting this error: kinterbasdb.OperationalError: (-923, 'isc_attach_database: \n connection rejected by remote interface') The server runs fine for after being started, then I will get a bunch of those errors from several different applications, then it will come good again for a while. It appears that after 24 hours or so it gets to the stage where it can't recover. These messages are appearing in /var/log/firebird2.5.log: titan (Client) Mon Aug 30 19:58:05 2010 INET/inet_error: connect errno = 111 I am trying to figure out what might be causing this, but in the mean time I will probably switch to the classic server. Can anybody give me some hints? The server is regularly asked to do large transactions they might take 30 to 40 seconds to complete. Oddly, when I do an lsof on fbserver when this is happening it typically has no client connections open. Database: firebird2.5-super Version: 2.5.0.26054 ReleaseCandidate3.ds2 OS: Debian Sarge 32bit The binary was compiled from the debian squeeze source package. |
From: Russell S. <rus...@st...> - 2010-09-07 00:40:04
|
On Wed, 2010-09-01 at 13:09 +1000, Russell Stuart wrote: > Using python's kinterbase to talk to the server I am getting this error: > > kinterbasdb.OperationalError: (-923, 'isc_attach_database: \n connection rejected by remote interface') I switched to the classic server. It all went well for a few days, then it hit what appears to be the same problem. This time there was no problem connecting to the server, as you might expect given the classic version was being used. By every connection had frozen, meaning it appeared the client was waiting for a response from the server that never came. I made a guess at the oldest fb_inet_server being the problem. An lsof of it showed it had a active connection to port 3050. I killed the process that held that connection open (an apache2 instance). Then the lsof showed the connection had gone to a CLOSE_WAIT state, but the fb_inet_server didn't exit and all other fb_inet_server instances remained frozen. So then I killed it with SIGTERM. No difference - it didn't exit, and all other fb_inet_server's remained frozen. So then I reluctantly killed it with SIGKILL. It died, and all other fb_inet_server servers then unblocked and went on their merry way. I looks to me like 2.5 has a locking problem - one that can take down all instances of a classic server. It smells like the same problem that afflicted the super server, the only difference being that once the super sever deadlocked it didn't do accept()'s to new connections so they failed. I can't reproduce this problem, but it does happen fairly regularly in the super server (at least once per day). I am willing to go to a bit of effort to find it, if someone wants to tell me what to do. |
From: philippe m. <mak...@fi...> - 2010-09-07 07:00:51
|
> The binary was compiled from the debian squeeze source package. did you report this to Debian maintainer ? can you try with snapshot build, or build you're self from the svn ? https://firebird.svn.sourceforge.net/svnroot/firebird/firebird/branches/B2_5_Release how many connection, how many transaction are involved ? better re posting this to the devel list |
From: novrain <nov...@gm...> - 2011-08-07 11:39:36
|
Have this problem been confirmed and solved? -- View this message in context: http://firebird.1100200.n4.nabble.com/923-isc-attach-database-connection-rejected-by-remote-interface-tp2402587p3724747.html Sent from the firebird-test mailing list archive at Nabble.com. |
From: novrain <nov...@gm...> - 2011-08-19 04:35:51
|
We have the same problem. Here is some information in the attached file. And environment: http://firebird.1100200.n4.nabble.com/file/n3754256/CLOSE_WAIT-10.44.120.6.7z CLOSE_WAIT-10.44.120.6.7z > [root@OMM-32Klinux ~]# /opt/firebird/bin/fb_config --version > 2.1.3.18185-0.i686 > > [root@OMM-32Klinux ~]# cat /proc/version > Linux version 2.6.18-164.el5 (root@localhost.localdomain) (gcc version > 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Fri Dec 3 09:02:01 CST 2010 -- View this message in context: http://firebird.1100200.n4.nabble.com/923-isc-attach-database-connection-rejected-by-remote-interface-tp2402587p3754256.html Sent from the firebird-test mailing list archive at Nabble.com. |