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

adding devices #344

Open
mstrolo opened this issue Jan 12, 2025 · 7 comments
Open

adding devices #344

mstrolo opened this issue Jan 12, 2025 · 7 comments
Labels

Comments

@mstrolo
Copy link

mstrolo commented Jan 12, 2025

Hi.

after installing the system and checking that it is running

how do I add devices?
to what ports?
what ports do I need to open?

I kept trying and opened all the ports I found such as:
8000,1833,61613,4222,8222,6222 , 8883

but something is not working and devices are not connecting.

@leandrofars
Copy link
Member

Here is a list of all endpoints: https://docs.oktopus.app.br/getting-started/requirements/network

You should configure the device accordingly, but it varies on how to do it depending on the protocol and device model ayou're trying to use.

@mstrolo
Copy link
Author

mstrolo commented Jan 13, 2025

devices are connecting with MQTT
where do I find the username and password?
or it's the users I define under Credentials

@mstrolo
Copy link
Author

mstrolo commented Jan 13, 2025

if i check on portainer the MQTT log files I see this:

6:27PM WRN error="read connection: EOF" listener=8acb01fe-9039-42f4-b588-a615b414eda0
6:27PM WRN error="read connection: EOF" listener=8acb01fe-9039-42f4-b588-a615b414eda0
6:29PM WRN error="read connection: EOF" listener=8acb01fe-9039-42f4-b588-a615b414eda0
6:36PM WRN error="read connection: EOF" listener=8acb01fe-9039-42f4-b588-a615b414eda0
6:52PM WRN error="read connection: EOF" listener=8acb01fe-9039-42f4-b588-a615b414eda0
6:26PM WRN error="read connection: EOF" listener=8acb01fe-9039-42f4-b588-a615b414eda0

is it related to why devices are not connecting?

@leandrofars
Copy link
Member

Username and password are not checked by default, so any value you set must work.

The logs you're showing can be related to the device connection or just the internal Oktopus system communication.

@mstrolo
Copy link
Author

mstrolo commented Jan 13, 2025

Here is a list of all endpoints: https://docs.oktopus.app.br/getting-started/requirements/network

You should configure the device accordingly, but it varies on how to do it depending on the protocol and device model ayou're trying to use.

these ports are not open by docker once we start the container.
Do I need to open them on the machine or router?

@mstrolo
Copy link
Author

mstrolo commented Jan 14, 2025

Hi.

I did a check with the MQTT client and its connecting.

how do I know if or why the device am trying to connect is not reaching the system?
do I have a log file located somewhere?

@leandrofars
Copy link
Member

you can check the logs of the container application protocol you're trying to connect your device:
"docker logs -f mqtt"
"docker logs -f stomp"
docker logs -f ws"

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

2 participants