This seems to happened every time I upgrade our ERP server.
SUSE Enterprise (SLES) 11.4 -> 15.4 and Informix 12.10.FC7 to 12.10.FC13
Added some debug lines in the script and showing a 127 error - which not sure makes sense as permissions look ok I think.
can't seem to figure out what the problem is. Any ideas?
below the out put of the debug lines:
DATE_INT=2022270090543
DBCENTURY=C
HOME=/home/carsids/informix
INFORMIXDIR=/opt/informix
INFORMIXSERVER=nova
INVOCATION_ID=43cbbf3f30344e81a6352a33a799ec2f
JOURNAL_STREAM=8:22579
LANG=C
LOGNAME=informix
ONCONFIG=onconf.cars
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$INFORMIXDIR/bin
PWD=/
SHELL=/usr/bin/csh
SHLVL=1
SYSTEMD_EXEC_PID=1735
USER=informix
XDG_DATA_DIRS=/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/
_=/usr/bin/env
BACKUPLOGS before if = Y
BACKUP_CMD = ontape -a -d
BACKUPLOGS EXIT_STATUS = 127
what manual says 127 means
127 Could not write to the emergency boot file.
Often, an operating-system error message accompanies this problem. Check the permissions on the following files and directories:
$INFORMIXDIR/etc on UNIX(tm) or %INFORMIXDIR%\etc on Windows(tm)
The emergency boot file
echo $INFORMIXDIR
/opt/informix
informix cars: ll / | grep opt
drwxr-xr-x 20 root root 4096 Mar 15 2022 opt
informix cars: ll /opt | grep informix
drwxr-xr-x 35 informix informix 4096 Sep 26 23:57 informix informix cars: ll /opt/informix | grep etc
drwxrwxr-x 10 informix informix 4096 Sep 27 09:02 etc
which ksh
/bin/ksh
what I added to alarmprogram.sh
# -- GU
(
env | sort
ptree $$
) > /tmp/jda.txt
echo "BACKUPLOGS before if = $BACKUPLOGS" >> /tmp/jda.txt # -- GU
if [ "x${BACKUPLOGS}" = xY ]
then
# -- GU
# $BACKUP_CMD 2>&1 >> /dev/null
echo "BACKUP_CMD = $BACKUP_CMD" >> /tmp/jda.txt
$BACKUP_CMD 2>&1 >> /tmp/jda.txt # -- GU
EXIT_STATUS=$?
printf " '$BACKUP_CMD' has been executed and returned CODE=%s\n\n" $EXIT_STATUS
# -- GU
echo "BACKUPLOGS EXIT_STATUS = $EXIT_STATUS" >> /tmp/jda.txt # -- GU
John David Adamski
Sr. Sysadmin/DBA
Graceland University
1 University Place, Lamoni, IA 50140
adamski@graceland.edu641-784-5267
#Informix