Agent Shutdown After Client Connection #26
-
Describe the bug ./narrowlink-x86_64-apple-darwin list
Error: InvalidConfig when the client report the error,the agent also exit like this: ./narrowlink-agent-x86_64-apple-darwin
[2023-08-21T09:29:57Z INFO narrowlink_agent] Connecting to gateway: sg.xxyz.me:443
[2023-08-21T09:29:58Z INFO narrowlink_agent] Connection successful
[2023-08-21T09:30:18Z INFO narrowlink_agent] Gateway requested shutdown if I do not start client,the agent run ok,it will not auto shutdown . and the gateway log is this(domain and ip I had change to XXXXX): [2023-08-21T09:26:49Z DEBUG narrowlink_gateway] config successfully read
[2023-08-21T09:26:49Z TRACE narrowlink_gateway] config: Config { name: "basic-sgl", secret: "XXXX", services: [Wss(WsSecureService { domains: ["XXXXX"], listen_addr: 0.0.0.0:443, tls_co
nfig: Acme(Acme { email: "XXXXX", challenge_type: Http01, directory_url: "https://acme-v02.api.letsencrypt.org/directory" }) }), Ws(WsService { domains: ["XXXXX"], listen_a
ddr: 0.0.0.0:80 })] }
[2023-08-21T09:26:49Z DEBUG narrowlink_gateway] setting up tls config
[2023-08-21T09:26:49Z DEBUG narrowlink_gateway::service::wss] setting up certificate manager
[2023-08-21T09:26:49Z DEBUG narrowlink_gateway::service::wss] certificate manager successfully created
[2023-08-21T09:26:49Z DEBUG narrowlink_gateway] tls config successfully created
[2023-08-21T09:26:49Z INFO narrowlink_gateway] Wss service added
[2023-08-21T09:26:49Z INFO narrowlink_gateway] Ws service added
[2023-08-21T09:27:16Z DEBUG narrowlink_gateway::state] Client Event Received
[2023-08-21T09:27:16Z DEBUG narrowlink_gateway::state] Agent Event Received
[2023-08-21T09:27:16Z DEBUG narrowlink_gateway::state] Agent 00000000-0000-0000-0000-000000000001:agent_name (XXXXX:19922) connected
[2023-08-21T09:28:06Z DEBUG narrowlink_gateway::state] Client Event Received
[2023-08-21T09:28:06Z DEBUG narrowlink_gateway::state] Agent Event Received
[2023-08-21T09:28:06Z DEBUG narrowlink_gateway::state] Previous agent 00000000-0000-0000-0000-000000000001:agent_name (XXXXX:23684) disconnected
[2023-08-21T09:28:06Z DEBUG narrowlink_gateway::state] Agent 00000000-0000-0000-0000-000000000001:agent_name (XXXXX:23684) connected
[2023-08-21T09:28:06Z DEBUG narrowlink_gateway::state] Agent 00000000-0000-0000-0000-000000000001:agent_name disconnected due to E-Tungstenite:IO error: unexpected end of file
[2023-08-21T09:28:06Z DEBUG narrowlink_gateway::service::certificate::manager] unload certificate for 00000000-0000-0000-0000-000000000001:agent_name from memory
[2023-08-21T09:28:06Z TRACE narrowlink_gateway::service::certificate::manager] domain map: {"XXXXX": {("main", "self")}} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
./narrowlink-x86_64-apple-darwin list |
Beta Was this translation helpful? Give feedback.
-
It appears that you are using the agent token for the client. The type of token you should use for the client is different from the one used for the agent. |
Beta Was this translation helpful? Give feedback.
It appears that you are using the agent token for the client. The type of token you should use for the client is different from the one used for the agent.