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

Mattermost webhook plugin post error - dail tcp i/o error #148

Open
tejaskarelia17 opened this issue Aug 7, 2019 · 16 comments

Comments

@tejaskarelia17
Copy link

commented Aug 7, 2019

Summary

I am unable to make any post request from a plugin. dail tcp IP i/o error

Steps to reproduce

I have installed Mattermost 5.13.2 on a DMZ (192.168.x.x:8067) behind a Firewall using NAT. I am able to use Mattermost as expected from internet using my public IP/hostname as well as internal.
I installed a plugin(RemindBot) but none of the buttons work after a reminder is sent.

I changed the config file to reflect the following:

"EnableInsecureOutgoingConnections": true,
"AllowedUntrustedInternalConnections": “192.168.x.x”,

I still am unable to make it work.
Observed behavior

Following is the error that is generated:

{“level”:“error”,“ts”:1564767183.8125181,“caller”:“mlog/log.go:172”,“msg”:“Action integration error”,“path”:"/api/v4/posts/nrct1bbkdpyqtm41jdfyanhmaa/actions/feqngh9b1jyetpqianhwwcmkmo",“request_id”:“4ypkej9zdpgmpmpcrq96jfxkuw”,“ip_addr”:“10.190.x.x”,“user_id”:“c859kpm4e38odqttj7y9cz367r”,“method”:“POST”,“err_where”:“DoActionRequest”,“http_code”:400,“err_details”:“err=Post https://{hostname}:8067/plugins/com.github.scottleedavis.mattermost-plugin-remind/delete: dial tcp PUBLIC_IP:8067: i/o timeout”}

@scottleedavis

This comment has been minimized.

Copy link
Owner

commented Aug 7, 2019

@tejaskarelia17 is SiteURL valid? If so I suspect a firewall issue with an i/o timeout error. If another plugin say, matterpoll didn't work this is likely the issue.

@scottleedavis

This comment has been minimized.

Copy link
Owner

commented Aug 8, 2019

@tejaskarelia17 This plugin will update to use relative paths for mattermost release 5.14

@scottleedavis scottleedavis added enhancement and removed question labels Aug 8, 2019

@scottleedavis

This comment has been minimized.

Copy link
Owner

commented Aug 8, 2019

following the nps plugin as an example mattermost/mattermost-plugin-nps#45

@tejaskarelia17

This comment has been minimized.

Copy link
Author

commented Aug 8, 2019

@scottleedavis Thanks 😃

@scottleedavis scottleedavis added this to the 0.4.4 milestone Aug 9, 2019

scottleedavis added a commit that referenced this issue Aug 9, 2019

scottleedavis added a commit that referenced this issue Aug 9, 2019

@johnthompson365

This comment has been minimized.

Copy link

commented Aug 16, 2019

Hi Scott - I have a customer who loves the plugin but is getting a similar error, without the explicit timeout. Is there any further troubleshooting or is it just best to wait for v4.4? Thanks.

{"level":"error","ts":1565912527.5476964,"caller":"mlog/log.go:172","msg":"Action integration error","path":"/api/v4/posts/j8zwbedfxfytpg4hf3uhu8onza/actions/orfrnyxw93rgjb4bhjxc8dzrhy","request_id":"szwyfomzdbgc5bwx6fyhgfxgow","ip_addr":"192.168.x.x","user_id":"5frpib9ss3ruwey4ip6zxo49so","method":"POST","err_where":"DoActionRequest","http_code":400,"err_details":"status=400"}

@scottleedavis

This comment has been minimized.

Copy link
Owner

commented Aug 16, 2019

Howdy John,

In this case lets wait to see if 0.4.4 resolves it, which should be released friday (following a 5.14 release requirement)

@scottleedavis

This comment has been minimized.

Copy link
Owner

commented Aug 20, 2019

Hello! v0.4.4 has been released!
https://github.com/scottleedavis/mattermost-plugin-remind/releases/tag/0.4.4

This should solve this issue @tejaskarelia17 & @johnthompson365 . Let me know if it doesn't! (This version requires mattermost v5.14)

@johnthompson365

This comment has been minimized.

Copy link

commented Aug 20, 2019

@tejaskarelia17

This comment has been minimized.

Copy link
Author

commented Aug 21, 2019

Hi @scottleedavis,
Thanks for the update. I updated mattermost to 5.14.0 and Remind bot 0.4.4. But I am getting the same error.
Is there a way I can check whether the error I am getting is due to the SiteURL parameter?

@scottleedavis scottleedavis reopened this Aug 21, 2019

@scottleedavis scottleedavis removed this from the 0.4.4 milestone Aug 21, 2019

@johnthompson365

This comment has been minimized.

Copy link

commented Aug 21, 2019

Thanks for re-opening this, our customer is reporting the same issue with v4.4 as well.

@scottleedavis scottleedavis added bug and removed enhancement labels Aug 21, 2019

@scottleedavis

This comment has been minimized.

Copy link
Owner

commented Aug 22, 2019

@tejaskarelia17 would it be possible to test another plugin with interactive buttons? e.g. https://github.com/matterpoll/matterpoll

If those buttons work that narrows it down to this plugin. If they don't, we can discuss more on the user voice post to see if mattermost staff can help.

@johnthompson365

This comment has been minimized.

Copy link

commented Aug 23, 2019

Hi Scott, we tried your suggestion of using Matterpoll and we got the same error. So doesn't look to be plugin related. I assume you can't recreate the issue on your v5.14 server?

@scottleedavis

This comment has been minimized.

Copy link
Owner

commented Aug 23, 2019

I cant recreate it, though I will test with a 5.14 docker image this eve to cover that base.

@johnthompson365

This comment has been minimized.

Copy link

commented Aug 23, 2019

@scottleedavis

This comment has been minimized.

Copy link
Owner

commented Aug 23, 2019

@johnthompson365 @tejaskarelia17 I tested the following this eve.

  1. docker image of 5.14 => This works without error.
  2. dev mattermost-server up-to-date master => This works without error.
  3. 5.14 debian install, running in GCE. => This does not work and gives a very similar, but not exact same error as reported
{"level":"error","ts":1566534094.7552865,"caller":"mlog/log.go:173","msg":"Action integration error","path":"/api/v4/posts/nterq7nrm7nyzq8mf1ugsgwhph/actions/q9o3rxsdxbbninw7juzu34q88c","request_
id":"ro65a673ipy37bb3r4tfwus1xo","ip_addr":"IP_ADDR","user_id":"y8e5yubqofgm7f69sthoet3goy","method":"POST","err_where":"DoActionRequest","http_code":400,"err_details":"err=Post http://IP_ADDR/plugins/com.github.scottleedavis.mattermost-plugin-remind/delete/ephemeral: dial tcp IP_ADDR:80: connect: connection refused"}

(IP_ADDR replaced actual ip)

The AllowedUntrustedInternalConnections was also set to IP_ADDR.

A discussion thread created by john is here

The mattermost forum thread is here

@lieut-data would you like me to add my findings/status on the mattermost forum thread, or best to discuss here?

@johnthompson365

This comment has been minimized.

Copy link

commented Aug 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.