Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Readlock Errors when using Set-ObjectProperty -Tags since Update 23.1.82 #325

Open
zacharylee1952 opened this issue Feb 14, 2023 · 13 comments

Comments

@zacharylee1952
Copy link

Since applying update 23.1.82, it appears that readlock issues occur when using Set-ObjectProperty to set Tags on a bulk amount of sensors at once. The readlocks never auto-correct and the core server service restarts automatically after about 20 minutes to recover.

Example of command where problem occurs: Get-Device "StringToMatch" | Get-Sensor | Set-ObjectProperty -Tags (2 Tags)

Within the webserver.log, the respective API commands look like this (internal specific info omitted for security purposes)

#1157155 DATE TIME IPADDRESSOFREQUEST "USER" PRTG_CORE_NAME 443 GET /editsettings id=List_of_About_200_Sensors&"tags_=TAG1 TAG2"&username=USERNAME&passhash=...

I have a ticket opened with PRTG support at the moment and have delivered the log files. They are currently examining them.

Prior to update 23.1.82, this process ran nightly and never caused issues. Previously, we were on version 22.4.81. I have noticed similar readlock errors in the past, but only when experimenting with the -RawProperty values which the module documentation warns can cause undesired results.

The issue has occurred on all of our core servers. Based on this, it seems to not be related to one specific problem sensor but perhaps the underlying API call changing as part of update 23.1.82.

I will continue to test and will update based on PRTG Support's findings as well.

@zacharylee1952
Copy link
Author

When using multi-edit to set the tags in the GUI, the following displays in the webserver.log:
"443 POST /editsettings want_tags=1&"tags_=ListofTags"&intervalgroup=0&scheduledependency=0&accessgroup=0&id=listofIDs&domultiedit=1&anti-csrf-token=*** 200 "

When using Set-ObjectProperty, the call looks different:
"GET /editsettings id=ListofIDs&"tags_=ListofTags"&username=USERNAME&passhash=*** 200"

Not sure if that makes a difference and was unable to determine based on previous logs from prior PRTG version if the multi-edit always used that same syntax or if it maybe changed now.

@lordmilko
Copy link
Owner

Are you able to advise whether this issue occurs when updating the tags of just a single sensor at once?

@lordmilko
Copy link
Owner

Also, are you able to advise what you mean by "readlock"

I ran the following command on my test server running 23.1.82

get-device ci*|get-sensor | Set-ObjectProperty -Tags a,b

My PRTG Server UI still appears to be functioning normally (although it hasn't been 20 minutes yet)

@zacharylee1952
Copy link
Author

It seems that when updating the tags of just a single sensor at once, the readlock issue does not occur.

If possible, I could change the script to only set sensors that don't already have the desired tags, to reduce the number of sensors being changed at once. However, for some reason I cannot seem to get the Where clause to work as expected. For example, Get-Device Device | Get-Sensor | Where Tags -notlike DesiredTags does not seem to work to only show sensors without the desired tags, it seems to show all sensors on said device(s). I also tried storing the tags individually by sensor ID into a variable and converting ToString() to compare, but the logic still does not work as I expect it to - it thinks that the tags aren't applied when they actually are. Maybe there is a key piece I am missing though?
For example, I have a script that sets the correct scanning intervals based on sensor type, but only applies to those that have drifted from the correct config, where the logic to exclude the ones with the correct scanning interval works. Here is an example of a line from that script: Get-Sensor | Where Interval -ne "00:00:30" | Where DisplayType -eq "SNMP Traffic 64bit" | Where Status -NE "Down" | Set-ObjectProperty Interval "00:00:30"

Here is an output of the core.log entries when the "readlock" issue occurred yesterday. From about 15:22 > 15:41, the errors occurred essentially in a loop until the core server service restarted to correct itself.

2023-02-14 15:22:00.231576 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4416) info: 47
2023-02-14 15:23:00.233182 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3608): ReadLocked LockReason: FetchNodes | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4416) info: 44
2023-02-14 15:23:51.669416 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync_Part2 | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4684) info: 130
2023-02-14 15:24:00.247657 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(6216): ReadLocked LockReason: FetchNodes (4416) info: 47
2023-02-14 15:24:12.455168 INFO TId 4272 Core> Configuration File: Saving
2023-02-14 15:24:51.670570 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4684) info: 47
2023-02-14 15:24:59.905059 INFO TId 7408 Core> Session logout
2023-02-14 15:25:00.248810 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4416) info: 47
2023-02-14 15:25:12.471334 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 3. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 8
2023-02-14 15:25:34.668875 ERRR TId 3328 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (3328) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741828] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(8044): ReadLocked LockReason: FetchNodes | 2. Thread(4828): ReadLocked LockReason: UpdateStates.StateObjectUpdate(2) 2 | 3. Thread(4688): ReadLocked LockReason: DataSync | 4. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (3328) info: 1
2023-02-14 15:25:51.672461 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4684) info: 47
2023-02-14 15:26:00.250699 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread1 (4416) info: 8
2023-02-14 15:26:12.479380 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 44
2023-02-14 15:26:34.670068 ERRR TId 3328 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (3328) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(2908): ReadLocked LockReason: FetchNodes | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (3328) info: 47
2023-02-14 15:26:51.687339 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6384): ReadLocked LockReason: FetchNodes | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4684) info: 1
2023-02-14 15:27:00.265639 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync_Part2 | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 3. Thread(5868): ReadLocked LockReason: ScheduleThread1 (4416) info: 130
2023-02-14 15:27:12.488247 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 47
2023-02-14 15:27:21.692211 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2416) info: 47
2023-02-14 15:27:34.685856 ERRR TId 3328 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (3328) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (3328) info: 1
2023-02-14 15:27:51.689067 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4208): ReadLocked LockReason: FetchNodes | 2. Thread(4688): ReadLocked LockReason: DataSync | 3. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4684) info: 8
2023-02-14 15:28:00.267326 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741829] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(1952): ReadLocked LockReason: FetchNodes | 2. Thread(4688): ReadLocked LockReason: DataSync_Part2 | 3. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 4. Thread(6572): ReadLocked LockReason: FetchNodes | 5. Thread(5868): ReadLocked LockReason: ScheduleThread1 (4416) info: 130
2023-02-14 15:28:12.489014 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 47
2023-02-14 15:28:21.708092 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2416) info: 8
2023-02-14 15:28:34.687421 ERRR TId 3328 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (3328) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (3328) info: 47
2023-02-14 15:28:51.704901 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4684) info: 47
2023-02-14 15:29:00.283153 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4416) info: 6
2023-02-14 15:29:04.713109 ERRR TId 5008 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (5008) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread3 (5008) info: 47
2023-02-14 15:29:12.490468 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 1
2023-02-14 15:29:21.709535 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2416) info: 1
2023-02-14 15:29:34.688129 ERRR TId 3328 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (3328) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (3328) info: 1
2023-02-14 15:29:51.706547 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(6168): ReadLocked LockReason: FetchNodes (4684) info: 1
2023-02-14 15:30:00.298485 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741830] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(7060): ReadLocked LockReason: FetchNodes | 2. Thread(3344): ReadLocked LockReason: FetchNodes | 3. Thread(4688): ReadLocked LockReason: DataSync | 4. Thread(1812): ReadLocked LockReason: FetchNodes | 5. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 6. Thread(5868): ReadLocked LockReason: ScheduleThread1 (4416) info: 1
2023-02-14 15:30:04.720999 ERRR TId 5008 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (5008) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread3 (5008) info: 47
2023-02-14 15:30:12.498311 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(5008): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 1
2023-02-14 15:30:21.717376 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(4684): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2416) info: 6
2023-02-14 15:30:34.704176 ERRR TId 3328 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (3328) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4684): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (3328) info: 1
2023-02-14 15:30:54.206138 ERRR TId 2104 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2104) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(7312): ReadLocked LockReason: UpdateNodeInfo2 | 2. Thread(296): ReadLocked LockReason: TOctLibraryEventSink.ChangeNode | 3. Thread(4684): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2104) info: 47
2023-02-14 15:31:00.299996 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4684): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4416) info: 8
2023-02-14 15:31:09.761928 ERRR TId 6820 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (6820) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4684): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread3 (6820) info: 44
2023-02-14 15:31:12.507381 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(4684): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 47
2023-02-14 15:31:21.726975 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4684): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2416) info: 47
2023-02-14 15:31:34.705565 ERRR TId 3328 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (3328) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4684): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (3328) info: 47
2023-02-14 15:31:54.217987 ERRR TId 2104 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2104) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4644): ReadLocked LockReason: FetchNodes | 2. Thread(4684): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2104) info: 47
2023-02-14 15:32:00.311841 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(4684): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4416) info: 1
2023-02-14 15:32:09.763577 ERRR TId 6820 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (6820) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(4684): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 3. Thread(5868): ReadLocked LockReason: ScheduleThread3 (6820) info: 6
2023-02-14 15:32:12.509609 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(4684): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 3. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 1
2023-02-14 15:32:21.729261 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4684): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2416) info: 47
2023-02-14 15:32:34.706548 ERRR TId 3328 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (3328) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6548): ReadLocked LockReason: FetchNodes | 2. Thread(4688): ReadLocked LockReason: DataSync_Part2 | 3. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (3328) info: 130
2023-02-14 15:32:37.222224 ERRR TId 1980 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1980) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6548): ReadLocked LockReason: FetchNodes | 2. Thread(4688): ReadLocked LockReason: DataSync | 3. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (1980) info: 6
2023-02-14 15:32:54.224173 ERRR TId 2104 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2104) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2104) info: 47
2023-02-14 15:33:00.318038 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4416) info: 8
2023-02-14 15:33:12.525452 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 12
2023-02-14 15:33:21.744593 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(2792): ReadLocked LockReason: FetchNodes | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2416) info: 47
2023-02-14 15:33:26.932184 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4684) info: 1
2023-02-14 15:33:34.707363 ERRR TId 3328 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (3328) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (3328) info: 8
2023-02-14 15:33:37.223060 ERRR TId 1980 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1980) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync_Part2 | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (1980) info: 130
2023-02-14 15:33:54.231007 ERRR TId 2104 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2104) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741828] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4828): ReadLocked LockReason: UpdateStates.StateObjectUpdate(2) 2 | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 3. Thread(684): ReadLocked LockReason: FetchNodes (2104) info: 8
2023-02-14 15:34:00.324867 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741828] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 3. Thread(368): ReadLocked LockReason: FetchNodes | 4. Thread(7596): ReadLocked LockReason: FetchNodes (4416) info: 1
2023-02-14 15:34:12.534131 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 47
2023-02-14 15:34:21.753730 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4628): ReadLocked LockReason: FetchNodes | 2. Thread(4688): ReadLocked LockReason: DataSync_Part2 | 3. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2416) info: 130
2023-02-14 15:34:23.644376 ERRR TId 4836 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4836) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741828] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4688): ReadLocked LockReason: DataSync | 2. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 3. Thread(2768): ReadLocked LockReason: FetchNodes | 4. Thread(6900): ReadLocked LockReason: UpdateStates.StateObjectUpdate(2) 1 (4836) info: 8
2023-02-14 15:34:26.941317 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6820): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4684) info: 47
2023-02-14 15:34:37.224474 ERRR TId 1980 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1980) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync (1980) info: 8
2023-02-14 15:34:40.490137 INFO TId 8072 Core> Session logout
2023-02-14 15:34:54.241945 ERRR TId 2104 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2104) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5008): ReadLocked LockReason: FetchNodes | 3. Thread(4588): ReadLocked LockReason: UpdateNodeInfo2 (2104) info: 47
2023-02-14 15:35:00.335781 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync (4416) info: 8
2023-02-14 15:35:12.543267 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync | 3. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 8
2023-02-14 15:35:21.762834 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync_Part2 (2416) info: 130
2023-02-14 15:35:23.653497 ERRR TId 4836 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4836) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4836) info: 46
2023-02-14 15:35:26.950436 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6184): ReadLocked LockReason: UpdateStates.StateObjectUpdate(2) 0 | 2. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 3. Thread(4512): ReadLocked LockReason: FetchNodes (4684) info: 47
2023-02-14 15:35:31.075498 ERRR TId 6820 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (6820) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6384): ReadLocked LockReason: FetchNodes | 2. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 3. Thread(6900): ReadLocked LockReason: UpdateStates.StateObjectUpdate(2) 1 (6820) info: 47
2023-02-14 15:35:34.006396 INFO TId 6944 Core> Session logout
2023-02-14 15:35:37.225213 ERRR TId 1980 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1980) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync_Part2 (1980) info: 12
2023-02-14 15:35:54.243613 ERRR TId 2104 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2104) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741828] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5428): ReadLocked LockReason: FetchNodes | 3. Thread(4688): ReadLocked LockReason: DataSync_Part2 | 4. Thread(5900): ReadLocked LockReason: DependencyThread (2104) info: 130
2023-02-14 15:36:00.337451 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4416) info: 44
2023-02-14 15:36:06.657121 ERRR TId 1512 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1512) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync_Part2 | 3. Thread(5868): ReadLocked LockReason: ScheduleThread3 (1512) info: 130
2023-02-14 15:36:12.558971 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync_Part2 | 3. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 130
2023-02-14 15:36:21.778609 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2416) info: 1
2023-02-14 15:36:23.669263 ERRR TId 4836 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4836) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync (4836) info: 12
2023-02-14 15:36:26.966191 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4684) info: 47
2023-02-14 15:36:31.091256 ERRR TId 6820 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (6820) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync_Part2 | 3. Thread(6900): ReadLocked LockReason: UpdateStates.StateObjectUpdate(2) 1 (6820) info: 131
2023-02-14 15:36:37.241451 ERRR TId 1980 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1980) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (1980) info: 44
2023-02-14 15:36:54.259488 ERRR TId 2104 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2104) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(7452): ReadLocked LockReason: FetchNodes | 2. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 3. Thread(4688): ReadLocked LockReason: DataSync (2104) info: 8
2023-02-14 15:37:00.353333 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync | 3. Thread(5868): ReadLocked LockReason: ScheduleThread1 (4416) info: 4
2023-02-14 15:37:06.673616 ERRR TId 1512 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1512) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync | 3. Thread(5868): ReadLocked LockReason: ScheduleThread3 (1512) info: 1
2023-02-14 15:37:12.559906 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4272) info: 1
2023-02-14 15:37:21.779496 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2416) info: 47
2023-02-14 15:37:22.513879 INFO TId 8048 Core> Session logout
2023-02-14 15:37:23.670151 ERRR TId 4836 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4836) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4836) info: 47
2023-02-14 15:37:26.967081 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync_Part2 (4684) info: 130
2023-02-14 15:37:31.092134 ERRR TId 6820 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (6820) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(6900): ReadLocked LockReason: UpdateStates.StateObjectUpdate(2) 1 (6820) info: 47
2023-02-14 15:37:37.257290 ERRR TId 1980 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1980) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (1980) info: 47
2023-02-14 15:37:52.933402 ERRR TId 8112 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (8112) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (8112) info: 1
2023-02-14 15:37:54.261538 ERRR TId 2104 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2104) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync | 3. Thread(5900): ReadLocked LockReason: DependencyThread (2104) info: 8
2023-02-14 15:38:00.355423 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4668): ReadLocked LockReason: FetchNodes | 3. Thread(4688): ReadLocked LockReason: DataSync (4416) info: 8
2023-02-14 15:38:06.674122 ERRR TId 1512 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1512) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(5868): ReadLocked LockReason: ScheduleThread3 (1512) info: 47
2023-02-14 15:38:12.560751 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync | 3. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 1
2023-02-14 15:38:21.780337 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2416) info: 47
2023-02-14 15:38:23.686638 ERRR TId 4836 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4836) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4836) info: 47
2023-02-14 15:38:26.983557 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync (4684) info: 1
2023-02-14 15:38:31.093006 ERRR TId 6820 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (6820) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(6900): ReadLocked LockReason: UpdateStates.StateObjectUpdate(2) 1 (6820) info: 47
2023-02-14 15:38:37.273532 ERRR TId 1980 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1980) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (1980) info: 47
2023-02-14 15:38:52.947072 ERRR TId 8112 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (8112) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (8112) info: 47
2023-02-14 15:38:54.275204 ERRR TId 2104 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2104) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2104) info: 47
2023-02-14 15:39:00.369083 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4416) info: 12
2023-02-14 15:39:06.690319 ERRR TId 1512 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1512) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync | 3. Thread(5868): ReadLocked LockReason: ScheduleThread3 (1512) info: 6
2023-02-14 15:39:12.561375 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync | 3. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 8
2023-02-14 15:39:21.796539 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (2416) info: 44
2023-02-14 15:39:23.687216 ERRR TId 4836 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4836) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4836) info: 47
2023-02-14 15:39:26.984125 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4684) info: 1
2023-02-14 15:39:31.109222 ERRR TId 6820 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (6820) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4828): ReadLocked LockReason: UpdateStates.StateObjectUpdate(2) 2 | 2. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (6820) info: 47
2023-02-14 15:39:35.961526 ERRR TId 7928 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (7928) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync (7928) info: 1
2023-02-14 15:39:37.274067 ERRR TId 1980 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1980) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (1980) info: 47
2023-02-14 15:39:52.959759 ERRR TId 8112 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (8112) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741828] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync | 3. Thread(8080): ReadLocked LockReason: FetchNodes | 4. Thread(5900): ReadLocked LockReason: DependencyThread (8112) info: 8
2023-02-14 15:39:54.287919 ERRR TId 2104 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2104) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(6184): ReadLocked LockReason: UpdateStates.StateObjectUpdate(2) 0 | 2. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 3. Thread(4688): ReadLocked LockReason: DataSync_Part2 (2104) info: 130
2023-02-14 15:40:00.381760 ERRR TId 4416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4416) info: 47
2023-02-14 15:40:06.691394 ERRR TId 1512 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1512) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync | 3. Thread(5868): ReadLocked LockReason: ScheduleThread3 (1512) info: 8
2023-02-14 15:40:07.144517 INFO TId 7960 Core> Session logout
2023-02-14 15:40:12.577532 ERRR TId 4272 Core> Wants: RL Autosave - Sort 4398041330192 (4272) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Autosave - Sort" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync_Part2 | 3. Thread(5868): ReadLocked LockReason: ScheduleThread3 (4272) info: 130
2023-02-14 15:40:21.797120 ERRR TId 2416 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2416) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync_Part2 (2416) info: 130
2023-02-14 15:40:23.703412 ERRR TId 4836 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4836) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (4836) info: 47
2023-02-14 15:40:27.000353 ERRR TId 4684 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (4684) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741828] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4828): ReadLocked LockReason: UpdateStates.StateObjectUpdate(2) 2 | 2. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 3. Thread(4788): ReadLocked LockReason: FetchNodes | 4. Thread(4688): ReadLocked LockReason: DataSync (4684) info: 1
2023-02-14 15:40:31.125395 ERRR TId 6820 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (6820) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741827] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(4828): ReadLocked LockReason: UpdateStates.StateObjectUpdate(2) 2 | 2. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 3. Thread(4688): ReadLocked LockReason: DataSync (6820) info: 8
2023-02-14 15:40:35.962285 ERRR TId 7928 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (7928) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync (7928) info: 8
2023-02-14 15:40:37.290445 ERRR TId 1980 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (1980) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741826] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 2. Thread(4688): ReadLocked LockReason: DataSync (1980) info: 4
2023-02-14 15:40:52.963936 ERRR TId 8112 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (8112) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741825] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 (8112) info: 47
2023-02-14 15:40:54.292069 ERRR TId 2104 Core> Wants: RL Core.BL.Users.Tree.Operations.ModifyTreeNode2 4398041330192 (2104) From: RL Warning: The current Thread ran into a timeout while entering a readlock [1073741828] . LockReason: "Core.BL.Users.Tree.Operations.ModifyTreeNode2" Lockinfos: 1. Thread(296): ReadLocked LockReason: TOctLibraryEventSink.ChangeNode | 2. Thread(4828): ReadLocked LockReason: UpdateStates.StateObjectUpdate(2) 2 | 3. Thread(3328): ReadLocked LockReason: Core.BL.Users.Tree.Operations.ModifyTreeNode2 | 4. Thread(4688): ReadLocked LockReason: DataSync_Part2 (2104) info: 130
2023-02-14 15:41:00.229679 WARN TId 4416 Core> PRTG Core Service restarted due to a deadlock event.
2023-02-14 15:41:00.901562 WARN TId 4416 Core> Restart initiated

