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

Two Traceback errors finded #373

Closed
DiegoLibonati opened this issue Jan 19, 2023 · 8 comments
Closed

Two Traceback errors finded #373

DiegoLibonati opened this issue Jan 19, 2023 · 8 comments

Comments

@DiegoLibonati
Copy link

Describe the bug
When the bot is turned on it throws the following errors but the bot still works.

How do I fix this, do you have to fix it yourself?

Additional context

image

image

@attzonko
Copy link
Owner

Can you provide info on what version you are running?

From a cursory look at the images you provided both seem to indicate that there is an issue with the websocket connection.

Can you describe your environment set up? Are there any errors on the Mattermost Server log?

@unode
Copy link
Collaborator

unode commented Jan 23, 2023

I've seen some of these in situations when the mattermost server goes away or the connection is interrupted.
In extreme cases, the bot engine fails to recover gracefully and a restart of the bot is needed.

@DiegoLibonati
Copy link
Author

I've seen some of these in situations when the mattermost server goes away or the connection is interrupted.
In extreme cases, the bot engine fails to recover gracefully and a restart of the bot is needed.

Hi, we are running 2.1.1 mmpy_bot version. And we use docker to set up the bot and i cant find Mattermost Server Log sorry for that

@DiegoLibonati
Copy link
Author

I find the logs:
2023-01-23 09:24:44.223] [error] Error parsing server data from https://nehuen.cloud.mattermost.com/signup_user_complete/?id=4hb1bapudin15yp8ii11kfwdre&sbr=fa/api/v4/plugins/webapp
[2023-01-23 09:24:44.231] [error] Error parsing server data from https://nehuen.cloud.mattermost.com/signup_user_complete/?id=4hb1bapudin15yp8ii11kfwdre&sbr=fa/api/v4/config/client?format=old
[2023-01-23 09:24:44.398] [error] Error parsing server data from https://nehuen.cloud.mattermost.com/signup_user_complete/?id=4hb1bapudin15yp8ii11kfwdre&sbr=fa/api/v4/plugins/webapp
[2023-01-23 09:24:44.412] [error] Error parsing server data from https://nehuen.cloud.mattermost.com/signup_user_complete/?id=4hb1bapudin15yp8ii11kfwdre&sbr=fa/api/v4/config/client?format=old
[2023-01-23 09:29:24.530] [info] Log level set to: info
[2023-01-23 09:29:24.537] [info] Log level set to: info
[2023-01-23 09:29:24.555] [info] config.autostart has been configured: true
[2023-01-23 09:29:24.559] [info] config.autostart has been configured: true

[2023-01-23 09:32:50.769] [error] Error parsing server data from https://nehuen.cloud.mattermost.com/signup_user_complete/?id=4hb1bapudin15yp8ii11kfwdre&sbr=fa/api/v4/plugins/webapp
[2023-01-23 09:32:50.770] [error] Error parsing server data from https://nehuen.cloud.mattermost.com/signup_user_complete/?id=4hb1bapudin15yp8ii11kfwdre&sbr=fa/api/v4/config/client?format=old
[2023-01-23 09:37:31.681] [info] close :auos7t7i6bbb7b6ubow5kpojtw
[2023-01-23 09:39:06.501] [info] close :auos7t7i6bbb7b6ubow5kpojtw
[2023-01-23 09:39:22.980] [info] close :auos7t7i6bbb7b6ubow5kpojtw

and i find those errors

@DiegoLibonati
Copy link
Author

@attzonko Hi, i create another bot with only this configuration and the error remains
Captura de pantalla 2023-01-24 001715

@unode
Copy link
Collaborator

unode commented Jan 24, 2023

The last one looks like a configuration issue.
The error is the same when the server closes the connection.
It's possible that your token isn't configured correctly or that some firewall is getting in the way of the connection.

You could try running the server with verbose/debug logging to get more information about what may be going wrong.

@DiegoLibonati
Copy link
Author

How do I know if I set up the token wrong or if I have a firewall problem? If I activate the debug mode it will tell me?

@unode
Copy link
Collaborator

unode commented May 9, 2023

On a second read, this report looks like a network misconfiguration, possibly related to how docker containers use bridges.

As it does not look like a bug in mmpy_bot, I will close the issue.
If you still need assistance and have additional diagnostic information, please feel free to reopen the issue.

@unode unode closed this as completed May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants