Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Administration & Installation

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 25th June 2012, 15:46
pjohns's Avatar
pjohns pjohns is offline
Guru
 
Join Date: Aug 2001
Location: Surrey - UK
Posts: 554
pjohns is on a distinguished road
Baan: IVc4 SP31 with HiDox - DB: Oracle 11.2.0.2 - OS: RHEL 5.8
SLM issues for Baan jobs called in crontab
Baan: Other/Unknown
DB: Other/Unknown
OS: Other/Unknown
C/S: None/Unknown

Hello,

I enabled SLM licencing on our Production server at the weekend. After enabling I could login to the Baan client without any issue. An EDI job called by root's crontab also ran without any issues. However, Baan jobs called by other users crontabs failed to run. When I look in the log.bshell I see the following error:-

2012-06-24[02:01:07]:E:bsp: ******* S T A R T of Error message *******
2012-06-24[02:01:07]:E:bsp: Log message called from /BAAN/view/port.6.1c.13/vobs/tt/lib/al_1/al_sli.c: #789 keyword: shl
2012-06-24[02:01:07]:E:bsp: Pid 2856 Uid 125 Euid 125 Gid 125 Egid 125
2012-06-24[02:01:07]:E:bsp: user_type S language 2 user_name bsp tty locale ISO88591/NULL
2012-06-24[02:01:07]:E:bsp: Errno 2 (No such file or directory) bdb_errno 0
2012-06-24[02:01:07]:E:bsp: Log_mesg: Load of shared library failed 'SlmClient','SLM70_API_SL';
2012-06-24[02:01:07]:E:bsp: SlmClient.a: cannot open shared object file: No such file or directory
2012-06-24[02:01:07]:E:bsp: ******* E N D of Error message *******
2012-06-24[02:01:07]:W:bsp:
2012-06-24[02:01:07]:W:bsp: ******* S T A R T of Warning message *******
2012-06-24[02:01:07]:W:bsp: Log message called from /BAAN/view/port.6.1c.13/vobs/tt/mir/mir/bclm.c: #633 keyword: bclmInit
2012-06-24[02:01:07]:W:bsp: Pid 2856 Uid 125 Euid 125 Gid 125 Egid 125
2012-06-24[02:01:07]:W:bsp: user_type S language 2 user_name bsp tty locale ISO88591/NULL
2012-06-24[02:01:07]:W:bsp: Errno 2 (No such file or directory) bdb_errno 0
2012-06-24[02:01:07]:W:bsp: Log_mesg: SSA License Manager Initialization Failed, code: '1' ('initialization failed').
2012-06-24[02:01:07]:W:bsp: ******* E N D of Warning message *******

I have double checked the SLM set-up and cannot see any issues.

I have created SLMHOME variable in $BSE/lib/bse_vars
I have set LD_LIBRARY_PATH=/usr/local/slm/shlib
I have set CLASSPATH=:/usr/local/slm/java/com_baan_bclm.jar

The same user that fails can be used to login to Baan Windows client with no issue.

We have SLM set-up on our test servers and batch jobs run okay.

Baan Production Details -

Baan IVc4 SP 31
Port Set 6.1c.13
SLM Version 7.2.0.4

I have now switched back to Baan Licence daemon but can anyone advise what else I can look at to resolve the issue of batch jobs running with SLM?

Thanks in advance.

PJ
Reply With Quote
  #2  
Old 26th June 2012, 10:14
Martin Martin is offline
Senior Member
 
Join Date: Aug 2001
Location: Germany
Posts: 135
Martin is on a distinguished road
Baan: IVc, ERP5c - DB: oracle 9i, 10g, 11g - OS: Windows, HP-UX, SLES8/9/10/11
Permissions for /usr/local/slm ?
Reply With Quote
  #3  
Old 26th June 2012, 12:47
pjohns's Avatar
pjohns pjohns is offline
Guru
 
Join Date: Aug 2001
Location: Surrey - UK
Posts: 554
pjohns is on a distinguished road
Baan: IVc4 SP31 with HiDox - DB: Oracle 11.2.0.2 - OS: RHEL 5.8
No I checked the permissions and they are okay. The same batch user that fails with SLM can login to Baan client without any issue.
Reply With Quote
  #4  
Old 26th June 2012, 14:28
Martin Martin is offline
Senior Member
 
Join Date: Aug 2001
Location: Germany
Posts: 135
Martin is on a distinguished road
Baan: IVc, ERP5c - DB: oracle 9i, 10g, 11g - OS: Windows, HP-UX, SLES8/9/10/11
ok.

make a short test :

set the environment variable SLMHOME,LD_LIBRARY_PATH and CLASSPATH
in /etc/profile or other file that permits you to set a system-wide environment variable.
Reply With Quote
  #5  
Old 27th June 2012, 10:59
pjohns's Avatar
pjohns pjohns is offline
Guru
 
Join Date: Aug 2001
Location: Surrey - UK
Posts: 554
pjohns is on a distinguished road
Baan: IVc4 SP31 with HiDox - DB: Oracle 11.2.0.2 - OS: RHEL 5.8
I had already set these and confirmed that by looking at 'env'.

LD_LIBRARY_PATH=/usr/local/slm/shlib
SLMHOME=/usr/local/slm
CLASSPATH=:/usr/local/slm/java/com_baan_bclm.jar
Reply With Quote
  #6  
Old 27th June 2012, 13:27
Han Brinkman's Avatar
Han Brinkman Han Brinkman is offline
Guru
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 1,155
Han Brinkman has a spectacular aura aboutHan Brinkman has a spectacular aura about
Baan: All - DB: Oracle/ms-sql/db2 - OS: *nix/windows
PJ,

Can you login as that user on unix level and run the SlmClientTest command? That will probably give you a hint what's configured wrong.

