[GH-ISSUE #963] Agent error connectex #580

Closed
opened 2026-03-02 02:17:23 +03:00 by kerem · 26 comments
Owner

Originally created by @iarellano24 on GitHub (Feb 1, 2022).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/963

Hi, i have an error with agent when i install it on windows 10.

Server Info (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser: ALL
  • RMM Version (as shown in top left of web UI): 0.11.3

Installation Method:

  • [*] Standard
  • Docker

Agent Info (please complete the following information):

  • Agent version (as shown in the 'Summary' tab of the agent from web UI): None
  • Agent OS: [e.g. Win 10 v2004, Server 2012 R2]: WIN 10

Describe the bug
I downloaded the agent from the platform frontend, but I can't install the app on any device. I followed the instructions in the official documentation without making any mistakes in DNS and domains or opening ports.

Screenshots
CMD:
cmd

ERROR:
error_cmd

Originally created by @iarellano24 on GitHub (Feb 1, 2022). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/963 Hi, i have an error with agent when i install it on windows 10. **Server Info (please complete the following information):** - OS: Ubuntu 20.04 - Browser: ALL - RMM Version (as shown in top left of web UI): 0.11.3 **Installation Method:** - [*] Standard - [ ] Docker **Agent Info (please complete the following information):** - Agent version (as shown in the 'Summary' tab of the agent from web UI): None - Agent OS: [e.g. Win 10 v2004, Server 2012 R2]: WIN 10 **Describe the bug** I downloaded the agent from the platform frontend, but I can't install the app on any device. I followed the instructions in the official documentation without making any mistakes in DNS and domains or opening ports. **Screenshots** CMD: ![cmd](https://user-images.githubusercontent.com/97777593/152035093-0d19e3b9-4c62-45e9-916f-b6dccfa6ba7e.PNG) ERROR: ![error_cmd](https://user-images.githubusercontent.com/97777593/152035103-8389097f-a9f0-4488-91d6-0b4a8e8b85e0.png)
kerem 2026-03-02 02:17:23 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@dinger1986 commented on GitHub (Feb 1, 2022):

Please fill in some information about the issue you are having although most likely this is a support issue so might be better on GitHub discussions or #support on discord

<!-- gh-comment-id:1027194043 --> @dinger1986 commented on GitHub (Feb 1, 2022): Please fill in some information about the issue you are having although most likely this is a support issue so might be better on GitHub discussions or #support on discord
Author
Owner

@iarellano24 commented on GitHub (Feb 1, 2022):

Please fill in some information about the issue you are having although most likely this is a support issue so might be better on GitHub discussions or #support on discord

Sorry now is ok.

<!-- gh-comment-id:1027240474 --> @iarellano24 commented on GitHub (Feb 1, 2022): > Please fill in some information about the issue you are having although most likely this is a support issue so might be better on GitHub discussions or #support on discord Sorry now is ok.
Author
Owner

@dinger1986 commented on GitHub (Feb 1, 2022):

can you try these commands

https://wh1te909.github.io/tacticalrmm/troubleshooting/#testing-network-connectivity-between-agent-and-server

<!-- gh-comment-id:1027257987 --> @dinger1986 commented on GitHub (Feb 1, 2022): can you try these commands https://wh1te909.github.io/tacticalrmm/troubleshooting/#testing-network-connectivity-between-agent-and-server
Author
Owner

@iarellano24 commented on GitHub (Feb 1, 2022):

Ok, i try.
only port 4222 throws me an error.

image

server:

image

<!-- gh-comment-id:1027304070 --> @iarellano24 commented on GitHub (Feb 1, 2022): Ok, i try. only port 4222 throws me an error. ![image](https://user-images.githubusercontent.com/97777593/152054102-7fc2c267-9352-4771-824d-945cb2983f43.png) server: ![image](https://user-images.githubusercontent.com/97777593/152053957-969996ac-86a8-4f87-9b6d-04bf03e0c748.png)
Author
Owner

@dinger1986 commented on GitHub (Feb 1, 2022):

Ok and if you ping that dns address do you get a reply?

<!-- gh-comment-id:1027304805 --> @dinger1986 commented on GitHub (Feb 1, 2022): Ok and if you ping that dns address do you get a reply?
Author
Owner

@wh1te909 commented on GitHub (Feb 1, 2022):

please also paste the output of this command:

sudo systemctl status nats.service
<!-- gh-comment-id:1027305759 --> @wh1te909 commented on GitHub (Feb 1, 2022): please also paste the output of this command: ``` sudo systemctl status nats.service ```
Author
Owner

@iarellano24 commented on GitHub (Feb 1, 2022):

Ok and if you ping that dns address do you get a reply?
Ping works.

image

<!-- gh-comment-id:1027306494 --> @iarellano24 commented on GitHub (Feb 1, 2022): > Ok and if you ping that dns address do you get a reply? Ping works. ![image](https://user-images.githubusercontent.com/97777593/152054454-4847519a-a127-4259-9a64-3a1751d02df0.png)
Author
Owner

@iarellano24 commented on GitHub (Feb 1, 2022):

sudo systemctl status nats.service

image

<!-- gh-comment-id:1027306989 --> @iarellano24 commented on GitHub (Feb 1, 2022): > sudo systemctl status nats.service ![image](https://user-images.githubusercontent.com/97777593/152054600-89fadf07-930e-4c0f-976a-f9bd7932b490.png)
Author
Owner

@dinger1986 commented on GitHub (Feb 1, 2022):

Have you opened port 4222?

<!-- gh-comment-id:1027307193 --> @dinger1986 commented on GitHub (Feb 1, 2022): Have you opened port 4222?
Author
Owner

@dinger1986 commented on GitHub (Feb 1, 2022):

Are you using custom ssl?

<!-- gh-comment-id:1027307785 --> @dinger1986 commented on GitHub (Feb 1, 2022): Are you using custom ssl?
Author
Owner

@iarellano24 commented on GitHub (Feb 1, 2022):

Have you opened port 4222?

Yest. Its open.

Are you using custom ssl?

Nop, it was a clean install. but after installation, all links show an ssl error anyway.

image

<!-- gh-comment-id:1027311220 --> @iarellano24 commented on GitHub (Feb 1, 2022): > Have you opened port 4222? Yest. Its open. > Are you using custom ssl? Nop, it was a clean install. but after installation, all links show an ssl error anyway. ![image](https://user-images.githubusercontent.com/97777593/152055278-c1aa51be-94a4-4d79-b53f-26ba7165eb89.png)
Author
Owner

@dinger1986 commented on GitHub (Feb 1, 2022):

Ok so it's not working then.

Did you verify the TXT record? It looks like it failed.

<!-- gh-comment-id:1027312668 --> @dinger1986 commented on GitHub (Feb 1, 2022): Ok so it's not working then. Did you verify the TXT record? It looks like it failed.
Author
Owner

@iarellano24 commented on GitHub (Feb 1, 2022):

Ok so it's not working then.

Did you verify the TXT record? It looks like it failed.

Yes. We add the txt record and it works.

Thanks a @wh1te909 in this thread, we know that the nats.service is stopped, so we understand that the problem may be there. We already restarted the nats.service but the problem persists. So what can we do?

We try solve this with docs, but when we try get output using this line

nats-server -DVV -c /rmm/api/tacticalrmm/nats-rmm.conf

we have this result:

image

<!-- gh-comment-id:1027318818 --> @iarellano24 commented on GitHub (Feb 1, 2022): > Ok so it's not working then. > > Did you verify the TXT record? It looks like it failed. Yes. We add the txt record and it works. Thanks a @wh1te909 in this thread, we know that the nats.service is stopped, so we understand that the problem may be there. We already restarted the nats.service but the problem persists. So what can we do? We try solve this with docs, but when we try get output using this line nats-server -DVV -c /rmm/api/tacticalrmm/nats-rmm.conf we have this result: ![image](https://user-images.githubusercontent.com/97777593/152056938-d75cd894-034c-4e36-b4c4-814dcbb20a1e.png)
Author
Owner

@wh1te909 commented on GitHub (Feb 1, 2022):

rms.above.cl is that your subdomain or root domain?

<!-- gh-comment-id:1027320760 --> @wh1te909 commented on GitHub (Feb 1, 2022): `rms.above.cl` is that your subdomain or root domain?
Author
Owner

@dinger1986 commented on GitHub (Feb 1, 2022):

Nats doesn't work without a genuine SSL certificate and yours doesn't appear to have installed properly.

<!-- gh-comment-id:1027320790 --> @dinger1986 commented on GitHub (Feb 1, 2022): Nats doesn't work without a genuine SSL certificate and yours doesn't appear to have installed properly.
Author
Owner

@dinger1986 commented on GitHub (Feb 1, 2022):

If you click on the ssl error and show the cert details that would be helpful

<!-- gh-comment-id:1027325452 --> @dinger1986 commented on GitHub (Feb 1, 2022): If you click on the ssl error and show the cert details that would be helpful
Author
Owner

@silversword411 commented on GitHub (Feb 1, 2022):

Looks like you're using cloudflare, you know you can't proxy nats right?

https://wh1te909.github.io/tacticalrmm/troubleshooting/#using-cloudflare-dns

<!-- gh-comment-id:1027333794 --> @silversword411 commented on GitHub (Feb 1, 2022): Looks like you're using cloudflare, you know you can't proxy nats right? https://wh1te909.github.io/tacticalrmm/troubleshooting/#using-cloudflare-dns
Author
Owner

@dinger1986 commented on GitHub (Feb 1, 2022):

Looks like you're using cloudflare, you know you can't proxy nats right?

https://wh1te909.github.io/tacticalrmm/troubleshooting/#using-cloudflare-dns

But SSL isn't working anyway, maybe it's proxied so should be using cloudflare SSL

<!-- gh-comment-id:1027334797 --> @dinger1986 commented on GitHub (Feb 1, 2022): > Looks like you're using cloudflare, you know you can't proxy nats right? > > > > https://wh1te909.github.io/tacticalrmm/troubleshooting/#using-cloudflare-dns > > But SSL isn't working anyway, maybe it's proxied so should be using cloudflare SSL
Author
Owner

@silversword411 commented on GitHub (Feb 1, 2022):

From public looks ok. Must be something else going on in the network from their screenshots

2022-02-01_170836 - brave_Certificate

<!-- gh-comment-id:1027335989 --> @silversword411 commented on GitHub (Feb 1, 2022): From public looks ok. Must be something else going on in the network from their screenshots ![2022-02-01_170836 - brave_Certificate](https://user-images.githubusercontent.com/13395348/152059769-6d0065de-c5d9-41b0-88c3-dacfc265a3a8.png)
Author
Owner

@dinger1986 commented on GitHub (Feb 1, 2022):

The url is api.rms.above.cl for api

<!-- gh-comment-id:1027337987 --> @dinger1986 commented on GitHub (Feb 1, 2022): The url is api.rms.above.cl for api
Author
Owner

@iarellano24 commented on GitHub (Feb 1, 2022):

@silversword411 @dinger1986 @wh1te909
Ok, the ssl issue was fixed.
The error occurs because the "Nginx Full" ports were not enabled in the execution of the script, for this reason it was not possible to verify the SSL configuration, however, the nats.service problem continues.

@silversword411 the cloudflare configuration is the same as in the documentation.

<!-- gh-comment-id:1027340823 --> @iarellano24 commented on GitHub (Feb 1, 2022): @silversword411 @dinger1986 @wh1te909 Ok, the ssl issue was fixed. The error occurs because the "Nginx Full" ports were not enabled in the execution of the script, for this reason it was not possible to verify the SSL configuration, however, the nats.service problem continues. @silversword411 the cloudflare configuration is the same as in the documentation.
Author
Owner

@dinger1986 commented on GitHub (Feb 1, 2022):

So is your api record? api.rms.above.cl?

<!-- gh-comment-id:1027344121 --> @dinger1986 commented on GitHub (Feb 1, 2022): So is your api record? api.rms.above.cl?
Author
Owner

@silversword411 commented on GitHub (Feb 1, 2022):

The error occurs because the "Nginx Full" ports were not enabled in the execution of the script, for this reason it was not possible to verify the SSL configuration, however, the nats.service problem continues.

Sounds like you're running a proxy. You should discuss in the discord #unsupported channel
https://discord.gg/bHcCxEfCnV

<!-- gh-comment-id:1027344251 --> @silversword411 commented on GitHub (Feb 1, 2022): > The error occurs because the "Nginx Full" ports were not enabled in the execution of the script, for this reason it was not possible to verify the SSL configuration, however, the nats.service problem continues. Sounds like you're running a proxy. You should discuss in the discord #unsupported channel https://discord.gg/bHcCxEfCnV
Author
Owner

@silversword411 commented on GitHub (Feb 1, 2022):

Looks like LE certs are in nginx, just not loaded in nats

2022-02-01_172109 - brave_Certificate

update --force run to make sure certs are everywhere?

<!-- gh-comment-id:1027345816 --> @silversword411 commented on GitHub (Feb 1, 2022): Looks like LE certs are in nginx, just not loaded in nats ![2022-02-01_172109 - brave_Certificate](https://user-images.githubusercontent.com/13395348/152061290-1caa1d3e-1e5c-434f-a7e4-25d868b829a3.png) `update --force` run to make sure certs are everywhere?
Author
Owner

@dinger1986 commented on GitHub (Feb 1, 2022):

What's the folder under /etc/letsencrypt/live? I'm guessing it's not /etc/letsencrypt/live/rms.above.cl?

<!-- gh-comment-id:1027354385 --> @dinger1986 commented on GitHub (Feb 1, 2022): What's the folder under /etc/letsencrypt/live? I'm guessing it's not /etc/letsencrypt/live/rms.above.cl?
Author
Owner

@silversword411 commented on GitHub (Feb 4, 2022):

Post if there are issues still, I think you may have found your problem

<!-- gh-comment-id:1030427692 --> @silversword411 commented on GitHub (Feb 4, 2022): Post if there are issues still, I think you may have found your problem
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#580
No description provided.