BookmarkSubscribeRSS Feed
cesargf80
Fluorite | Level 6

After initializing ./apm_init.sh , all sasv9_usermods.cfg file under SASAPP(BatchServer, ConnectServer, StoredProcessServer, WorkspaceServer, PooledWorkspaceServer) are getting updated with below line.

 

/* EMI_BEGIN */

/* Added by configureAPM at time and date stamp , DO NOT EDIT THESE LINES OR EMI TAGS */

-logconfigloc 

/data/sasconfig/Lev1/SASApp/BatchServer/logconfig.apm.xml

/* EMI_END */

 

This change is effecting SAS batch jobs running using SAS scheduler. Below is the error message:-

 

ERROR: Invalid option value /data/sasconfig/Lev1/SASApp/BatchServer/logconfig.apm.xml for SAS option LOGCONFIGLOC.

ERROR: (SASXKRIN): KERNEL RESOURCE INITIALIZATION FAILED.

ERROR: Unable to initialize the SAS kernel.

 

can you please provide your sugessions to fix this problem.

10 REPLIES 10
gwootton
SAS Super FREQ
The BatchServer's logconfig.apm.xml adds a log in BatchServer/PerfLogs to capture data for the framework. Does that path exist and are users able to write to it?
--
Greg Wootton | Principal Systems Technical Support Engineer
cesargf80
Fluorite | Level 6

@gwootton  Thanks for your reply.

 

1. BatchServer/PerfLogs path is avialable.

2. User is having access to write logs into this path.

 

But still getting error message.

 

Pipe command =" SASHOME directory/9.4/sasexe/sas -autoexec  /sasprogram directory/xxxxx.sas"

ERROR: Invalid option value /data/sasconfig/Lev1/SASApp/BatchServer/logconfig.apm.xml for SAS option LOGCONFIGLOC.

ERROR: (SASXKRIN): KERNEL RESOURCE INITIALIZATION FAILED.

ERROR: Unable to initialize the SAS kernel.

gwootton
SAS Super FREQ
is that path correct? (/data/sasconfig/Lev1/SASApp/BatchServer/logconfig.apm.xml)
is the file readable by the users? does it have content?
--
Greg Wootton | Principal Systems Technical Support Engineer
cesargf80
Fluorite | Level 6

@gwootton  yes, path is correct. it is having content also.

gwootton
SAS Super FREQ
I agree with @SASKiwi, you should open a track with technical support so we can take a look at the file and see what is wrong with it.
--
Greg Wootton | Principal Systems Technical Support Engineer
SASKiwi
PROC Star

Try making sure this option is all on the same line and that the XML file exists.

-logconfigloc /data/sasconfig/Lev1/SASApp/BatchServer/logconfig.apm.xml

If that doesn't help then back out the change.

cesargf80
Fluorite | Level 6

@SASKiwi Thank you for your reply.

 

logconfig.apm.xml is avialable.

-logconfigloc /data/sasconfig/Lev1/SASApp/BatchServer/logconfig.apm.xml 

I tried to back out the change , but SAS Environment Manager Frame work processes (ACM and APM ETL processes ) are adding the line automatically for every 30 mins , even after removing it.

 

SASKiwi
PROC Star

@cesargf80  - I suggest you track this to Tech Support.

Sajid01
Meteorite | Level 14

Create a new copy of the file (logconfig.apm.xml )and make the new copy immutable (Not the original one)
Assign this to logconfigloc. Thus you will have-logconfigloc.

Thus if logconfig_imm.apm.xml is the immutable copy, then you will have.

/data/sasconfig/Lev1/SASApp/BatchServer/logconfig_imm.apm.xml.
This way the SAS Environment Manager Frame work processes can read it but not change.

gwootton
SAS Super FREQ
It is not the logconfig.apm.xml file that is being modified.

The log discovery process (Lev1/Web/SASEnvironmentManager/emi-client/bin/log_discovery.sh) is run every 4 hours by the Environment Manager Agent, and will automatically check for the /* EMI BEGIN */ and /* EMI END */ lines in every application server it discovers on the host. If they aren't present it will add them again, with the new log configuration inside it (pointing to logconfig.apm.xml). This is to ensure the log files needed by the APM reports are generated. If you comment out the -logconfigloc line rather than removing it, the log discovery process will not re-add it.
--
Greg Wootton | Principal Systems Technical Support Engineer

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 10 replies
  • 1875 views
  • 1 like
  • 4 in conversation