All,
i am getting below erro, when I try to run FSLOGIN macro. see below
28 %FSLOGIN(USER=test, PASSWORD=XXXX,
29 SASENVIRONMENT=default);
NOTE: The data set WORK.FSKEYDAT has 1 observations and 3 variables.
NOTE: Compressing data set WORK.FSKEYDAT increased size by 100.00 percent.
Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
NOTE: There were 1 observations read from the data set WORK.FSKEYDAT.
NOTE: The data set WORK.FSKEYDAT has 1 observations and 3 variables.
NOTE: Compressing data set WORK.FSKEYDAT increased size by 100.00 percent.
Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
NOTE: Assuming default middle-tier name based on login type: fsmain
NOTE: Could not load classloader fsmain. Using default classloader.
NOTE: Could not initialize classpath. Classpath variable is not set.
ERROR: Could not initialize classpath from picklist file.
NOTE: The DATA step has been abnormally terminated.
java.io.FileNotFoundException: /opt/sas/home/SASVersionedJarRepository/picklist/forecastbat/forecastbat.txt (Permission denied)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
2 The SAS System Monday, September 14, 2020 08:07:00 PM
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileReader.<init>(FileReader.java:72)
NOTE: DATA statement used (Total process time):
real time 1.00 seconds
cpu time 0.00 seconds
/opt/sas/home/SASVersionedJarRepository/picklist/forecastbat/forecastbat.txt (Permission denied)
Seems like the root cause - can you confirm the user executing the code (so your user, or the spawner identity for stored process / pooled workspace server) can see the contents of that file?
Now I am getting diffrent ERROR
NOTE: Assuming default middle-tier name based on login type: fsmain
NOTE: Could not load classloader fsmain. Using default classloader.
NOTE: Could not initialize classpath. Classpath variable is not set.
ERROR: Exception caught in FSLOGIN.
ERROR: NO_ENVIRONMENTS
com.sas.analytics.forecasting.client.api.exceptions.ForecastingException: NO_ENVIRONMENTS
at
com.sas.analytics.forecasting.client.api.ForecastingSessionFactory.createForecastingSession(ForecastingSessionFactory.java:156)
2 The SAS System Monday, September 14, 2020 08:56:00 PM
at com.sas.analytics.forecasting.bridge.macros.ForecastStudioBridge.login(ForecastStudioBridge.java:3799)
Caused by: java.lang.IllegalStateException: NO_ENVIRONMENTS
... 2 more
NOTE: DATA statement used (Total process time):
real time 2.77 seconds
cpu time 0.00 seconds
sounds like no sas-environment.xml was specified during the deployment.
you can specify it after the fact in the sassw.config
you folks probably won't need this as I see a lot progress here thanks to @dpage
The last error was queried in the communities in the past, it was resolved by SAS Tech Support, it seems a configuration issue indeed: https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/com-sas-analytics-forecasting-client...
I would personally give a chance to this troubleshooting guide, at least in order to retrieve more information.
https://support.sas.com/kb/62/516.html
Is the Forecast Studio Client (web and desktop) working OK?
Edit/Update: did you notice this?
NOTE: Assuming default middle-tier name based on login type: fsmain
NOTE: Could not load classloader fsmain.
This made me thing about a couple of things I remember from the past.
Have you tried to override a custom value for the option MIDTIER=label ?
2. https://support.sas.com/kb/20/435.html
This is an note for another solution, not forecast, but it would be interesting to learn why cannot find the class fsmain or its loader. I wonder if you can re-apply this for fsmain. You might need to find first the location of this jar.
Well, that is very relevant information, it would have been nice if reported in the beginning. But, as they say, better late than never! 😉
Did you have the chance to read and go through the instructions? https://tshf.sas.com/techsup/download/hotfix/HF2/security/sas-security-update-2020-08-M7/security-up...
It mentions a couple of things: install hotfixes, in order, once finished, rebuild and redeploy web applications, attention to horizontal and vertical clusters, etc.
In addition, and only in the case you actually did all of above, I wonder if some permissions are not in place or certificates (specially if you have SSL). But from the error it seems to me as the rebuild and redeploy is missing.
We've hit all the obvious things I think there are to check - a tech support track is the best next step.
Thanks for this,
We have raised with SAS Tech.Keep you posted
Many thanks for sharing your solution, @sathya66
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
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.