Licence Problem

Hi all,

I am using QNX 4.25a but 4.25b of tcp runtime. I have a very strange problem. Once in a while on powerup (maybe every 20th time), I get a no licence error when the sysinit file invokes tcp commands (route, inet, etc). The script also invokes photon which fails and then there is a segment voilation on the shell so no login can occur. Sometimes, I need to repeat the powerup numerous times to recover. Often, I am fine on the next powerup and then the system runs for weeks before routine power down. Note that I do not use QNX networking and the problem occurs with no network cable installed. I install all licences on all my systems so there are over a dozen qnx, photon and tcp licences on each system. Copies of sysinit, netstart and hosts are below. Does anyone have any ideas.

Thanks in advance.

Jack

PROGRAM NAME VERSION DATE
/boot/sys/Proc32 Proc 4.25I Nov 25 1998
/boot/sys/Proc32 Slib16 4.23G Oct 04 1996
/boot/sys/Slib32 Slib32 4.24B Aug 12 1997
/bin/Fsys Fsys32 4.24S Jul 16 1998
/bin/Fsys Floppy 4.24B Aug 19 1997
/bin/Fsys.aha7scsi scsi 4.24M Mar 23 1998
//1/bin/Dev Dev32 4.23G Oct 04 1996
//1/bin/Pipe Pipe 4.23A Feb 26 1996
//1/bin/Dev.ser Dev32.ser 4.23I Jun 27 1997
//1/bin/Dev.ser Dev32.ser 4.23I Jun 27 1997
//1/bin/Dev.ansi Dev32.ansi 4.23H Nov 21 1996
//1/bin/Dev.par Dev32.par 4.23G Oct 04 1996
//1/bin/Dev.pty Dev32.pty 4.23G Oct 04 1996
//1/bin/Fsys.eide eide 4.24N Nov 18 1998
//1/bin/Iso9660fsys Iso9660fsys 4.23B Jun 10 1998
//1/bin/Net Net 4.25B Jul 27 1998
//1/bin/Net.ether1000 Net.ether100 4.24B Jul 24 1998
//1/bin/Net.epic Net.epic 4.24C Dec 04 1998
//1/bin/Net.epic Net.epic 4.24C Dec 04 1998
//1/bin/Net.epic Net.epic 4.24C Dec 04 1998
//1/usr/ucb/Socket Socket 4.25G Mar 29 1999
//1/bin/Mqueue mqueue 4.24B Jan 12 1999
//1//photon/bin/Photon Photon 1.13D Sep 03 1998
//1/
/bin/phfontpfr Photon Font 1.13A Jul 07 1998


**** SYSINIT FILE
#Image: /boot/sys/boot -v
#Image: /boot/sys/Proc32 -l 1
#Image: /boot/sys/Slib32
#Image: /boot/sys/Slib16
#Image: /bin/Fsys
#Image: /bin/Fsys.aha7scsi fsys -Ndsk1 -n0=hd1. -n5=cd1. aha7scsi -ad400 -i9
#Image: /bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /
#Image: /bin/sinit TERM=qnxm
export NODE=1
export KBD=en_US_101.kbd
export ABLANG=en
export CON_KBD=USA
export TZ=est05edt04,M4.1.0/2,M10.5.0/2
/bin/rtc -l hw
Dev &
emu87 &
Pipe &
/bin/Dev.ser -N/dev/ser1 3f8,4 &
/bin/Dev.ser -N/dev/ser2 2f8,3 &
Dev.ansi -Q -n9 &
reopen /dev/con1
kbd $CON_KBD
prefix -A /dev/console=/dev/con1
Dev.par &
Dev.pty -n16 &
/bin/Fsys.eide fsys -Ndsk0 -n0=hd0. -n5=cd0. eide -a1f0 -i14
Iso9660fsys /cd0.0=/dev/cd0.0 &
/bin/Fsys.floppy -a3f0 -i6

Define the default CD Rom

