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

Can't add linux agent to server #6539

Open
thieneret opened this issue Nov 16, 2024 · 14 comments
Open

Can't add linux agent to server #6539

thieneret opened this issue Nov 16, 2024 · 14 comments
Labels

Comments

@thieneret
Copy link

thieneret commented Nov 16, 2024

Describe the bug
Can't add linux agent to server. I can add windows agents without any problem.

To Reproduce
Go to Meshcentral server
Click Add Agent
Select operating system: Linux/BSD
Copy command
Run command on client with sudo

Expected behavior
New linux agent showing up on meshcentral web page.

Server Software (please complete the following information):

  • OS: Debina 12
  • Virtualization: Proxmox LXC
  • Network: LAN
  • Version: 1.1.33
  • Node: 18.19.0

Client Device (please complete the following information):

  • Device: Laptop
  • OS: Linux Mint 22 Cinamon
  • Network: Local to Meshcentral
  • Browser: Firefox

Remote Device (please complete the following information):

  • Device: Laptop
  • OS: Linux Mint 22 Cinamon
  • Network: Local to Meshcentral

Additional context
Agent log:

[2024-11-17 12:09:54 AM] [434BF98C5D4F394C] microstack/ILibParsers.c:10978 (0,0) Connecting to: wss://domain2.tld:port/agent.ashx
  52   │ [2024-11-17 12:09:54 AM] [434BF98C5D4F394C] microstack/ILibParsers.c:10978 (0,0) Control Channel Connection Established [13]...
  53   │ [2024-11-17 12:09:54 AM] [434BF98C5D4F394C] microstack/ILibParsers.c:10978 (0,0) TLS Server Cert matches Mesh Server Cert [13]...
  54   │ [2024-11-17 12:09:54 AM] [434BF98C5D4F394C] microstack/ILibParsers.c:10978 (0,0) Sending Authentication Data...

Server:

Nov 16 23:24:34 meshcentral systemd[1]: Started meshcentral.service - MeshCentral Server.
Nov 16 23:24:34 meshcentral node[10272]: Installing modules [
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:34 meshcentral node[10272]:   '[email protected]'
Nov 16 23:24:34 meshcentral node[10272]: ]
Nov 16 23:24:35 meshcentral node[10272]: Installing modules [
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]',
Nov 16 23:24:35 meshcentral node[10272]:   '[email protected]'
Nov 16 23:24:35 meshcentral node[10272]: ]
Nov 16 23:24:38 meshcentral node[10272]: MAIN: Core module windows-amt is 637700 bytes.
Nov 16 23:24:38 meshcentral node[10272]: MAIN: Core module linux-amt is 583623 bytes.
Nov 16 23:24:38 meshcentral node[10272]: MAIN: Core module linux-noamt is 483087 bytes.
Nov 16 23:24:38 meshcentral node[10272]: MAIN: Core module windows-recovery is 137824 bytes.
Nov 16 23:24:38 meshcentral node[10272]: MAIN: Core module linux-recovery is 82212 bytes.
Nov 16 23:24:38 meshcentral node[10272]: MAIN: Core module windows-agentrecovery is 61977 bytes.
Nov 16 23:24:38 meshcentral node[10272]: MAIN: Core module linux-agentrecovery is 6365 bytes.
Nov 16 23:24:38 meshcentral node[10272]: MAIN: Core module windows-tiny is 6305 bytes.
Nov 16 23:24:38 meshcentral node[10272]: MAIN: Core module linux-tiny is 6305 bytes.
Nov 16 23:24:38 meshcentral node[10272]: MeshCentral HTTP redirection server running on port 80.
Nov 16 23:24:38 meshcentral node[10272]: MeshCentral v1.1.33, WAN mode, Production mode.
Nov 16 23:24:40 meshcentral node[10272]: MAIN: Server started
Nov 16 23:24:40 meshcentral node[10272]: Loaded web certificate from "https://domain.tld", host: "domain.tld"
Nov 16 23:24:40 meshcentral node[10272]:   SHA384 cert hash: hash
Nov 16 23:24:40 meshcentral node[10272]: MeshCentral HTTPS server running on domain1.tld:443, alias port 443.
Nov 16 23:24:40 meshcentral node[10272]: MeshCentral HTTPS agent-only server running on domain2.tld:port, alias port port.
Nov 17 00:09:54 meshcentral node[10272]: AGENT: New agent at ip:34893

Your config.json file

{
  "$schema": "https://raw.githubusercontent.com/Ylianst/MeshCentral/master/meshcentral-config-schema.json",
  "settings": {
    "debug": "main,agent",
    "cert": "domain1.tld",
    "WANonly": true,
    "amtManager": false,
    "amtScanner": false,
    "mpsport": 0,
    "port": 443,
    "aliasPort": 443,
    "PortBind": "IP",
    "redirPort": 80,
    "redirAliasPort": 80,
    "redirPortBind": "IP",
    "trustedProxy": "TaefikIP",
    "WebRTC": false,
    "agentPortBind": "IP",
    "agentAliasDNS": "domain2.tld",
    "agentPort": port,
    "agentAliasPort": port,
    "agentPortTls": true,
    "PublicPushNotifications": true,
    "meshErrorLogPath": "/opt/meshcentral/meshcentral-logs/",
    "authLog": "/opt/meshcentral/meshcentral-logs/auth.log",
    "log": [
      "cookie",
      "dispatch",
      "main",
      "peer",
      "web",
      "webrequest",
      "relay",
      "webrelaydata",
      "webrelay",
      "mps",
      "mpscmd",
      "swarm",
      "swarmcmd",
      "agentupdate",
      "agent",
      "cert",
      "db",
      "email",
      "amt",
      "httpheaders",
      "websocket"
    ]
  },
  "domains": {
    "": {
      "title": "Meshcentral szerver",
      "nightMode": 1,
      "newAccounts": true,
      "allowSavingDeviceCredentials": true,
      "passwordRequirements": {
        "force2factor": true
      },
      "authStrategies": {
        "oidc": {
          "issuer": {
            "issuer": "https://oidc-domain.tld/application/o/meshcentral/",
            "authorization_endpoint": "https://oidc-domain.tld/application/o/authorize/",
            "token_endpoint": "https://oidc-domain.tld/application/o/token/",
            "endsession_endpoint": "https://oidc-domain.tld/application/o/meshcentral/end-session/",
            "jwks_uri": "https://oidc-domain.tld/application/o/meshcentral/jwks/",
            "userinfo_endpoint": "https://oidc-domain.tld/application/o/userinfo/"
          },
          "client": {
            "client_id": "client-id",
            "client_secret": "secret",
            "redirect_uri": "https://domain1.tld/auth-oidc-callback",
            "post_logout_redirect_uri": "https://domain1.tld/login"
          },
          "groups": {
            "required": [
              "authentik-users"
            ],
            "siteadmin": [
              "authentik-admins"
            ],
            "revokeAdmin": false,
            "scope": "groups",
            "claim": "groups"
          }
        }
      },
      "userNameIsEmail": true,
      "novnc": true,
      "mstsc": true,
      "ssh": true,
      "certUrl": "https://domain1.tld"
    }
  }
}
@thieneret thieneret added the bug label Nov 16, 2024
@si458
Copy link
Collaborator

si458 commented Nov 17, 2024

You didn't share ur config.json so we can't replicate ur issue

@thieneret
Copy link
Author

Updated first post

@si458
Copy link
Collaborator

si458 commented Nov 17, 2024

Is this a mistake, or have u just hidden the port?

"agentPort": port,
"agentAliasPort": port,

Also what is ur traefik config like?

@thieneret
Copy link
Author

Is this a mistake, or have u just hidden the port?

