BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
keerthi78890976
Obsidian | Level 7

Hi All,

 

We are not able to start LASR server from GUI , could you please help on this issue. Below is the log.Status is coming up as success but LASR server is not starting. By running the libname from SASFoundation and EG, we are able to start the server untill the session lasts.

 

0
-------------- Task Summary --------------
SUCCESS (SASJob PreCode)
SUCCESS (Store Process ID)
SUCCESS (Start Server)
SUCCESS (Wait For Server)
SUCCESS (Remove Process ID)

-------------- LOG: SASJob PreCode --------------

1 The SAS System 04:18 Wednesday, June 19, 2019

NOTE: Copyright (c) 2016 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software 9.4 (TS1M6)
Licensed to ORLANDO MAGIC LTD--AMAZON CLOUD, Site 70095169.
NOTE: This session is executing on the Linux 3.10.0-957.12.2.el7.x86_64 (LIN X64) platform.

 

NOTE: Analytical products:

SAS/STAT 15.1
SAS/ETS 15.1
SAS/OR 15.1
SAS/IML 15.1

NOTE: Additional host information:

Linux LIN X64 3.10.0-957.12.2.el7.x86_64 #1 SMP Fri Apr 19 21:09:07 UTC 2019 x86_64 Red Hat Enterprise Linux Server release 7.6
(Maipo)

You are running SAS 9. Some SAS 8 files will be automatically converted
by the V9 engine; others are incompatible. Please see
http://support.sas.com/rnd/migration/planning/platform/64bit.html

PROC MIGRATE will preserve current SAS file attributes and is
recommended for converting all your SAS libraries from any
SAS 8 release to SAS 9. For details and examples, please see
http://support.sas.com/rnd/migration/index.html


This message is contained in the SAS news file, and is presented upon
initialization. Edit the file "news" in the "misc/base" directory to
display site-specific news and information in the program log.
The command line option "-nonews" will prevent this display.

 


NOTE: SAS Initialization used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds

NOTE: The autoexec file, /sas/sasconfig/Lev1/SASApp1/WorkspaceServer/autoexec.sas, was executed at server initialization.
1 %let _ENCODING=UTF-8;
2 options VALIDVARNAME=ANY VALIDMEMNAME=EXTEND;
3 /* Status Checkpoint Macro */
4 %macro statuscheckpoint(maxokstatus=4, varstocheck=SYSERR SYSLIBRC SYSDBRC );
5
6 %GLOBAL LASTSTEPRC;
7 %LET pos=1;
8 %let var=notset;
9 %let var=%SCAN(&varstocheck.,&pos.);
10 %DO %WHILE ("&VAR." ne "");
11 /* Retrieve the next return code to check */
12 %if (%symexist(&VAR.)) %then %do;
13 %let val=&&&VAR..;
14 %if (("&VAL." ne "") and %eval(&VAL. > &maxokstatus.)) %then %do;
15 %put FAIL = &VAR.=&VAL. / SYSCC=&SYSCC.;
16 %let LASTSTEPRC=&VAL.;
2 The SAS System 04:18 Wednesday, June 19, 2019

17 %end;
18 %end;
19 %let pos = %eval(&pos.+1);
20 %let var=%SCAN(&varstocheck.,&pos.);
21 %END;
22 %mend;
23 /* Store the process ID in an external file */
24 %macro CreateProcessIDFile(pidfl);
25
26 %global AL_PIDFILE;
27 data _null_;
28 file "&pidfl." PERMISSION='A::u::rw-,A::g::rw-,A::o::rw-';
29 put "&SYSJOBID.";
30 run;
31
32 %if ( &SYSERR. le 4 ) %then
33 /* Store away the PIDFILE for future reference */
34 %let AL_PIDFILE=&pidfl.;
35
36 %mend;
37 /* Remove process ID file */
38
39 %macro DeleteProcessIDFile;
40 %if %SYMEXIST(AL_PIDFILE) %then %do;
41 data _null_;
42 fname="pidfile";
43 rc=filename(fname, "&AL_PIDFILE.");
44 if rc=0 and fexist(fname) then
45 rc=fdelete(fname);
46 rc=filename(fname);
47 run;
48 %if ( &SYSERR. eq 0 ) %then %SYMDEL AL_PIDFILE;
49 %end;
50 %mend;

-------------- LOG: Store Process ID --------------

3 The SAS System 04:18 Wednesday, June 19, 2019

51 %statuscheckpoint;
FAIL = SYSDBRC=28000 / SYSCC=0
52 /* Skip Next Step If We Have a Bad Status Code */
53 %macro codeBody;
54 %GLOBAL LASTSTEPRC;
55 %if %symexist(LASTSTEPRC) %then %do;
56 %if %eval(&LASTSTEPRC. <= 4) %then %do;
57
58 %CreateProcessIDFile(/sas/sasconfig/Lev1/Applications/SASVisualAnalytics/VisualAnalyticsAdministrator/Monitoring
58 ! /PIDs/smp_xxxxx_10011.pid);
59 %end;
60 %end;
61 %mend;
62 %codeBody;

-------------- LOG: Start Server --------------

4 The SAS System 04:18 Wednesday, June 19, 2019

63 %statuscheckpoint;
FAIL = SYSDBRC=28000 / SYSCC=0
64 /* Skip Next Step If We Have a Bad Status Code */
65 %macro codeBody;
66 %GLOBAL LASTSTEPRC;
67 %if %symexist(LASTSTEPRC) %then %do;
68 %if %eval(&LASTSTEPRC. <= 4) %then %do;
69
70 /* Start the single-machine LASR server process */
71 libname ml sasiola startserver=
72 (
73 PATH="/sas/sasconfig/Lev1/AppData/SASVisualAnalytics/VisualAnalyticsAdministrator/sigfiles"
74 )
75
76 host="xxxxx.xxxxx.com" port=10011
77 signer="https://xxxxx.com:8343/SASLASRAuthorization"
78 ;
79
80 %end;
81 %end;
82 %mend;
83 %codeBody;

-------------- LOG: Wait For Server --------------

5 The SAS System 04:18 Wednesday, June 19, 2019

84 %statuscheckpoint;
FAIL = SYSDBRC=28000 / SYSCC=0
85 /* Skip Next Step If We Have a Bad Status Code */
86 %macro codeBody;
87 %GLOBAL LASTSTEPRC;
88 %if %symexist(LASTSTEPRC) %then %do;
89 %if %eval(&LASTSTEPRC. <= 4) %then %do;
90
91 /* Keep the SAS session up until SERVERTERM received */
92 proc vasmp;
93 serverwait port=10011;
94 quit;
95 %end;
96 %end;
97 %mend;
98 %codeBody;

-------------- LOG: Remove Process ID --------------

6 The SAS System 04:18 Wednesday, June 19, 2019

99 %DeleteProcessIDFile;
-------------- SAS CODE --------------
%let _ENCODING=UTF-8;
options VALIDVARNAME=ANY VALIDMEMNAME=EXTEND;
/* Status Checkpoint Macro */
%macro statuscheckpoint(maxokstatus=4, varstocheck=SYSERR SYSLIBRC SYSDBRC );

%GLOBAL LASTSTEPRC;
%LET pos=1;
%let var=notset;
%let var=%SCAN(&varstocheck.,&pos.);
%DO %WHILE ("&VAR." ne "");
/* Retrieve the next return code to check */
%if (%symexist(&VAR.)) %then %do;
%let val=&&&VAR..;
%if (("&VAL." ne "") and %eval(&VAL. > &maxokstatus.)) %then %do;
%put FAIL = &VAR.=&VAL. / SYSCC=&SYSCC.;
%let LASTSTEPRC=&VAL.;
%end;
%end;
%let pos = %eval(&pos.+1);
%let var=%SCAN(&varstocheck.,&pos.);
%END;
%mend;
/* Store the process ID in an external file */
%macro CreateProcessIDFile(pidfl);

%global AL_PIDFILE;
data _null_;
file "&pidfl." PERMISSION='A::u::rw-,A::g::rw-,A::o::rw-';
put "&SYSJOBID.";
run;

%if ( &SYSERR. le 4 ) %then
/* Store away the PIDFILE for future reference */
%let AL_PIDFILE=&pidfl.;

%mend;
/* Remove process ID file */