/bin/prefix -A /cd=//0/cd0.0
/bin/Net -d 4 &
/bin/Net.ether1000 -l1 -p320 -i15 &
/bin/Net.epic -I1 -l2 -s 100 -r 100000000 &
/bin/Net.epic -I2 -l3 -s 100 -r 100000000 &
/bin/Net.epic -I0 -l4 -s 100 -r 100000000 &

netmap -f

nameloc &
chkfsys /
sleep 10
netstart
Mqueue &
tinit -t /dev/con1 &
tinit -T /dev/con[2-6] &
export PHPDM_DISABLE=1
export PHEXIT_DISABLE=1
ph


**** NETSTART ******
#!/bin/sh

export SOCK=$NODE
/bin/slay -f Socket Socklet;
/bin/prefix -D /dev/console >/dev/null 2>&1;
/bin/prefix -A /dev/console=/dev/con1;

start up Socket: assume hostnames are defined as ‘node#’

Note: if not using NFS, use Socklet instead

/usr/ucb/Socket dc_interface &

\

Note: assuming ethernet interface on logical LAN 1

/usr/ucb/ifconfig en1 scitex_server up netmask 255.255.255.0
/usr/ucb/ifconfig en2 dc_interface up netmask 255.255.255.0
/usr/ucb/ifconfig en3 alt_dc_interface up netmask 255.255.255.0
/usr/ucb/ifconfig en4 s120_server up netmask 255.255.255.0
/usr/ucb/ifconfig lo0 localhost up
/usr/bin/syslogd

Note: to act as an NFS server, uncomment the next line

/etc/nfsstart

Note: to act as a TCP/IP server, uncomment the next line

/usr/ucb/inetd

/usr/ucb/route add default default_gateway
/usr/ucb/route add alt_datacenter route_to_alt


****** HOSTS*****

Host Database

This file should contain the addresses and aliases

for local hosts that share this file.

It is used only for “ifconfig” and other operations

before the nameserver is started.

127.1 localhost localhost.my.domain

Interfaces to the datacenter

172.16.1.35 dc_interface
128.1.95.35 alt_dc_interface

Datacenter addresses

172.16.1.250 datacenter
128.1.12.252 alt_datacenter
128.1.95.240 default_gateway
128.1.95.240 route_to_alt

Addresses on Scitex Network

192.168.200.32 scitex_5240
192.168.200.1 scitex_s100
192.168.201.1 scitex_s120
192.168.200.16 scitex_3000
192.168.200.253 scitex_server
192.168.201.253 s120_server

\


Jack Rosenbloom
Webcraft Mail Systems (division of Vertis)
Manager, Advanced Process Control Engineering
4371 County Line Road
Chalfont PA. 18914
Phone: (215) 997-5269
FAX: (215) 997-5455
E-Mail: jrosenbloom@vertisinc.com

Just add delay (sleep 5) after nameloc because nameloc need some time to
load license informations…

Jack Rosenbloom <jrosenbloom@webcraft.com> wrote in message
news:3B2E6B99.E2B805C5@webcraft.com

Hi all,

I am using QNX 4.25a but 4.25b of tcp runtime. I have a very strange
problem. Once in a while on powerup (maybe every 20th time), I get a no

licence error when the sysinit file invokes tcp commands (route, inet, etc).
The script also invokes photon which fails and then there is a segment
voilation on the shell so no login can occur. Sometimes, I need to repeat
the powerup numerous times to recover. Often, I am fine on the next powerup
and then the system runs for weeks before routine power down. Note that I
do not use QNX networking and the problem occurs with no network cable
installed. I install all licences on all my systems so there are over a
dozen qnx, photon and tcp licences on each system. Copies of sysinit,
netstart and hosts are below. Does anyone have any ideas.

Thanks in advance.

Jack

