Bug 26916 - notifier.log: ERROR Could not get lock for file [...]; count = X
notifier.log: ERROR Could not get lock for file [...]; count = X
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Notifier (univention-directory-notifier)
UCS 3.0
i386 Linux
: P2 normal (vote)
: UCS 3.1
Assigned To: Stefan Gohmann
Philipp Hahn
: interim-1
Depends on: 6593
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-26 15:12 CEST by Tim Petersen
Modified: 2012-12-12 21:09 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Petersen univentionstaff 2012-04-26 15:12:53 CEST
+++ This bug was initially created as a clone of Bug #6593 +++

Wenn der Listener versucht einen Lock
/var/lib/univention-ldap/listener/listener.lock anzulegen und dies fehlschlägt
wird eine Warnung im Log ausgegeben und zwar für jeden Fehlversuch:

07.09.06 14:36:03  LISTENER    ( ERROR   ) : write to transaction file
dn=[uid=cedric3,cn=schueler,cn=users,ou=699,dc=schule,dc=bremen,dc=de], command=[m]
07.09.06 14:36:04  LDAP        ( WARN    ) : ERROR Could not get lock for file
[/var/lib/univention-ldap/listener/listener.lock]; count = 0

07.09.06 14:36:04  LDAP        ( WARN    ) : ERROR Could not get lock for file
[/var/lib/univention-ldap/listener/listener.lock]; count = 1

07.09.06 14:36:04  LDAP        ( WARN    ) : ERROR Could not get lock for file
[/var/lib/univention-ldap/listener/listener.lock]; count = 2

07.09.06 14:36:04  LDAP        ( WARN    ) : ERROR Could not get lock for file
[/var/lib/univention-ldap/listener/listener.lock]; count = 3

07.09.06 14:36:04  LDAP        ( WARN    ) : ERROR Could not get lock for file
[/var/lib/univention-ldap/listener/listener.lock]; count = 4

07.09.06 14:36:04  LDAP        ( WARN    ) : ERROR Could not get lock for file
[/var/lib/univention-ldap/listener/listener.lock]; count = 5

07.09.06 14:36:04  LDAP        ( WARN    ) : ERROR Could not get lock for file
[/var/lib/univention-ldap/listener/listener.lock]; count = 6

07.09.06 14:36:04  LDAP        ( WARN    ) : ERROR Could not get lock for file
[/var/lib/univention-ldap/listener/listener.lock]; count = 7

07.09.06 14:36:04  LDAP        ( WARN    ) : ERROR Could not get lock for file
[/var/lib/univention-ldap/listener/listener.lock]; count = 8

07.09.06 14:36:04  LDAP        ( WARN    ) : ERROR Could not get lock for file
[/var/lib/univention-ldap/listener/listener.lock]; count = 9

07.09.06 14:36:04  LDAP        ( WARN    ) : ERROR Could not get lock for file
[/var/lib/univention-ldap/listener/listener.lock]; count = 10

07.09.06 14:36:04  LDAP        ( WARN    ) : ERROR Could not get lock for file
[/var/lib/univention-ldap/listener/listener.lock]; count = 11

Diese Meldung könnte mal auf den Log-Level INFO gesetzt werden und sollte
vielleicht auch nicht für jeden Versuch ausgegeben werden.

Gleiches könnte für die notifier.log umgesetzt werden
Comment 1 Stefan Gohmann univentionstaff 2012-07-17 17:09:44 CEST
UCS 3.1 will be the next release.
Comment 2 Stefan Gohmann univentionstaff 2012-08-30 07:00:50 CEST
Debug Meldung ist von WARN auf INFO geändert.
Comment 3 Philipp Hahn univentionstaff 2012-09-14 14:57:21 CEST
OK: Mit 6.0.8-2.60.201206111136 erscheint die Meldung 100, bevor der Notifier aufgiebt uns sich beendet
  14.09.12 14:45:00.348  DEBUG_INIT
  14.09.12 14:45:00.349  TRANSFILE   ( WARN    ) : ERROR Could not get lock for file [/var/lib/univention-ldap/listener/
listener.lock]; count = 0
  ...
  14.09.12 14:45:00.387  TRANSFILE   ( WARN    ) : ERROR Could not get lock for file [/var/lib/univention-ldap/listener/listener.lock]; count = 100
  14.09.12 14:45:00.387  TRANSFILE   ( ERROR   ) : ERROR Could not get lock for file [/var/lib/univention-ldap/listener/listener.lock]; exit

OK: Mit 7.0.5-2.66.201209110749 erscheint nur noch die exit()-Meldung
  14.09.12 14:45:36.825  DEBUG_INIT
  14.09.12 14:45:42.108  TRANSFILE   ( ERROR   ) : Could not get lock for file [/var/lib/univention-ldap/listener/listener.lock]; exit

OK: Code svn35093

OK: ChangeLog svn14520

/etc/init.d/univention-directory-notifier stop
udm users/user create --option samba --option posix --set lastname=Hahn --set username=phahn --set password=univention --set unixhome=/home/phahn
python -c 'import os,fcntl,time;f=open("/var/lib/univention-ldap/listener/listener.lock", "r+");fcntl.lockf(f, fcntl.LOCK_EX, 0, 0, os.SEEK_SET);time.sleep(60);f.close()' &
tail -f /var/log/univention/notifier.log &
/etc/init.d/univention-directory-notifier start
Comment 4 Stefan Gohmann univentionstaff 2012-12-12 21:09:54 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".