%macro DeleteProcessIDFile;
%if %SYMEXIST(AL_PIDFILE) %then %do;
data _null_;
fname="pidfile";
rc=filename(fname, "&AL_PIDFILE.");
if rc=0 and fexist(fname) then
rc=fdelete(fname);
rc=filename(fname);
run;
%if ( &SYSERR. eq 0 ) %then %SYMDEL AL_PIDFILE;
%end;
%mend;
%statuscheckpoint;
/* Skip Next Step If We Have a Bad Status Code */
%macro codeBody;
%GLOBAL LASTSTEPRC;
%if %symexist(LASTSTEPRC) %then %do;
%if %eval(&LASTSTEPRC. <= 4) %then %do;

%CreateProcessIDFile(/sas/sasconfig/Lev1/Applications/SASVisualAnalytics/VisualAnalyticsAdministrator/Monitoring/PIDs/smp_xxxxx_10011.pid);
%end;
%end;
%mend;
%codeBody;

%statuscheckpoint;
/* Skip Next Step If We Have a Bad Status Code */
%macro codeBody;
%GLOBAL LASTSTEPRC;
%if %symexist(LASTSTEPRC) %then %do;
%if %eval(&LASTSTEPRC. <= 4) %then %do;

/* Start the single-machine LASR server process */
libname ml sasiola startserver=
(
PATH="/sas/sasconfig/Lev1/AppData/SASVisualAnalytics/VisualAnalyticsAdministrator/sigfiles"
)

host="xxxxx.xxxxx.com" port=10011
signer="https://xxxxx.com:8343/SASLASRAuthorization"
;

%end;
%end;
%mend;
%codeBody;

%statuscheckpoint;
/* Skip Next Step If We Have a Bad Status Code */
%macro codeBody;
%GLOBAL LASTSTEPRC;
%if %symexist(LASTSTEPRC) %then %do;
%if %eval(&LASTSTEPRC. <= 4) %then %do;

/* Keep the SAS session up until SERVERTERM received */
proc vasmp;
serverwait port=10011;
quit;
%end;
%end;
%mend;
%codeBody;

%DeleteProcessIDFile;
No reload-on-start tables were identified for server LASR Analytic Server - xxxxx.

1 ACCEPTED SOLUTION

Accepted Solutions
alexal
SAS Employee

@keerthi78890976 ,

 

You have to fix these errors with your pre-assigned libraries:

 

...
ERROR: Libref STGTM_1 failed to assign from logical server.
ERROR: CLI error trying to establish connection: [unixODBC]Incorrect username
or password was specified.
...
ERROR: Libref SRCCRM_1 failed to assign from logical server.
ERROR: CLI error trying to establish connection: [unixODBC][Microsoft][ODBC
Driver 17 for SQL Server][SQL Server]Login failed for user ''.
ERROR: Libref SRCWEB_1 failed to assign from logical server.
ERROR: CLI error trying to establish connection: [unixODBC][Microsoft][ODBC
Driver 17 for SQL Server][SQL Server]Login failed for user ''.
...
ERROR: Libref SRCRT_1 failed to assign from logical server.
ERROR: CLI error trying to establish connection: [unixODBC][Microsoft][ODBC
Driver 17 for SQL Server][SQL Server]Login failed for user ''.
...

View solution in original post

6 REPLIES 6
alexal
SAS Employee

@keerthi78890976 ,

FAIL = SYSDBRC=28000 / SYSCC=0

 

Looks like you have a pre-assigned library to DBMS and the workspace server has failed to assign it. That is preventing the LASR server from starting up.

keerthi78890976
Obsidian | Level 7

Hi Alex,

Thanks for responding. There are few pre-assigned libraries, but SASApp is opening properly when the libraries are pre-assigned. Are there any libraries that shouldn't be pre-assigned for LASR to work ? LASR libraries are not pre-assigned.

alexal
SAS Employee

@keerthi78890976 ,

There are few pre-assigned libraries

Based on an error I saw, one of those libraries cannot be assigned properly. Please login to SASApp1 via SSH, run a command shown below and show me the output:

 

/sas/sasconfig/Lev1/SASApp1/WorkspaceServer/WorkspaceServer.sh -nodms
keerthi78890976
Obsidian | Level 7

Hi Alex,

 

Below is the output:

 

