Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session crashed since 0.17.3 on Windows #271

Closed
Jiefei-Wang opened this issue Sep 2, 2022 · 8 comments
Closed

session crashed since 0.17.3 on Windows #271

Jiefei-Wang opened this issue Sep 2, 2022 · 8 comments
Labels

Comments

@Jiefei-Wang
Copy link

Jiefei-Wang commented Sep 2, 2022

Hello, thanks for making this interesting project. I updated the server to 0.17.4 and observed a fatal error. The session crashes whenever I try to run any SAS code. There is no output on the web. I tried all the old versions and found out that the latest runnable one is 0.17.2, so something is not right since 0.17.3. Here is the error from 0.17.3. I hope this can be helpful to locate the issue. Please let me know if there is anything I need to post.

Startup message

sasLoc:  C:/Program Files/SASHome/SASFoundation/9.4/sas.exe
sasDrive:  C:\Users\jiewang\Documents\SAS\sasjs_root
sasLogs:  C:\Users\jiewang\Documents\SAS\sasjs_root\logs
runTimes:  [ 'sas' ]
Writing Logs to : C:\Users\jiewang\Documents\SAS\sasjs_root\logs\20220902160241.log
All CORS Requests are enabled for: []
Copying Macros from container to drive(tmp).
Macros Drive Path: C:\Users\jiewang\Documents\SAS\sasjs_root\sasjscore
App Stream Config loaded!
PROTOCOL:  http
⚡️[server]: Server is running at http://localhost:5000

Error when run SAS code

session crashed 20220902160247-93675-1662134567126 Error: Command failed: C:/Program Files/SASHome/SASFoundation/9.4/sas.exe -SYSIN C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160247-93675-1662134567126\code.sas -LOG C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160247-93675-1662134567126\log.log -PRINT C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160247-93675-1662134567126\output.lst -WORK C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160247-93675-1662134567126 -AUTOEXEC C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160247-93675-1662134567126\autoexec.sas -nosplash -icon -nodms -noterminal -nostatuswin -SASINITIALFOLDER -nologo

session crashed! while waiting to be ready Error: Command failed: C:/Program Files/SASHome/SASFoundation/9.4/sas.exe -SYSIN C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160247-93675-1662134567126\code.sas -LOG C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160247-93675-1662134567126\log.log -PRINT C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160247-93675-1662134567126\output.lst -WORK C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160247-93675-1662134567126 -AUTOEXEC C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160247-93675-1662134567126\autoexec.sas -nosplash -icon -nodms -noterminal -nostatuswin -SASINITIALFOLDER -nologo

session crashed 20220902160248-98959-1662134568638 Error: Command failed: C:/Program Files/SASHome/SASFoundation/9.4/sas.exe -SYSIN C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160248-98959-1662134568638\code.sas -LOG C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160248-98959-1662134568638\log.log -PRINT C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160248-98959-1662134568638\output.lst -WORK C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160248-98959-1662134568638 -AUTOEXEC C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160248-98959-1662134568638\autoexec.sas -nosplash -icon -nodms -noterminal -nostatuswin -SASINITIALFOLDER -nologo

session crashed! while waiting to be ready Error: Command failed: C:/Program Files/SASHome/SASFoundation/9.4/sas.exe -SYSIN C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160248-98959-1662134568638\code.sas -LOG C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160248-98959-1662134568638\log.log -PRINT C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160248-98959-1662134568638\output.lst -WORK C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160248-98959-1662134568638 -AUTOEXEC C:\Users\jiewang\Documents\SAS\sasjs_root\sessions\20220902160248-98959-1662134568638\autoexec.sas -nosplash -icon -nodms -noterminal -nostatuswin -SASINITIALFOLDER -nologo
@allanbowe
Copy link
Member

Hi @Jiefei-Wang - thanks for raising! We don't have windows so was difficult to test this one, I believe I know where the issue is, looking into it now

allanbowe added a commit that referenced this issue Sep 2, 2022
fix: SASINITIALFOLDER split over 2 params, closes #271
@allanbowe allanbowe reopened this Sep 2, 2022
@allanbowe
Copy link
Member

@Jiefei-Wang - version 0.17.5 should be available in a minute or two, if you can confirm it's working fine I'll close the ticket

github-actions bot pushed a commit that referenced this issue Sep 2, 2022
## [0.17.5](v0.17.4...v0.17.5) (2022-09-02)

### Bug Fixes

* SASINITIALFOLDER split over 2 params, closes [#271](#271) ([393b5ea](393b5ea))
@sasjsbot
Copy link

sasjsbot commented Sep 2, 2022

🎉 This issue has been resolved in version 0.17.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Jiefei-Wang
Copy link
Author

Jiefei-Wang commented Sep 2, 2022

Hello @allanbowe, thanks for the quick response! The problem has been fixed!

I just start using SASjs so I have another simple question. If I print the table from the localhost web interface, I can see the printed table in text format from the log panel, there is no output like the regular SAS output. Is it normal? My ultimate goal is to use SASjs in Visual Studio Code. I have installed the SASjs extension, but VS code also gives me the text output. Is there any way to see the result in a pretty format? Thanks!

@allanbowe
Copy link
Member

I did reply to this (by email) but seems it didn't get attached to the issue.

If you want this right now, I suggest writing your ODS output to the _WEBOUT fileref.

In the meantime we'll look at supporting the output destination as a first class citizen in SASjs Server. It is also requested here: sasjs/vscode-extension#336

@allanbowe
Copy link
Member

@Jiefei-Wang - if you are just wanting to view tables in SAS, you can also try Data Controller. Just download the server.json.zip file from here: https://git.4gl.io/dc/deploy

And upload it to appStream.

@allanbowe
Copy link
Member

allanbowe commented Oct 11, 2022 via email

@allanbowe
Copy link
Member

@Jiefei-Wang - the latest version of SASjs Server now supports PRINT (ODS) output in Studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants