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
SAS kernel does not work on Juypter - local host #93
Comments
Ok, so in a python kernel, can you successfully run the following? Can you show the code and results.
Also, do you have the path to the sspiauth.dll in your System Path? Can you confirm that? Thanks, |
Hi tomweber, Thanks very much for reply and attention. In python kerner, the sas cannot run. see the description below. I also attached the PDF file. sspiauth.dll is in my system path. I double checked the system variable, and try to make sure the command pump can access the file. See the picture in file Error message in python kernel.pdf : `The application could not log on to the server. The server process did not start. Attempted to run program java with the following parameters:['java', '-classpath', 'D:/Program Files/SASHome/SASDeploymentManager/9.4/products/deploywiz__94250__prt__xx__sp0__1/deploywiz/sas.svc.connection.jar;D:/Program Files/SASHome/SASDeploymentManager/9.4/products/deploywiz__94250__prt__xx__sp0__1/deploywiz/log4j.jar;D:/Program Files/SASHome/SASDeploymentManager/9.4/products/deploywiz__94250__prt__xx__sp0__1/deploywiz/sas.security.sspi.jar;D:/Program Files/SASHome/SASDeploymentManager/9.4/products/deploywiz__94250__prt__xx__sp0__1/deploywiz/sas.core.jar;D:/ProgramData/Miniconda3/Lib/site-packages/saspy/java/saspyiom.jar', 'pyiom.saspy2j', '-host', 'localhost', '-stdinport', '64810', '-stdoutport', '64811', '-stderrport', '64812', '-zero', ''] Be sure the path to sspiauth.dll is in your System PATH No SAS process attached. SAS process has terminated unexpectedly.
|
Ok, thanks, so this isn't really a sas_kernel issue, saspy can't connect to your SAS yet, so we have to start there. What SAS do you have installed? Is it Base SAS or just a client, like EG? I've ggoled the error message, as that's not one I've seen before. Most issues I see are all with clients trying to connect to a remote IOM server of some kind. Thanks, |
Hi tomweber, Thanks very much for help me this.
Thanks for your help. Best regards |
Ok, so that looks like it should be able to work then. I haven't seen this error before. What version of java do you have? I don't see anything here to make me suspicious of java though. We'll get it figured out! |
So, I don't see anything out of the ordinary w/ your java, SAS, python, saspy or saspy config. This all should just be working. So, there's got to be something unusual about your environment. I'm checking w/ IOM folks here about how you could be getting this error trying to make a local connection. And, the network pop up you're getting is also a suspicious clue too. I don't suspect java itself. This is a personal machine on your corporate network? And the fact that this error only 'seems' (don't know enough yet) to be associated with remote IOM connections, if odd. This 'should' all just be localhost, but there seems to be something else going on here. Ok, got an idea from one of our guys. So, in the windows registry is the command to start SAS for this local IOM connection I'm trying to do. I've seen a problem a few times where a user doesn't have this in their registry and they get this error: In the troubleshooting section of the doc, this is documented with the workaround. This isn't what you're getting, but the thought is, if you have a valid command there that is being used, but it isn't (effectively) sas.exe, but rather something that is trying to access something else (remote connection), then maybe that could be why you're getting some network issue and an error that seems to be associated w/ a remote connection to somewhere. So, lets try the following and see what happens. Add the following key to your winlocal config definition and edit the correct path to your sas.exe, then give it a try again; python shell (less other pieces for now).
I'll track down what the key is in the registry so we can look to see what's there too. |
you need to add a ',' comma in your config definition to the line above this. That;s all. |
Also, just in case. every example, and in my own install, the path they use is always the goofy ~ 8char windows paths (to remove spaces from w/in the path which half the system can't handle on windows), so unless this just works, you might want to try the ~ version.
|
I tracked down the registry key. it's |
well, that looks correct. D: is a physical drive on your PC, right? Not a mounted drive (network)? |
Hi tomweber, Yes, D: is a physical driver on my PC. Thanks for your help. Best regards |
Hi tomweber, You might be off from work just like me. I would like to add last piece of information. You mentioned before it is suspicious I need to allow the Java to access the network when I first load saspy. Since the session is only a local windows session, why the java need to access the permission to connect to public or private network ? This might be a clue? Also, I am using education network for now. I will give a shot when I am back to apartment. Thanks for all the help so far. Have a good day. Best regards |
Hi tomweber, I am so glad you are still online. I tried. However, I did not get any window pops out. There is no log or message comes out. It is just the fail information as before. Best regards |
Since the key is sas.py. I decide to upload it here, so you may see anything I missed. I changed it to txt since github does not support .py file |
any chance you can connet up with a webX to look at this in deatil? |
I'm not convinces that the path in javaparms is ok; windows doesn't work well with blanks in the path. Can I see the dos windo with output from running the command from your registry key, and how about running it using the path above: D:/Program Files/SASHome/SASFoundation/9.4/SAS.EXE Here's one more way to try running it, from powershell: what does that show? |
Hey, webX is a way we can share screens so we can look at this together. It's just over the internet connection to make it easier to look at this at the same time. That last thing needs to be run in powershell, not a DOS cmd prompt. But I still don't see running the command in the DOS shell. If you can email me, I can send you a invite to a webX session. If not, we can keep working like this of course. |
ok, and can I see what happens when you try to run the sas command from a DOS shell: D:\PROGRA2\SASHome\SASFOU1\9.4\SAS.EXE -config "D:\Program Files\SASHome\SASFoundation\9.4\sasv9.cfg" -objectserver -nologo -terminal -noprngetlist I would cut-n-paste this out of your registry itself, not from above. I don't think my cut-n-paste from your post of this is right. |
Ah, well that worked. Does it work also from DOS? I'll have to get some folks here to look at this and see what they think. |
HI tomweber, Thanks very much so far. My remote server also has python, sas and jupyter. I would try to install saspy there, and see what would happen there. In this case, I might be able to query my local IT staff members. I'll get back to you if I get any luck. Best regards |
ok, well that's good then. There's something else we're missing that's interfering with this somehow then. |
Hi tomweber, Thanks. I run the case and checked the windows event viewer. Unfortunately, nothing suspecious were found. I only have windows firewall and it is closed. The other thing I have is a CCcleaner. I do not have other anti-virus software. There is no action needed in windows firewall as well. This seems to become a mysterious now. |
for the powershell case, I was told you probably need to open powershell 'as administrator', that should 'elevate permissions' and get that case to run. And the same windows guy that gave me that thinks it still might be an issue with the paths in the commands. They've seen issues with that after updates. I've been playing around with the command in javaparms myself. When the path isn't good, I do see the same error you are seeing! That's good, actually. I've bee successful running with this (what's in my registry key):
Can you try using this (changed only to get your paths correct), which I think would be this, but double check:
See if that works with your saspy case. You can try it from a DOS shell to be sure it's typed in right: I hope that works. |
|
That (with my paths) worked from DOS, as it does for you, but it also worked from saspy too. It failed with your same error, from saspy, when I didn't have the quotes right or the path wasn't right. So it might just be something with these silly paths in windows. We have a defect open about getting these command paths right in the registry, so it may be something about that tripping it up here. |
If I were genius I'd know what's wrong :) Apparently that is done by running sas with this option '/regserver'. Like this So, Run that then comment out javaparms then run fresh python and try saspy |
yes, if saspy works, then sas_kernel and jupyter all will work! |
Sorry, I am little lost here. What do I need to run and where? |
Ah, from DOS, just run sas.exe /regserver |
DOS can't read the file path ? C:\Users\poten |
of course not, it can't handle blanks in path names! Put quotes aroune the entire "D:...\sas.exe" /regsrever
|
The new register key is: |
I also guess only poor guys like me who installed SAS on other disks rather than C disk would have this problem? |
Man alive! We'll I've learned something new today, so I think I'll quit while I'm ahead! :) :) Thanks! |
Hey tomweber, Yes, I totally agree. I learned a lot of things from this process. Thanks for helping !! Have a good night. Best regards |
I don't think so, I think something changed about these goofy paths and quotes and things with windows. We have a defect about something having to do with that. That's where I got the /regserver from one of our windows guys. He knew about there being a path issue. |
Ok, I've added this to the troubleshooting guide. It's under IOM, in the part with the various IOM Errors, number 5. I will go ahead and close this. If you need to reopen for any reason, no problem. If you run into anything else, just open another issue! Thanks, |
I tried so hard to make the juypter talk to SAS. However, I failed in the last step. Can anyone help me with it. The R kernel and Python kernel works fine on Juypter. The error is:
The application could not log on to the server. The server process did not start.
SAS process has terminated unexpectedly. RC from wait was: 4294967290
SAS Connection failed. No connection established. Double check you settings in sascfg.py file.
Full error screenshot enter image description here
This is my setting in the sascfg.py
cpW = "D:\Program Files\SASHome\SASDeploymentManager\9.4\products\deploywiz__94250__prt__xx__sp0__1\deploywiz\sas.svc.connection.jar"
cpW += ";D:\Program Files\SASHome\SASDeploymentManager\9.4\products\deploywiz__94250__prt__xx__sp0__1\deploywiz\log4j.jar"
cpW += ";D:\Program Files\SASHome\SASDeploymentManager\9.4\products\deploywiz__94250__prt__xx__sp0__1\deploywiz\sas.security.sspi.jar"
cpW += ";D:\Program Files\SASHome\SASDeploymentManager\9.4\products\deploywiz__94250__prt__xx__sp0__1\deploywiz\sas.core.jar"
cpW += ";D:\ProgramData\Miniconda3\Lib\site-packages\saspy\java\saspyiom.jar"
winlocal = {'java' : 'java',
'encoding' : 'windows-1252',
'classpath' : cpW
}
Same question I have posed on stackoverflow:
https://stackoverflow.com/questions/48399232/sas-kernel-does-not-work-on-juypter
The text was updated successfully, but these errors were encountered: