Univention Bugzilla – Bug 26916
notifier.log: ERROR Could not get lock for file [...]; count = X
Last modified: 2012-12-12 21:09:54 CET
+++ 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
UCS 3.1 will be the next release.
Debug Meldung ist von WARN auf INFO geändert.
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
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".