PROGRAM NAME VERSION DATE
/boot/sys/Proc32 Proc 4.25I Nov 25 1998
/boot/sys/Proc32 Slib16 4.23G Oct 04 1996
/boot/sys/Slib32 Slib32 4.24B Aug 12 1997
/bin/Fsys Fsys32 4.24S Jul 16 1998
/bin/Fsys Floppy 4.24B Aug 19 1997
/bin/Fsys.aha7scsi scsi 4.24M Mar 23 1998
file://1/bin/Dev Dev32 4.23G Oct 04 1996
file://1/bin/Pipe Pipe 4.23A Feb 26 1996
file://1/bin/Dev.ser Dev32.ser 4.23I Jun 27 1997
file://1/bin/Dev.ser Dev32.ser 4.23I Jun 27 1997
file://1/bin/Dev.ansi Dev32.ansi 4.23H Nov 21 1996
file://1/bin/Dev.par Dev32.par 4.23G Oct 04 1996
file://1/bin/Dev.pty Dev32.pty 4.23G Oct 04 1996
file://1/bin/Fsys.eide eide 4.24N Nov 18 1998
file://1/bin/Iso9660fsys Iso9660fsys 4.23B Jun 10 1998
file://1/bin/Net Net 4.25B Jul 27 1998
file://1/bin/Net.ether1000 Net.ether100 4.24B Jul 24 1998
file://1/bin/Net.epic Net.epic 4.24C Dec 04 1998
file://1/bin/Net.epic Net.epic 4.24C Dec 04 1998
file://1/bin/Net.epic Net.epic 4.24C Dec 04 1998
file://1/usr/ucb/Socket Socket 4.25G Mar 29 1999
file://1/bin/Mqueue mqueue 4.24B Jan 12 1999
file://1//photon/bin/Photon Photon 1.13D Sep 03 1998
file://1/
/bin/phfontpfr Photon Font 1.13A Jul 07 1998


**** SYSINIT FILE
#Image: /boot/sys/boot -v
#Image: /boot/sys/Proc32 -l 1
#Image: /boot/sys/Slib32
#Image: /boot/sys/Slib16
#Image: /bin/Fsys
#Image: /bin/Fsys.aha7scsi fsys -Ndsk1 -n0=hd1. -n5=cd1.
aha7scsi -ad400 -i9
#Image: /bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /
#Image: /bin/sinit TERM=qnxm
export NODE=1
export KBD=en_US_101.kbd
export ABLANG=en
export CON_KBD=USA
export TZ=est05edt04,M4.1.0/2,M10.5.0/2
/bin/rtc -l hw
Dev &
emu87 &
Pipe &
/bin/Dev.ser -N/dev/ser1 3f8,4 &
/bin/Dev.ser -N/dev/ser2 2f8,3 &
Dev.ansi -Q -n9 &
reopen /dev/con1
kbd $CON_KBD
prefix -A /dev/console=/dev/con1
Dev.par &
Dev.pty -n16 &
/bin/Fsys.eide fsys -Ndsk0 -n0=hd0. -n5=cd0. eide -a1f0 -i14
Iso9660fsys /cd0.0=/dev/cd0.0 &
/bin/Fsys.floppy -a3f0 -i6

Define the default CD Rom

/bin/prefix -A /cd=//0/cd0.0
/bin/Net -d 4 &
/bin/Net.ether1000 -l1 -p320 -i15 &
/bin/Net.epic -I1 -l2 -s 100 -r 100000000 &
/bin/Net.epic -I2 -l3 -s 100 -r 100000000 &
/bin/Net.epic -I0 -l4 -s 100 -r 100000000 &

netmap -f

nameloc &
chkfsys /
sleep 10
netstart
Mqueue &
tinit -t /dev/con1 &
tinit -T /dev/con[2-6] &
export PHPDM_DISABLE=1
export PHEXIT_DISABLE=1
ph


**** NETSTART ******
#!/bin/sh

export SOCK=$NODE
/bin/slay -f Socket Socklet;
/bin/prefix -D /dev/console >/dev/null 2>&1;
/bin/prefix -A /dev/console=/dev/con1;

start up Socket: assume hostnames are defined as ‘node#’

Note: if not using NFS, use Socklet instead

/usr/ucb/Socket dc_interface &

\

