MeshCentral: Regression: AMT Agent connectivity not working in v1.1.24, last known working in v1.1.20
Describe the bug After upgrading from 1.1.20 to 1.1.24 my AMT agents are no longer showing as connected (online) on the “My Devices” page. This is while the agents are powered down into one of soft-off states (e.g. S5). Only after powering on the machines, do the AMT agent shows as online and I’m able to “Connect” to the Intel AMT portal.
To Reproduce Steps to reproduce the behavior:
- Install and setup Meshcentral with v1.1.20.
- Have at least 1 AMT agent registered within MeshCentral and shows as activated e.g.
- Proceed to the “My Server” tab and click the “Check server version” link.
- Within the pop-up, select the “Latest Version” checkbox and click ok to initiate the server self-update.
- Observe after a few minutes that the AMT Agent no longer shows as online and you’re not able to connect to the Intel AMT portal.
Expected behavior I expected that after updating to v1.1.24 my previously registered AMT Agents would continue to show as online and that I would be able to access the Intel AMT portal even when the machine is in one of the soft-off states (e.g. S3-S5) without the machine having to be powered-on.
Screenshots If applicable, add screenshots to help explain your problem.
AMT Agents online (v1.1.20)
AMT Agents offline (after updating to v1.1.24)
Server Software (please complete the following information):
- OS: Ubuntu 20.04
- Virtualization: LXC
- Network: reverse proxy [nginx] with ssl offload
- Version: 1.1.20
- Node: 14.21.1
Client Device (please complete the following information):
- Device: Desktop (Whitebox PC)
- OS: Windows 11 Enterprise
- Network: Remote over WAN
- Browser: Google Chrome, MS Edge, Firefox
- MeshCentralRouter Version: N/A
Remote Device (please complete the following information):
- Device: Lenovo M920q & Intel NUC 11
- OS: Windows 11 Pro 23H2 (Both)
- Network: Remote over WAN (but in same physical local network)
- Current Core Version (if known):
Current Core: Dec 9 2022, 1807787178 Agent Time: 2024-06-23 12:29:19.447-04:00. User Rights: 0xffffffff. Platform: win32. Capabilities: 15. Server URL: wss://remote.example.com:443/agent.ashx. Built-in LMS: Disabled. OS: Microsoft Windows 11 Pro - 23H2/22631. Modules: amt-apfclient, amt-lme, amt-manage, amt-mei, computer-identifiers, monitor-border, power-monitor, smbios, sysinfo, util-agentlog, wifi-scanner-windows, wifi-scanner, win-console, win-deskutils, win-info, win-securitycenter, win-terminal, win-virtual-terminal, win-volumes. Server Connection: true, State: 1. Node ID: seTNBXRhgb77zxX8ukH6MJoSd9KuTNsP3Ae8IVEtbUE$93e7PHx3uB877LM$Iabd Application Location: C:\Program Files\Mesh Agent\
Additional context Add any other context about the problem here.
Your config.json file
{
"__comment__" : "This is a sample configuration file, edit a section and remove the _ in front of the name. Refer to the user's guide for details.",
"settings": {
"Cert": "remote.example.com",
"_MongoDb": "mongodb://127.0.0.1:27017",
"_MongoDbName": "meshcentral",
"_MongoDbChangeStream": true,
"_WANonly": true,
"_LANonly": true,
"_Minify": 1,
"_SessionTime": 30,
"_SessionKey": "MyReallySecretPassword1",
"_DbEncryptKey": "MyReallySecretPassword2",
"_DbExpire": {
"events": 1728000,
"powerevents": 864000
},
"webPageLengthRandomization": true,
"Port": 4430,
"AliasPort": 443,
"RedirPort": 800,
"_AllowLoginToken": true,
"_AllowFraming": true,
"_WebRTC": false,
"_ClickOnce": false,
"_SelfUpdate": true,
"AgentPing": 60,
"AgentPong": 300,
"_AgentIdleTimeout": 150,
"MeshErrorLogPath": "/tmp/meshcentral",
"_NpmPath": "c:\\npm.exe",
"_NpmProxy": "http://1.2.3.4:80",
"_AllowHighQualityDesktop": true,
"_UserAllowedIP": "127.0.0.1,192.168.1.0/24",
"_UserBlockedIP": "127.0.0.1,::1,192.168.0.100",
"_AgentAllowedIP": "192.168.0.100/24",
"_AgentBlockedIP": "127.0.0.1,::1",
"LocalDiscovery": {
"name": "MeshCentral",
"info": "Local MeshCentral Remote Management Server"
},
"TlsOffload": "192.168.10.23",
"TrustedProxy": "192.168.10.23",
"MpsPort": 44330,
"MpsAliasPort": 4433,
"MpsTlsOffload": true,
"_No2FactorAuth": true,
"_WebRtConfig": {
"iceServers": [
{ "urls": "stun:stun.services.mozilla.com" },
{ "urls": "stun:stun.l.google.com:19302" }
]
},
"_AutoBackup": {
"backupIntervalHours": 24,
"keepLastDaysBackup": 10,
"zipPassword": "MyReallySecretPassword3",
"_backupPath": "C:\\backups"
},
"_Redirects": {
"meshcommander": "https://www.meshcommander.com/"
}
},
"domains": {
"": {
"Title": "Mesh Command",
"Title2": "Meshcentral",
"mstsc": true,
"_TitlePicture": "title-sample.png",
"_UserQuota": 1048576,
"_MeshQuota": 248576,
"_NewAccounts": true,
"_UserNameIsEmail": true,
"_NewAccountEmailDomains": [ "sample.com" ],
"_NewAccountsRights": [ "nonewgroups", "notools" ],
"_Footer": "<a href='https://twitter.com/mytwitter'>Twitter</a>",
"CertUrl": "https://remote.example.com:443/",
"_PasswordRequirements": { "min": 8, "max": 128, "upper": 1, "lower": 1, "numeric": 1, "nonalpha": 1, "reset": 90, "force2factor": true },
"_AgentNoProxy": true,
"_GeoLocation": true,
"_UserAllowedIP": "127.0.0.1,192.168.1.0/24",
"_UserBlockedIP": "127.0.0.1,::1,192.168.0.100",
"_AgentAllowedIP": "192.168.0.100/24",
"_AgentBlockedIP": "127.0.0.1,::1",
"___UserSessionIdleTimeout__" : "Number of user idle minutes before auto-disconnect",
"_UserSessionIdleTimeout" : 30,
"__UserConsentFlags__" : "Set to: 1 for desktop, 2 for terminal, 3 for files, 7 for all",
"_UserConsentFlags" : 7,
"_Limits": {
"_MaxDevices": 100,
"_MaxUserAccounts": 100,
"_MaxUserSessions": 100,
"_MaxAgentSessions": 100,
"MaxSingleUserSessions": 10
},
"_AmtAcmActivation": {
"log": "amtactivation.log",
"certs": {
"mycertname": {
"certfiles": [ "amtacm-leafcert.crt", "amtacm-intermediate1.crt", "amtacm-intermediate2.crt", "amtacm-rootcert.crt" ],
"keyfile": "amtacm-leafcert.key"
}
}
},
"_Redirects": {
"meshcommander": "https://www.meshcommander.com/"
},
"_yubikey": { "id": "0000", "secret": "xxxxxxxxxxxxxxxxxxxxx", "_proxy": "http://myproxy.domain.com:80" },
"_httpheaders": { "Strict-Transport-Security": "max-age=360000" },
"_agentConfig": [ "webSocketMaskOverride=1" ]
},
"_customer1": {
"DNS": "customer1.myserver.com",
"Title": "Customer1",
"Title2": "TestServer",
"NewAccounts": 1,
"Auth": "sspi",
"Footer": "Test",
"_CertUrl": "https://192.168.2.106:443/"
},
"info": {
"share": "C:\\ExtraWebSite"
}
},
"_letsencrypt": {
"__comment__": "Go to https://letsdebug.net/ first before trying Let's Encrypt.",
"email": "myemail@myserver.com ",
"names": "myserver.com,customer1.myserver.com",
"rsaKeySize": 3072,
"production": false
},
"_peers": {
"serverId": "server1",
"servers": {
"server1": { "url": "wss://192.168.2.133:443/" },
"server2": { "url": "wss://192.168.1.106:443/" }
}
},
"_smtp": {
"host": "smtp.myserver.com",
"port": 25,
"from": "myemail@myserver.com",
"tls": false
}
}
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 38
@vedran-dobos glad that resolved ur issue 🎉 ur config looks good to me too 👍 in theory the remote devices SHOULD try to connect to your meshcentral every like 60 seconds if they couldnt before hand. HOWEVER i have spotted every so often after a LONG period of time of the machines NOT being able to connect to your meshcentral server, they just stop talking all together until you switch them on or restart them, so i think this is an AMT thing but not 100% sure?
Try rerunning
amtconfigin the console tab of one of the devices and see what it outputs (might take a min to finish with logs)Then shut the device down and see if u can still see it online
I’m confused why it says Remov Device?
I don’t have an amt 11 device only 7, and I’m not seeing this issue? But will look more into it tomorrow if I can