"agentPort": port,
"agentAliasPort": port,

Also what is ur traefik config like?

I just hid the port

Traefik config:

http:
   routers:
      remote:
         entryPoints:
            - "https"
         rule: "Host(`domain1.tld`)"
         middlewares:
               - default-headers
         tls: true
         service: remote
   services:
      remote:
         loadBalancer:
            servers:
               - url: "https://meshcentral-IP"
            passHostHeader: true
   middlewares:
      default-headers:
         headers:
            frameDeny: true
            browserXssFilter: true
            contentTypeNosniff: true
            forceSTSHeader: true
            stsIncludeSubdomains: true
            stsPreload: true
            stsSeconds: 15552000
            customFrameOptionsValue: SAMEORIGIN
            customRequestHeaders:
               X-Forwarded-Proto: https

Meshcentral has two NICs
domain1.tld point to traefik IP then traefik point to NIC1 IP
domain2.tld point to meshcentral NIC2 IP

@si458
Copy link
Collaborator

si458 commented Nov 17, 2024

ok so agentPort and agentAliasPort should be the same port, correct?
if so then in theory all should be correct because it does show AGENT: New agent at ip:34893
what logs are inside of log.txt in meshcentral-data ?

@thieneret
Copy link
Author

thieneret commented Nov 17, 2024

ok so agentPort and agentAliasPort should be the same port, correct? if so then in theory all should be correct because it does show AGENT: New agent at ip:34893 what logs are inside of log.txt in meshcentral-data ?

Yes, agentPort and agentAliasPort are the same

There is no log.txt, but now a mesherrors.txt has appeared instead:

-------- 11/17/2024, 1:16:59 PM ---- 1.1.33 --------

(node:10295) Warning: An error event has already been emitted on the socket. Please use the destroy method on the socket while handling a 'clientError' event.
(Use `node --trace-warnings ...` to show where the warning was created)

The following is repeated in the agent log:

  50   │ [2024-11-17 12:09:54 AM] [434BF98C5D4F394C] meshcore/agentcore.c:4299 (0,0) Attempting to connect to Server...
  51   │ [2024-11-17 12:09:54 AM] [434BF98C5D4F394C] microstack/ILibParsers.c:10978 (0,0) Connecting to: wss://domain2.tld:port/agent.ashx
  52   │ [2024-11-17 12:09:54 AM] [434BF98C5D4F394C] microstack/ILibParsers.c:10978 (0,0) Control Channel Connection Established [13]...
  53   │ [2024-11-17 12:09:54 AM] [434BF98C5D4F394C] microstack/ILibParsers.c:10978 (0,0) TLS Server Cert matches Mesh Server Cert [13]...
  54   │ [2024-11-17 12:09:54 AM] [434BF98C5D4F394C] microstack/ILibParsers.c:10978 (0,0) Sending Authentication Data...
  55   │ [2024-11-17 01:35:27 AM] [434BF98C5D4F394C] microstack/ILibParsers.c:10978 (0,0) Control Channel Disconnected [13]...
  56   │ [2024-11-17 02:38:46 PM] [434BF98C5D4F394C] microstack/ILibParsers.c:10978 (0,0) PLATFORM_TYPE: 1
  57   │ [2024-11-17 02:38:46 PM] [434BF98C5D4F394C] microstack/ILibParsers.c:10978 (0,0) Running as Service: 1
  58   │ [2024-11-17 02:38:46 PM] [434BF98C5D4F394C] meshcore/agentcore.c:4296 (0,0) Attempting to connect to Server...

@si458
Copy link
Collaborator

si458 commented Nov 17, 2024

the messge Warning: An error event has already been emitted on the socket. is just a bug in nodejs
this can be ignored or better yet upgrade your nodejs to 20+

the should be a log.txtfile somewhere too because you specified log in your config.json
it might be hidden inside node_modules/meshcentral/ (dont ask why)

