-
Notifications
You must be signed in to change notification settings - Fork 41
Description
Hallo,
I was able to connect to the PI server and had lots of fun with it, until they migrated the server and now I cant get any data out of PI. I have tried a lot but the server administrators keep insisting that nothing has changed so i should be able to connect. I use the standard step by step guide to connect with the pi server and get time series data from data tags on the pi server. This is what I get as the OSI server version:
OSIsoft(r) AF SDK Version: 2.8.0.7444
And after I connect with the server using:
server = PIconnect.PIServer()
All is good, untill i want to get some data:
with PIconnect.PIServer() as server:
points = server.search('*')
for point in points[:10]:
print(point)
Then I get this error:
PIAuthenticationException: Cannot connect to the PI Data Archive. Windows authentication trial failed because the authentication method was not tried. Trust authentication trial failed because insufficient privilege to access the PI Data Archive.
at OSIsoft.AF.PI.PIException.ConvertAndThrowException(PIServer piServer, Exception ex, String message)
at OSIsoft.AF.PI.PIServer.RemoteConnect(AFConnectionPreference preference, NetworkCredential credential, PIAuthenticationMode authenticationMode)
at OSIsoft.AF.PI.PIServer.InternalConnect(Int32 numRetries, IWin32Window owner, AFConnectionPreference preference, NetworkCredential credential, PIAuthenticationMode authenticationMode, Boolean checkConnectingAsSameUser)
at OSIsoft.AF.PI.PIServer.AutoConnect(Boolean allowDirectConnect, Boolean force)
Can anyone help me with this please?
Kind regads,
Raz