Closed shriv closed 2 years ago
So, the error you're getting is documented as number 6, here. I'm not sure what you mean by
However, DLL is not in pathext so I'm not sure if this is a problem?
Are you saying the sspiauth.dll file isn't in this directory; C:\Program Files\SASHome\SASFoundation\9.4\core\sasext? But you have a SAS 9 deployment on this machine in this location?
The other thing is that you shouldn't code up the classpath, it's already provided by saspy, so I'm not sure if that might be contributing to any issue either. But the first error seems to have to do with the localhost setting, though the sspiauth.dll has to be found also - that error is number 3 in the above link and isn't what you're getting here. So this still sounds like the etc/host file and the definition of localhost
, just going by the error.
Thanks for your response @tomweber-sas! Apologies I wasn't clearer earlier.
However, DLL is not in pathext I was referring to the note from this issue where there is an explicit point about having the DLL in the pathext variable. I don't have this. I only asked the sysadmin to add the path to the sspiauth.dll.
I made the change in the hosts file. Copied below and I realise that there is a setting of localhost made by docker for kubernetes. Could that be interfering?
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
# Added by Docker Desktop
XXX.XX.XX.XX host.docker.internal
XXX.XX.XX.XX gateway.docker.internal
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
# For SASPy
127.0.0.1 localhost <host-name>.<dns-suffix>
Yes, that is the problem, docker hijacking 127.0.0.1 and not having it associated with localhost. But, having those 2 lines won't fix it. Just change it to one line like the following: 127.0.0.1 localhost kubernetes.docker.internal That should fix it. I tried this same thing w/ my etc/host and saw the same errors for the different cases; just the docker line, docker line plus your extra line, then only one line with both aliases and that's the only one that works and didn't get the same error as you're getting.
Oh, and I see what you were referring to about the PATHEXT variable. I didn't recognize that, as that's not something you need to do. That was just something a user tried that didn't actually have anything to do with the problem. You don't need to do that. Thanks, Tom
Wonderful! Thanks so much for your help @tomweber-sas ..! I have made the change and got saspy connection working now! :-)
Describe the bug I've gone through a bunch of troubleshooting to connect to SAS via saspy in jupyter notebook and I get the error below. The different trouble-shooting I've done:
C:\Program Files\SASHome\SASFoundation\9.4\core\sasext
to system path. However, DLL is not in pathext so I'm not sure if this is a problem?127.0.0.1 localhost <host-name>.<dns suffix>
sspiauth.dll
to my javapath JIC but no luck.Any assistance would be greatly appreciated and happy to provide more info as needed! Many thanks in advance.
Desktop (please complete the following information):
sascfg_personal