MeshCentral icon indicating copy to clipboard operation
MeshCentral copied to clipboard

Device puts itself back into original device group?

Open takuy opened this issue 2 years ago • 11 comments

Describe the bug I'm sure if this is a problem with the agent or Mesh itself, but I originally installed an agent from one Device Group on several workstations. I changed the Device Group afterwards for several devices.

Randomly, the device will change to the original device group.

Not sure what info or logs I can provide, or if I'm just making bad assumptions here.

To Reproduce Steps to reproduce the behavior:

  1. Install device group's agent on workstation
  2. Move to new device group
  3. wait a few days!
  4. device moves to different device group?

Expected behavior Devices stays in the assigned device group.

Screenshots 2022-06-27_22-17-28

image

Server Software (please complete the following information):

  • OS: RHEL 7
  • Virtualization: Docker
  • Network: WAN, Nginx reverse proxy
  • Version: 1.0.39
  • Node: 12.22.5
  • Browser: Chrome

Remote Device (please complete the following information):

  • Device: Desktop
  • OS: Windows 10
  • Version: Windows 10 LTSC (1809)
  • Current Core Version (if known): Mar 25 2022, 2265086444

takuy avatar Jun 28 '22 02:06 takuy

Does it only happen with android devices?

Anything in the log right above that helps give other clues?

silversword411 avatar Jun 28 '22 11:06 silversword411

Does it only happen with android devices?

Anything in the log right above that helps give other clues?

My Mesh instance only has Windows devices. Not using in production yet aside from a few production machines for testing. The logs that I can see in the UI haven't been particular helpful. I don't see anything of note other what I've provided. Let me know if there's somewhere else I can check though and I can provide it.

takuy avatar Jun 28 '22 12:06 takuy

do you maybe have 2 installs of the meshagent running on the test computers?

what files are where the meshagent is running? (normally C:\Program Files\MeshAgent\MeshAgent)

whats the content of the files where meshagent is running? (normally C:\Program Files\MeshAgent\MeshAgent)

can you maybe try uninstalling the agent from a few computers and see if they re-appear in a few days time in the old group?

si458 avatar Jun 28 '22 12:06 si458

do you maybe have 2 installs of the meshagent running on the test computers?

Only 1 install. Happens on 3 separate workstations.

what files are where the meshagent is running? (normally C:\Program Files\MeshAgent\MeshAgent)

whats the content of the files where meshagent is running? (normally C:\Program Files\MeshAgent\MeshAgent)

image

can you maybe try uninstalling the agent from a few computers and see if they re-appear in a few days time in the old group?

Are you suggesting to uninstall the agent entirely? And not reinstall?

takuy avatar Jun 28 '22 14:06 takuy

whats the content of MeshAgent.log ?

also yes you could try uninstalling the agent entirely, and then wait and see if the device re-appears in another group, if it does this would mean its running another mesh agent somewhere else?

si458 avatar Jun 28 '22 14:06 si458

whats the content of MeshAgent.log ?

also yes you could try uninstalling the agent entirely, and then wait and see if the device re-appears in another group, if it does this would mean its running another mesh agent somewhere else?

[2022-05-18 10:32:18 AM] [E00D0B58B943DA56] ..\microstack\ILibParsers.c:10805 (0,0) SelfUpdate -> Current Version: 117444c751eb264f5ebc490db67419387810f6f3
[2022-05-18 10:32:18 AM] [E00D0B58B943DA56] ..\microstack\ILibParsers.c:10805 (0,0) SelfUpdate -> Updating and restarting service...

takuy avatar Jun 28 '22 14:06 takuy

My Mesh instance only has Windows devices.

Based on those device icons...those look like mobile devices, not windows/pc

2022-06-28_130106 - mesh icons

silversword411 avatar Jun 28 '22 17:06 silversword411

My Mesh instance only has Windows devices.

Based on those device icons...those look like mobile devices, not windows/pc

![2022-06-28_130106 - mesh icons]

Right... that's the weird thing I'm seeing in the logs. Not only is it changing device groups, it's changing the "os desc":

12:00:04 AM - Changed device [computer name] from group Digital Signage: os desc

I'm just super confused. It seems to always change the "os desc" first and then later move into the default group. Are there logs on the client/agent that would determine what's going on? A verbose mode I can enable?

takuy avatar Jun 29 '22 00:06 takuy

you could try setting "agentLogDump": true in config.json this Automaticallys downloads all agent error logs into meshcentral-data/agenterrorlogs.txt

si458 avatar Jun 29 '22 18:06 si458

That's excellent, I'll try that and will report back in a few days.

takuy avatar Jun 29 '22 22:06 takuy

Here's the log: agenterrorlogs.txt

takuy avatar Jul 06 '22 00:07 takuy