@zacharylee1952
Copy link
Author

After researching it more, based on similar coding examples that I saw online, it seems the Tags property is an array. It sounds like this means the logic I have for -notlike in the scanning intervals example won't work for comparing the Tags array to exclude items with tags that are already correct.

It sounds like to make the script more granular and only fix the missing/incorrect values instead of it always trying to apply the tags to every single device with that name, I'll have to have the script loop through the tag array in some way after retrieving it from each device. I will try to come up with this more intricate scripting as a possible workaround to the issue.

It still seems like it should be supported to change many values at once if needed (i.e. large/new installations where tagging needs to be ensured as working as expected on hundreds of sensors at once), and it has worked in the past. For sure my code will become more optimized and efficient with the above, but I am still very curious as to how this new PRTG version seems to have broken what worked OK before.

@zacharylee1952
Copy link
Author

Code will be something like:

$Tags = Get-sensor -Device String | Select tags
foreach ($TagSet in $Tags)
{
$TagString = $TagSet.Tags[0] + $TagSet.Tags[1]
if ( $TagString -like "TAGLIST")
{
do nothing
}
else
{
apply tagging
}
}

@zacharylee1952
Copy link
Author

PRTG Support just responded to me with "We've been seeing performance issues on the latest version, none related to using this PS module as we do not support it, but in general, we'll likely have new versions soon to stabilize it."

