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

duplicate name exists on network #743

Open
leocubs89 opened this issue Apr 23, 2024 · 1 comment
Open

duplicate name exists on network #743

leocubs89 opened this issue Apr 23, 2024 · 1 comment

Comments

@leocubs89
Copy link

leocubs89 commented Apr 23, 2024

Bug report

OSIsoft.AF.PI.PIConnectionException: [52] You were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name.

Description

I was running my code in a loop

While ...
with PI.PIServer(server=region) as server:
........

and I would get the error above. I can change the loop to only run the with three times but I still get the error.
real kicker is sometimes I will get the error right away if I try to rerun my code for a while. Anyway to make sure I am not still connected to the network?

To Reproduce

Steps to reproduce the behavior:

While ...
with PI.PIServer(server=region) as server:
........

Expected behavior

I want to connect to the PI server

Possible solutions

I need to make sure I am signed out or disconnect within my code

Screenshots

If applicable, add screenshots to help explain your problem.

System

  • OS: [e.g. Windows, Linux]
  • Python version: [Python 3.x]
  • PIconnect version: [e.g. 0.10.0]

Additional context

Add any other context about the problem here.

@Hugovdberg
Copy link
Owner

you could try calling server.connection.Disconnect() manually, although that should execute anyway once the with block ends. However, given the description on the exception I suspect a network configuration error which your IT department should look into..

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

No branches or pull requests

2 participants