Regards,
Reply With Quote
  #7  
Old 27th June 2012, 13:35
pjohns's Avatar
pjohns pjohns is offline
Guru
 
Join Date: Aug 2001
Location: Surrey - UK
Posts: 554
pjohns is on a distinguished road
Baan: IVc4 SP31 with HiDox - DB: Oracle 11.2.0.2 - OS: RHEL 5.8
Hello Han,

Yes I've done that and the test comes back with everything passing.

The whole thing is strange as I can login to Baan when SLM is running without issue. It was only when the Baan job was being called via the crontab that was causing problems. However, a Baan job called by root's crontab worked okay. This would point to permissions or enviroment settings but I have checked these and all appears to be okay.
Reply With Quote
  #8  
Old 27th June 2012, 14:44
Martin Martin is offline
Senior Member
 
Join Date: Aug 2001
Location: Germany
Posts: 135
Martin is on a distinguished road
Baan: IVc, ERP5c - DB: oracle 9i, 10g, 11g - OS: Windows, HP-UX, SLES8/9/10/11
PJ,

login as the user, which does not work.
Modify the crontab like this :

* * * * * env > /tmp/env.output

Verify the output, so you are shure that all needed Environment is set from the cron.
Reply With Quote
Sponsored Links
  #9  
Old 27th June 2012, 15:35
pjohns's Avatar
pjohns pjohns is offline
Guru
 
Join Date: Aug 2001
Location: Surrey - UK
Posts: 554
pjohns is on a distinguished road
Baan: IVc4 SP31 with HiDox - DB: Oracle 11.2.0.2 - OS: RHEL 5.8
This returned the following output -

SHELL=/bin/sh
USER=batch200
PATH=/usr/bin:/bin
PWD=/baan/bse/home/batch200
SHLVL=1
HOME=/baan/bse/home/batch200
LOGNAME=batch200
_=/usr/bin/env

SLM and batch jobs works on our test server and the above test gives the same results. So even though there is no reference to SLM in env.ouput it would appear it doesn't matter as the job runs fine under SLM on our test server??
Reply With Quote
  #10  
Old 27th June 2012, 15:46
Martin Martin is offline
Senior Member
 
Join Date: Aug 2001
Location: Germany
Posts: 135
Martin is on a distinguished road
Baan: IVc, ERP5c - DB: oracle 9i, 10g, 11g - OS: Windows, HP-UX, SLES8/9/10/11
PJ,

no there must something different.
The Problem is, that the cron-shell is not a loginshell, so the /etc/profile is not read.
You have 2 options :
Variable can be defined in the crontab file; 'man 5 crontab' for
more info.

or

source /etc/profile at the top of the rc.startjob script:

.. /etc/profile

Maybe there is something different in your rc.startjob script on test and productionserver
Reply With Quote
  #11  
Old 27th June 2012, 16:28
Han Brinkman's Avatar
Han Brinkman Han Brinkman is offline
Guru
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 1,155
Han Brinkman has a spectacular aura aboutHan Brinkman has a spectacular aura about
Baan: All - DB: Oracle/ms-sql/db2 - OS: *nix/windows
Does the batch user have a ksh as loginshell? Because cron uses sh as standard shell.
Perhaps that causes the problem?

Do the users use the same start.job script as your batch user?
Reply With Quote
  #12  
Old 27th June 2012, 16:42
pjohns's Avatar
pjohns pjohns is offline
Guru
 
Join Date: Aug 2001
Location: Surrey - UK
Posts: 554
pjohns is on a distinguished road
Baan: IVc4 SP31 with HiDox - DB: Oracle 11.2.0.2 - OS: RHEL 5.8
I don't think it's anything to do with rc.startjob script as we use two ways to call jobs from shell scripts.

$BSE/etc/rc.startjob INV202
or
ba6.1 -- -set BSE_COMPNR=200 ttaad5203m000 after exporting BSH_JOB

Both of the above methods fail.

Users use bash as login shell.

As Martin says there is something different somewhere but I canot see it.
Reply With Quote
  #13  
Old 28th June 2012, 14:25
Han Brinkman's Avatar
Han Brinkman Han Brinkman is offline
Guru
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 1,155
Han Brinkman has a spectacular aura aboutHan Brinkman has a spectacular aura about
Baan: All - DB: Oracle/ms-sql/db2 - OS: *nix/windows
Hmmm....

What if you define these variables in the rc.startjob script:

SLMHOME
LD_LIBRARY_PATH
CLASSPATH

You could also try to add SlmClientTest to the rc.startjob script and see if things are fine at that stage as well.
Reply With Quote
  #14  
Old 2nd July 2012, 17:55
pjohns's Avatar
pjohns pjohns is offline
Guru
 
Join Date: Aug 2001
Location: Surrey - UK
Posts: 554
pjohns is on a distinguished road
Baan: IVc4 SP31 with HiDox - DB: Oracle 11.2.0.2 - OS: RHEL 5.8
Whilst comparing the production and test server I did overlook one "small" thing. I had recently updated the porting set from 6.1c.13 to the new 8.8a version.

So I rolled back the porting set on test and managed to replicate my issue. So following your suggestions I set the SLMHOME, CLASSPATH and LD_LIBRARY_PATH at the start of the users crontab. Scripts ran by cron now work.

Thanks for your input on this issue.

PJ
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SLM Server security via SLM Client ?? learner Tools Administration & Installation 3 18th December 2008 20:15
Suddenly problems running jobs by crontab alexpreyer Tools Administration & Installation 4 10th March 2006 15:52
Jobs & Crontab nelson ostos Tools Administration & Installation 2 2nd May 2002 09:08


All times are GMT +2. The time now is 12:09.


©2001-2017 - Baanboard.com - Baanforums.com