NOTE: Libref SASDATA successfully assigned from logical server.
NOTE: Libref WRSDIST successfully assigned from logical server.
NOTE: Libref WRSTEMP successfully assigned from logical server.
NOTE: Libref MATABLES successfully assigned from logical server.
NOTE: Libref MASTATIC successfully assigned from logical server.
NOTE: Libref MAMOLIB successfully assigned from logical server.
NOTE: Libref VALIB successfully assigned from logical server.
NOTE: Libref CISTAGLB successfully assigned from logical server.
NOTE: Libref STPSAMP successfully assigned from logical server.
NOTE: Libref STG_NBA successfully assigned from logical server.
NOTE: Libref STGAMP_1 successfully assigned from logical server.
NOTE: Libref STGCRM_1 successfully assigned from logical server.
NOTE: Libref STGET_1 successfully assigned from logical server.
NOTE: Libref STGEXP_1 successfully assigned from logical server.
NOTE: Libref STGGA_1 successfully assigned from logical server.
NOTE: Libref SPVO successfully assigned from logical server.
NOTE: Libref STGLA_1 successfully assigned from logical server.
NOTE: Libref STGCON_1 successfully assigned from logical server.
NOTE: Libref STGRT_1 successfully assigned from logical server.
NOTE: Libref STGWRT_1 successfully assigned from logical server.
NOTE: Libref STGQP_1 successfully assigned from logical server.
NOTE: Libref STGSM_1 successfully assigned from logical server.
ERROR: Libref STGTM_1 failed to assign from logical server.
ERROR: CLI error trying to establish connection: [unixODBC]Incorrect username
or password was specified.
NOTE: Libref STGTM_2 successfully assigned from logical server.
NOTE: Libref STGVN_1 successfully assigned from logical server.
NOTE: Libref STG_NBDL successfully assigned from logical server.
NOTE: Libref STG_SSV2 successfully assigned from logical server.
ERROR: Libref SRCCRM_1 failed to assign from logical server.
ERROR: CLI error trying to establish connection: [unixODBC][Microsoft][ODBC
Driver 17 for SQL Server][SQL Server]Login failed for user ''.
ERROR: Libref SRCWEB_1 failed to assign from logical server.
ERROR: CLI error trying to establish connection: [unixODBC][Microsoft][ODBC
Driver 17 for SQL Server][SQL Server]Login failed for user ''.
NOTE: Libref BSTR_WA successfully assigned from logical server.
ERROR: Libref SRCRT_1 failed to assign from logical server.
ERROR: CLI error trying to establish connection: [unixODBC][Microsoft][ODBC
Driver 17 for SQL Server][SQL Server]Login failed for user ''.

NOTE: AUTOEXEC processing beginning; file is
/sas/sasconfig/Lev1/SASApp1/WorkspaceServer/autoexec.sas.

NOTE: Libref MAMISC was successfully assigned as follows:
Engine: V9
Physical Name:
/sas/sasconfig/Lev1/Applications/SASCustomerIntelligence/CustomerIntelli
genceCommon/Data/MAMisc

NOTE: AUTOEXEC processing completed.

alexal
SAS Employee

@keerthi78890976 ,

 

You have to fix these errors with your pre-assigned libraries:

 

...
ERROR: Libref STGTM_1 failed to assign from logical server.
ERROR: CLI error trying to establish connection: [unixODBC]Incorrect username
or password was specified.
...
ERROR: Libref SRCCRM_1 failed to assign from logical server.
ERROR: CLI error trying to establish connection: [unixODBC][Microsoft][ODBC
Driver 17 for SQL Server][SQL Server]Login failed for user ''.
ERROR: Libref SRCWEB_1 failed to assign from logical server.
ERROR: CLI error trying to establish connection: [unixODBC][Microsoft][ODBC
Driver 17 for SQL Server][SQL Server]Login failed for user ''.
...
ERROR: Libref SRCRT_1 failed to assign from logical server.
ERROR: CLI error trying to establish connection: [unixODBC][Microsoft][ODBC
Driver 17 for SQL Server][SQL Server]Login failed for user ''.
...
keerthi78890976
Obsidian | Level 7

Hi Alex,

 

Thanks alot. Resolving pre-assigining fixed the issue.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 3704 views
  • 0 likes
  • 2 in conversation