[firebase-br] Alguem já viu ? "Fatal lock manager error: invalid lock id (0), errno: 0"

Adriano de F. Trindade trindade em desbrava.com.br
Qua Mar 23 09:00:11 -03 2005


Engraçado, cara!

Me faz pensar que pode ser alguma coisa no sistema de arquivos... Já 
fizeste uma checagem de disco, com o chkdsk /r? O inconveniente é que 
precisa reiniciar o servidor, pois ele verifica no boot, e leva tempo.

Este erro geralmente pode acontecer no caso de haver pouca memória, que 
afeta o lock manager - de repente em um determinado momento havia muitas 
aplicações abertas - ou no caso do "bulk insert" - inserção de muitos 
registros de uma vez só. Acontecia na versão 4.x do Interbase, então seu 
update pode ajudar.

Aqui vai um texto em inglês, da Interbase, do qual tirei estas 
informações, que pode ser de valia pra você:

Abraços!!!

fatal lock manager error: invalid lock id() errno=??

 Last modified: 4/22/1998
 Author: Brett Bandy

 Issue:

 Getting Error:

 fatal lock manager error: invalid lock id() errno=??
   

 Solution:

 This information pertains primarily to InterBase V4.x

 The meaning of this error isn't always the same. If the 
 platform is NT the problem may be the bulk insert 
 problem. This bulk insert problem was fixed in NI-V4.1.0.
 An upgrade would fix this issue.

 Common problems may be:
   * lock file permissions are not set right
   * lock manager is running out of shared memory 
     (in this case do a gds_lock _print and see if the length 
       value is close to the used value, if so then probably need 
       to up the SHMSIZE parameter). 

   * Another thing to investigate is whether the application forks off 
      a child process. This error has occurred when an app 
      forked off a child and passed along the database 
      connection. When the child app tried to access the lock
      manager, an invalid lock id error was given.   Make sure 
      that the connection to the database is not being passed 
      along. The child process must initiate its own connection
      to the database, it cannot use the parents connection or 
      an invalid lock id error will occur. 

 Specific Errno values:
 -------------------------------

 If errno=0 and customer is doing bulk inserts, this may be 
 the problem with the NI-V4.0A(4) kit. Check to see which 
 version of NT they are running (Connect to database in
 ISQL and show version).  This is fixed in later versions of
 InterBase.  An upgrade would solve this problem.

 If errno=2 is specified it is probably a semaphore problem. Use
 gds_drop -a to remove the semaphores and lock file. 

 If errno=13 and permission denied is also specified, try 
 checking the permissions on the lock file.  Also make sure 
 they are not running out of shared memory (the permission 
 denied error was a red herring). 



Maicon Gabriel escreveu:

>Provavelmente irei atualizar o FB Server para a versão 1.5.2.4731, mas
>apenas pelo conhecimento...
>
>Que erro pode ser este? 
>Alguem mais teve tal erro? 
>É um erro conhecido/corrigido?
>
>Erro :: Fatal lock manager error: invalid lock id (0), errno: 0
>
>É a 2ª ocasião em que este erro ocorre, a primeira foi em "20 de
>Abril, 14:57:25 2004" e a segunda foi ontem "22 de Março, 13:48:20
>2005".
>A maquina servidora é SMP(2xCPU - 2Ghz), com 1GB de RAM e roda o
>Sistema Operacional Windows 2000 Server.
>Estou rodando o Firebird 1.5 SuperServer [WI-V1.5.0.4306], com a opção
>"CpuAffinityMask" configurada corretamente, evitando problemas com o
>SMP.
>
>No LOG do Firebird, tenho apenas o seguinte:
>---------------------------------------------------------------------------
>SERVIDOR (Server)       Tue Mar 22 13:48:20 2005
>        Fatal lock manager error: invalid lock id (0), errno: 0
>SERVIDOR (Client)       Tue Mar 22 13:48:20 2005
>        C:\Arquivos de
>programas\Firebird\Firebird_1_5\bin\fbserver.exe: terminated
>abnormally (4294967295)
>SERVIDOR (Client)       Tue Mar 22 13:48:22 2005 
>        Guardian starting: C:\Arquivos de
>programas\Firebird\Firebird_1_5\bin\fbserver.exe
>---------------------------------------------------------------------------
>
>______________________________________________
>FireBase-BR (www.firebase.com.br) - Hospedado em www.bavs.com.br
>Para editar sua configuração na lista, use o endereço http://mail.firebase.com.br/mailman/listinfo/lista_firebase.com.br
>
>  
>


-- 
<http://www.inovainfo.com.br> 	/*Adriano de F. Trindade 
<mailto:trindade em inovainfo.com.br>*/
/Desenvolvimento - *Inova Informática*/
R. Florianópolis, 254-D - Centro - Chapecó/SC
89814-200 - (49)323-5153
ICQ: 16877524





Mais detalhes sobre a lista de discussão lista