@zacharylee1952
Copy link
Author

Unfortunately, I can't seem to come up with the required logic to parse the array and then automatically determine only the sensors which have the incorrect tagging set. One big reason is that the parent tags are inherited in the Tags property. In some cases, these are different based on the different objects. It's interesting that most properties can be easily interacted with as strings but in the case of Tags, they are within an array. When exporting them to Excel for example, it does not show the tags but rather System.String[].

As a partial workaround, I can look for "default tags" to target the replacement against, for example the bandwidthsensor tag that's automatically applied when applying the SNMP Traffic sensor: *Get-Device STRING | Get-Sensor -Tags bandwidth | Set-ObjectProperty -Tags MYTAGS
But if someone applies some non-default incorrect tagging, it does not solve the problem of automatically correcting that.

Do you have any suggestions for how to use the Tags array to successfully target only the sensors that need changed and not all sensors with that device string?

@lordmilko
Copy link
Owner

If you do Get-Sensor | Get-ObjectProperty, the SensorSettings object returned from Get-ObjectProperty has separate properties for ParentTags and Tags.

I am currently investigating the readlock issue you've described to see if I can replicate it. Internally, the Tags property is a space delimited sequence of strings. PrtgAPI automatically serializes and deserializes between this internal format to provide a sensible object model.

@zacharylee1952
Copy link
Author

Thanks a lot for that suggestion of using Get-ObjectProperty. This eliminates the ParentTags problem like you said. At this point, I determined a way to at least get a listing of "offending" sensors which need to have their tags corrected. However, it looks like a simple Where -notlike statement does not work to exclude the sensors with the correct tagging.

Also, since the Get-ObjectProperty does not seem to have an ID field, it seems that automating the tag application to those that need it within the conditional statement would not work. Using the sensor name property will tag ALL sensors with that name. For example, "Ping" is on every device, so it would tag all Ping sensors with the tags meant for only certain devices.

Here is the code right now with comments on what I mean:

$TagSets = Get-Device "String" | Get-Sensor | Get-ObjectProperty Name, Tags # No objectID/ID property like you can get with Get-Sensor NAME | Select Id
foreach ($TagSet in $TagSets)
{
$TagString = $TagSet.Tags[0] + $TagSet.Tags[1]
if ($TagString -like "*MyTags*")
{
    #Tag already set correctly
}
else
{
    $SensorName = $TagSet.Name
    **Write-Host "$SensorName needs to have its tags analyzed"** # I can implement some sort of automated export to at least have the list to correct them manually.
    **Get-Sensor $SensorName | Set-ObjectProperty -Tags MyTags** # This would apply to every single sensor with the same name, i.e. pings of all devices would get tagged which is not desired.
}
}

If there was a way to also get the object ID with Get-ObjectProperty, the $TagSets could also include the ID property, which would then be used in the else statement, with something like

$SensorID = $TagSets.ID
Get-Sensor -id $SensorID | Set-ObjectProperty -Tags MyTags

Regarding investigating the readlock issue, I appreciate your testing to see if you can replicate it. It seems that it happens in our case when the tagging happens on over 200 sensors at once. The script does not crash when running against cases with ~10 sensors at once. But when it moves to the line where over 200 sensors are being tagged at once is when the readlocks start.

@zacharylee1952
Copy link
Author

Actually, I just realized that I can use the -Raw parameter to address the above use case and obtain the id field :)

@lordmilko
Copy link
Owner

When working on lists, use -notin for doing comparisons. -notlike is typically used for wildcard strings

The following is a useful technique for diffing two lists

$first = 1,2,3
$second = 2,3,4

$missingFromFirst = $first | where { $_ -notin $second }
$missingFromSecond = $second | where { $_ -notin $first }

The Sensor ID is on the Sensor object. If you need to access it, you should store the sensors first, and then get the object properties

$sensors = Get-Device | Get-Sensor

foreach($sensor in $sensors)
{
    $props = $sensor | Get-ObjectProperty
}

@zacharylee1952
Copy link
Author

Thank you for the explanation/recommendation to use -notin when working with lists! I will remember this going forward because it looks to simplify the code greatly compared to what I ended up doing because I have some redundant lines.

I was able to adjust the script to only apply the missing tags with this block of code for each type of device:

$DeviceTypeXTagSets = Get-Device DeviceTypeXString | Get-Sensor | Get-ObjectProperty -Raw | Select Name, Tags, id
    foreach ($TagSet in $DeviceTypeXTagSets)
    {
    $TagString = $TagSet.Tags
    if ($TagString -like "Tag1Wildcard")
    {
        if ($TagString -like "Tag2Wildcard")
        {
            #Tags set correctly for device.
        }
        else
        {
            $SensorId = $TagSet.Id
            Get-Sensor -id $SensorId | Set-ObjectProperty -Tags RequiredTagsForDeviceTypeX
        }
    }
    else
    {
        $SensorId = $TagSet.Id
        Get-Sensor -id $SensorId | Set-ObjectProperty -Tags RequiredTagsForDeviceTypeX
    }
    }

My method for sure doesn't scale well for cases with many tags. But luckily in our case, we only need 2 tags on the sensors.

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

No branches or pull requests

2 participants