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

Many DBA Dash errors in Tool #1147

Open
chaithanyagade opened this issue Nov 27, 2024 · 4 comments
Open

Many DBA Dash errors in Tool #1147

chaithanyagade opened this issue Nov 27, 2024 · 4 comments

Comments

@chaithanyagade
Copy link

I could see many Primary key violation errors form DBA Dash Errors (24 hours). Could you please share any SQL Script to remove the duplicate key errors.

image

@DavidWiseman
Copy link
Collaborator

Hi, you might get these errors if you have two instances of the service running. Have you installed it as a service but also have it running as a console application? Or maybe setup two services monitoring the same instances?

@chaithanyagade
Copy link
Author

chaithanyagade commented Nov 28, 2024 via email

@DavidWiseman
Copy link
Collaborator

DavidWiseman commented Nov 28, 2024

First check on the machine where you installed DBA Dash service. Open Task Manager and go to the Details tab. Sort by Name and see how many copies of DBADashService.exe are running. If you add the "Command Line" column, you can see where they are running from. If you have two and they are both running from the same location, someone might be running it as a console application - check the user name column.

DBA Dash logs information about the service used to import data. You could try this query which will show the agents associated with active instances.

SELECT * 
FROM dbo.DBADashAgent A
WHERE EXISTS(SELECT 1 
		FROM dbo.Instances I
		WHERE I.ImportAgentID = A.DBADashAgentID
		AND I.IsActive=1
		)

It's last one wins so if there are two agents running it's possible only one of them might be visible when you run the above query and it might keep changing between them. If you remove the WHERE clause from the above query it will give you the full list of possibilities.

SELECT * 
FROM dbo.DBADashAgent A

The other possibility I can think of is that the instance is listed twice in the source connections. This might occur if you have slightly different connection strings that point to the same instance.

Hope this helps,

David

@chaithanyagade
Copy link
Author

chaithanyagade commented Nov 29, 2024 via email

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