eventalarm says "Could not recreate lock file. /n" under RH7.3 and Informix 7.31.UD2
Posted in 2003
Topics: Backup & Restore, Installation, Setup & Upgrades, Connectivity: ODBC / JDBC / .NET, Logging & Checkpoints, Internationalization & Character Sets
This one is stumping me ....
I'm using Art's eventalarm script (thanks!) from utils3 to do my
ontape switching automagically. However, after each log archival
event ("Severity=2, Class=23") I get the following output in
eventalarm.log:
Oct 01 13:48:11 :NonFatal Event: Severity=2, Class=23.
Oct 01 13:48:11 :5 args passed
Oct 01 13:48:11 :Arg 0: "/opt/informix/etc/eventalarm".
Oct 01 13:48:11 :Arg 1: "2".
Oct 01 13:48:11 :Arg 2: "23".
Oct 01 13:48:11 :Arg 3: "Logical Log 2932 Complete.".
Oct 01 13:48:11 :Arg 4: "Logical Log 2932 Complete.".
Oct 01 13:48:11 :Removing old lock file.
Oct 01 13:48:11 :Could not recreate lock file. /n
I assumed this was a permissions problem (after looking at the
eventalarm.c code), and have the following permissions in
/opt/informix/bin:
-rwsr-sr-- 1 root informix 5823718 May 11 2002 oninit
-rwsr-sr-x 1 root informix 1194954 May 11 2002 ontape
Informix is:
drwxr-xr-x 21 informix informix 4096 Oct 1 13:27 informix
and informix/ is:
drwxrwx--- 2 informix informix 4096 May 11 2002 aaodir
drwxrwxr-x 2 informix informix 4096 Jan 29 2003 backup
drwxrwxr-x 2 informix informix 4096 Aug 18 11:04 bin
drwxrwx--- 2 informix informix 4096 May 11 2002 dbssodir
drwxr-xr-x 9 informix informix 4096 Dec 11 2001 demo
drwxr-xr-x 7 informix informix 4096 Sep 11 2000 doc
drwxrwxr-x 8 informix informix 4096 Sep 29 12:01 etc
-rw-r--r-- 1 informix informix 98 Oct 1 13:27 eventalarm.cfg
drwxr-xr-x 8 informix informix 4096 May 11 2002 forms
drwxr-xr-x 5 informix informix 4096 Dec 11 2001 gls
drwxr-xr-x 3 informix informix 4096 May 11 2002 hhelp
lrwxrwxrwx 1 informix informix 5 Jan 27 2003 ifxjdbc ->
jdbc2
drwxr-xr-x 8 informix informix 4096 Dec 11 2001 incl
drwxrwxr-x 2 informix informix 4096 Oct 29 2000 install
-rwxr-xr-x 1 informix informix 10013 Dec 11 2001 installserver
drwxr-xr-x 2 informix informix 4096 May 11 2002 ism
drwxrwxr-x 6 informix informix 4096 Mar 31 2001 jdbc1
drwxr-xr-x 6 informix informix 4096 Jun 8 2001 jdbc2
drwxr-xr-x 8 informix informix 4096 May 11 2002 lib
drwxr-xr-x 8 informix informix 4096 May 11 2002 msg
drwxr-xr-x 3 informix informix 4096 Dec 11 2001 release
drwxr-xr-x 4 informix informix 4096 May 11 2002 snmp
Next was eventalarm, which is:
-rwxr-xr-x 1 informix informix 30324 May 28 18:30 eventalarm
<Changing this to root.informix didn't help much>
I also checked on the logs, which are:
-rw-rw---- 1 informix informix 0 Sep 22 00:03 archive
-rw-rw---- 1 informix informix 952631296 Oct 1 12:33 log
Which, are, as far as I can tell (I'm probably missing something)
correct. What am I missing?
Any help would be much appreciated.
--Anthony