but it seems like its connecting ok sort of but im not too sure?
ill have to try deplicate ur setup and try myself

@thieneret
Copy link
Author

Do you consider that this issue only affects the linux agent?
If I start a Windows 10 VM on the same laptop and install the Windows agent on it, it connects without any problems and the agent appears on the Meshcentral server web interface.

server log:

---- Log start at 11/17/2024, 9:45:42 PM ----
9:45:42 PM - main: Core module windows-amt is 637700 bytes.
9:45:42 PM - main: Core module linux-amt is 583623 bytes.
9:45:42 PM - main: Core module linux-noamt is 483087 bytes.
9:45:42 PM - main: Core module windows-recovery is 137824 bytes.
9:45:42 PM - main: Core module linux-recovery is 82212 bytes.
9:45:42 PM - main: Core module windows-agentrecovery is 61977 bytes.
9:45:42 PM - main: Core module linux-agentrecovery is 6365 bytes.
9:45:42 PM - main: Core module windows-tiny is 6305 bytes.
9:45:42 PM - main: Core module linux-tiny is 6305 bytes.
9:45:44 PM - dispatch: AddEventDispatch, ["server-shareremove"]
9:45:44 PM - cert: loadCertificate() - Loading certificate from domain1.tld:443, Hostname: domain1.tld...
9:45:44 PM - email: CreateFirebaseRelay-Setup
9:45:44 PM - dispatch: DispatchEvent, ["*"]
9:45:44 PM - main: Server started
9:45:44 PM - cert: loadCertificate() - TLS connected, got certificate.
9:45:47 PM - webrequest: (win-agent1-IP) AgentPort: /agent.ashx/.websocket
9:45:47 PM - agent: New agent at win-agent1-IP:40829
9:45:50 PM - agent: Verified agent connection to GtINLzDp$3oTdRBNz1FEJgCxxQ3hknhuiQKWUVLtrWVlidVAYmjqo$wKHMFBegeG (win-agent1-IP:40829).
9:45:50 PM - dispatch: DispatchEvent, ["node//GtINLzDp$3oTdRBNz1FEJgCxxQ3hknhuiQKWUVLtrWVlidVAYmjqo$wKHMFBegeG","*","mesh//n7zBs4yqzuLzIa0JdWynTBmHq8JBvahrKgzv5t2gvMhgNwwD@sibrJku762yD@H@","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:45:50 PM - dispatch: DispatchEvent, ["node//GtINLzDp$3oTdRBNz1FEJgCxxQ3hknhuiQKWUVLtrWVlidVAYmjqo$wKHMFBegeG","*","mesh//n7zBs4yqzuLzIa0JdWynTBmHq8JBvahrKgzv5t2gvMhgNwwD@sibrJku762yD@H@","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:45:50 PM - dispatch: DispatchEvent, ["node//GtINLzDp$3oTdRBNz1FEJgCxxQ3hknhuiQKWUVLtrWVlidVAYmjqo$wKHMFBegeG","*","mesh//n7zBs4yqzuLzIa0JdWynTBmHq8JBvahrKgzv5t2gvMhgNwwD@sibrJku762yD@H@","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:45:50 PM - webrequest: (win-agent2-IP) AgentPort: /agent.ashx/.websocket
9:45:50 PM - agent: New agent at win-agent2-IP:53729
9:45:52 PM - dispatch: DispatchEvent, ["node//GtINLzDp$3oTdRBNz1FEJgCxxQ3hknhuiQKWUVLtrWVlidVAYmjqo$wKHMFBegeG","*","mesh//n7zBs4yqzuLzIa0JdWynTBmHq8JBvahrKgzv5t2gvMhgNwwD@sibrJku762yD@H@","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:45:53 PM - agent: Verified agent connection to Fi@fGkRfpqsnWMTgDHo$Qmv0ISCi2FORKc85m5S77WSSuA0tvIUQ59uSyAiW@p8d (win-agent2-IP:53729).
9:45:53 PM - dispatch: DispatchEvent, ["node//Fi@fGkRfpqsnWMTgDHo$Qmv0ISCi2FORKc85m5S77WSSuA0tvIUQ59uSyAiW@p8d","*","mesh//ZbMXjd7rqmNWRJ9YAJhvviXAMrWA@JWwIRSf7HnYvnZPqJadrwon0VcRs4NNeL18","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:45:53 PM - dispatch: DispatchEvent, ["node//Fi@fGkRfpqsnWMTgDHo$Qmv0ISCi2FORKc85m5S77WSSuA0tvIUQ59uSyAiW@p8d","*","mesh//ZbMXjd7rqmNWRJ9YAJhvviXAMrWA@JWwIRSf7HnYvnZPqJadrwon0VcRs4NNeL18","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:45:54 PM - dispatch: DispatchEvent, ["node//Fi@fGkRfpqsnWMTgDHo$Qmv0ISCi2FORKc85m5S77WSSuA0tvIUQ59uSyAiW@p8d","*","mesh//ZbMXjd7rqmNWRJ9YAJhvviXAMrWA@JWwIRSf7HnYvnZPqJadrwon0VcRs4NNeL18","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:45:55 PM - webrequest: (win-agent3-IP) AgentPort: /agent.ashx/.websocket
9:45:55 PM - agent: New agent at win-agent3-IP:5693
9:45:57 PM - agent: Verified agent connection to gv1q3OnPQoOmkbuzI7xI2x2MPTmghRBV4wfPxkwAOtRscT3a4KvBa9JrQzP7k2dG (win-agent3-IP:5693).
9:45:57 PM - dispatch: DispatchEvent, ["node//gv1q3OnPQoOmkbuzI7xI2x2MPTmghRBV4wfPxkwAOtRscT3a4KvBa9JrQzP7k2dG","*","mesh//ZbMXjd7rqmNWRJ9YAJhvviXAMrWA@JWwIRSf7HnYvnZPqJadrwon0VcRs4NNeL18","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:45:57 PM - dispatch: DispatchEvent, ["node//gv1q3OnPQoOmkbuzI7xI2x2MPTmghRBV4wfPxkwAOtRscT3a4KvBa9JrQzP7k2dG","*","mesh//ZbMXjd7rqmNWRJ9YAJhvviXAMrWA@JWwIRSf7HnYvnZPqJadrwon0VcRs4NNeL18","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:45:57 PM - dispatch: DispatchEvent, ["node//gv1q3OnPQoOmkbuzI7xI2x2MPTmghRBV4wfPxkwAOtRscT3a4KvBa9JrQzP7k2dG","*","mesh//ZbMXjd7rqmNWRJ9YAJhvviXAMrWA@JWwIRSf7HnYvnZPqJadrwon0VcRs4NNeL18","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:45:58 PM - webrequest: (win-agent4-IP) AgentPort: /agent.ashx/.websocket
9:45:58 PM - agent: New agent at win-agent4-IP:53313
9:46:00 PM - dispatch: DispatchEvent, ["node//gv1q3OnPQoOmkbuzI7xI2x2MPTmghRBV4wfPxkwAOtRscT3a4KvBa9JrQzP7k2dG","*","mesh//ZbMXjd7rqmNWRJ9YAJhvviXAMrWA@JWwIRSf7HnYvnZPqJadrwon0VcRs4NNeL18","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:46:01 PM - agent: Verified agent connection to wHM12wgCsUdsSPsyjBrKVoxNK8$9FjXKE7AoTrHmukcOYk22$XpTzHqmela1Hypm (win-agent4-IP:53313).
9:46:01 PM - dispatch: DispatchEvent, ["node//wHM12wgCsUdsSPsyjBrKVoxNK8$9FjXKE7AoTrHmukcOYk22$XpTzHqmela1Hypm","*","mesh//ZbMXjd7rqmNWRJ9YAJhvviXAMrWA@JWwIRSf7HnYvnZPqJadrwon0VcRs4NNeL18","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:46:01 PM - dispatch: DispatchEvent, ["node//wHM12wgCsUdsSPsyjBrKVoxNK8$9FjXKE7AoTrHmukcOYk22$XpTzHqmela1Hypm","*","mesh//ZbMXjd7rqmNWRJ9YAJhvviXAMrWA@JWwIRSf7HnYvnZPqJadrwon0VcRs4NNeL18","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:46:01 PM - dispatch: DispatchEvent, ["node//wHM12wgCsUdsSPsyjBrKVoxNK8$9FjXKE7AoTrHmukcOYk22$XpTzHqmela1Hypm","*","mesh//ZbMXjd7rqmNWRJ9YAJhvviXAMrWA@JWwIRSf7HnYvnZPqJadrwon0VcRs4NNeL18","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:46:02 PM - dispatch: DispatchEvent, ["node//Fi@fGkRfpqsnWMTgDHo$Qmv0ISCi2FORKc85m5S77WSSuA0tvIUQ59uSyAiW@p8d","*","mesh//ZbMXjd7rqmNWRJ9YAJhvviXAMrWA@JWwIRSf7HnYvnZPqJadrwon0VcRs4NNeL18","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:46:04 PM - dispatch: DispatchEvent, ["node//gv1q3OnPQoOmkbuzI7xI2x2MPTmghRBV4wfPxkwAOtRscT3a4KvBa9JrQzP7k2dG","*","mesh//ZbMXjd7rqmNWRJ9YAJhvviXAMrWA@JWwIRSf7HnYvnZPqJadrwon0VcRs4NNeL18","ugrp//RNgcMqm8JQQ2GWDdLj5YaDNRb6io6iLCRqEalR@BSWh58lk@1UyGfPBkuZlDnqoe"]
9:46:05 PM - webrequest: (linux-agent-IP) AgentPort: /agent.ashx/.websocket
9:46:05 PM - agent: New agent at linux-agent-IP:51729
9:50:44 PM - dispatch: DispatchEvent, ["*"]
9:55:44 PM - dispatch: DispatchEvent, ["*"]
10:00:44 PM - dispatch: DispatchEvent, ["*"]
10:05:44 PM - dispatch: DispatchEvent, ["*"]
10:10:44 PM - dispatch: DispatchEvent, ["*"]
10:15:44 PM - dispatch: DispatchEvent, ["*"]
10:20:44 PM - dispatch: DispatchEvent, ["*"]
10:25:44 PM - dispatch: DispatchEvent, ["*"]
10:30:44 PM - dispatch: DispatchEvent, ["*"]
10:35:44 PM - dispatch: DispatchEvent, ["*"]
10:40:44 PM - dispatch: DispatchEvent, ["*"]
10:45:44 PM - dispatch: DispatchEvent, ["*"]

@si458
Copy link
Collaborator

si458 commented Nov 17, 2024

That does seem weird? Does the linux machines use a proxy or anything? Maybe a firewall?

@thieneret
Copy link
Author

That does seem weird? Does the linux machines use a proxy or anything? Maybe a firewall?

No proxy is set.
I disabled the firewall and checked the iptables rules.
Still won't connect.

@esgheorghe
Copy link

Is SELinux running?

SELinux cost me alot of time with one server, because i did not check it.

@si458
Copy link
Collaborator

si458 commented Dec 14, 2024

is this still an issue or can it be closed?

@thieneret
Copy link
Author

Yes it is still an issue.

@si458
Copy link
Collaborator

si458 commented Dec 15, 2024

Have you done @esgheorghe suggestion and checked if selinux is enabled? If it is try disabling it and reinstalling meshagent and see if it connects

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

No branches or pull requests

3 participants