Note: assuming ethernet interface on logical LAN 1

/usr/ucb/ifconfig en1 scitex_server up netmask 255.255.255.0
/usr/ucb/ifconfig en2 dc_interface up netmask 255.255.255.0
/usr/ucb/ifconfig en3 alt_dc_interface up netmask 255.255.255.0
/usr/ucb/ifconfig en4 s120_server up netmask 255.255.255.0
/usr/ucb/ifconfig lo0 localhost up
/usr/bin/syslogd

Note: to act as an NFS server, uncomment the next line

/etc/nfsstart

Note: to act as a TCP/IP server, uncomment the next line

/usr/ucb/inetd

/usr/ucb/route add default default_gateway
/usr/ucb/route add alt_datacenter route_to_alt


****** HOSTS*****

Host Database

This file should contain the addresses and aliases

for local hosts that share this file.

It is used only for “ifconfig” and other operations

before the nameserver is started.

127.1 localhost localhost.my.domain

Interfaces to the datacenter

172.16.1.35 dc_interface
128.1.95.35 alt_dc_interface

Datacenter addresses

172.16.1.250 datacenter
128.1.12.252 alt_datacenter
128.1.95.240 default_gateway
128.1.95.240 route_to_alt

Addresses on Scitex Network

192.168.200.32 scitex_5240
192.168.200.1 scitex_s100
192.168.201.1 scitex_s120
192.168.200.16 scitex_3000
192.168.200.253 scitex_server
192.168.201.253 s120_server

\


Jack Rosenbloom
Webcraft Mail Systems (division of Vertis)
Manager, Advanced Process Control Engineering
4371 County Line Road
Chalfont PA. 18914
Phone: (215) 997-5269
FAX: (215) 997-5455
E-Mail: > jrosenbloom@vertisinc.com

Hi Ernest

The licence errors I get first occur in the netstart script which is preceded with a sleep 10. Are you suggesting an additional 5 seconds?

Jack

Looking at you’re startup script there should be plenty of time given a
chkfsys / and a sleep 10 follows. I wonder though if the sleep 10 should
precede the chkfsys / as chkfsys locks the drive maybe preventing nameloc
from loading??? Guess a stab in the dark here.

I’m not a big fan of sleeps. I don’t know if nameloc allows this but rather
than use sleeps you can try nameloc -k $NODE just after starting nameloc &?
Like I say I don’t know if this will work but its worth a try. I would test
this case but I have not having license issues.

nameloc &
nameloc -k $NODE # Must run in the foreground to block until it gets a
response

Cheers,

  • Richard

“Jack Rosenbloom” <jrosenbloom@webcraft.com> wrote in message
news:3B320DCF.7442404@webcraft.com

Hi Ernest

The licence errors I get first occur in the netstart script which is
preceded with a sleep 10. Are you suggesting an additional 5 seconds?

Jack

One of my systems has been more problematic than others (it also has a different hard disk). Moving the sleep to before the chkfsys allowed it to boot reliably a number of times which is unusual for it. Your suggestion looks very promising. By the way, the sleep is present because netstart was failing because the network drivers were not done their init. I hate using sleep also. Sleep 1 works here so I did sleep 10 to be save.

Thanks for your advice
Jack

I just wanted to complete this old thread. The previous suggestions help sometimes, but I found an extremely repeatable solution (which I do not understand why it works). In the netstart script, I commented out invoking the script which starts nfs. Then I invoke the nfs script from sysinit.1 immediately after netstart and problem gone.


The network piece looks like this now:

/bin/Net -d 4 &
/bin/Net.ether1000 -l1 -p320 -i15 &
/bin/Net.epic -I1 -l2 -s 100 -r 100000000 &
/bin/Net.epic -I2 -l3 -s 100 -r 100000000 &
/bin/Net.epic -I0 -l4 -s 100 -r 100000000 &

netmap -f

nameloc &
sleep 5
chkfsys /
netstart
sleep 5
nfsstart

I don’t know if the sleeps are needed or not

Jack