Mattermost Peer-to-Peer Forum

Buttons from plugins have no effect

#1

Summary

I’ve installed a few plugins that display buttons but clicking on those buttons have no effect.

Steps to reproduce

Run the mattermost 5.10.0 container provided by Mattermost
Use Nginx as a reverse proxy on the host machine
Install the remind plugin through the Console UI
Restart the container
/remind me to say hello in 5 minutes
Take a 5 minutes break
Get the notification from the remind bot
Click on the “Mark as Complete” button

Expected behavior

I expected something to change on the notification, like the reminder disapearing or marked as complete.

Observed behavior

The notification message stays in the remind bot discussion, as if I didn’t click on the button, I tried to “click” by using the keyboard but nothing appears. In the logs, I see this message everytime I click:

{"level":"error","ts":1557452433.1119468,"caller":"mlog/log.go:172","msg":"Action integration error","path":"/api/v4/posts/odhmocrzjt8sddf1emp8nc4ety/actions/rse5m516epdy7pbew75bmbwg1h","request_id":"uxgcfm63z7yz5qxeikheiijwce","ip_addr":"192.168.10.77","user_id":"rwoqioeq1fb8bmc7ncpkn3orzh","method":"POST","err_where":"DoActionRequest","http_code":400,"err_details":"status=404"}
{"level":"error","ts":1557452433.1119382,"caller":"mlog/log.go:172","msg":"Action integration error","path":"/api/v4/posts/odhmocrzjt8sddf1emp8nc4ety/actions/rse5m516epdy7pbew75bmbwg1h","request_id":"3goxpetzzjbpbkkobghx98yabc","ip_addr":"192.168.10.77","user_id":"rwoqioeq1fb8bmc7ncpkn3orzh","method":"POST","err_where":"DoActionRequest","http_code":400,"err_details":"status=404"}
{"level":"error","ts":1557452433.1125753,"caller":"mlog/log.go:172","msg":"Action integration error","path":"/api/v4/posts/odhmocrzjt8sddf1emp8nc4ety/actions/rse5m516epdy7pbew75bmbwg1h","request_id":"ne4qzmn7wt8i7f9p6uomz4p7be","ip_addr":"192.168.10.77","user_id":"rwoqioeq1fb8bmc7ncpkn3orzh","method":"POST","err_where":"DoActionRequest","http_code":400,"err_details":"status=404"}
{"level":"error","ts":1557452433.4024808,"caller":"mlog/log.go:172","msg":"Action integration error","path":"/api/v4/posts/odhmocrzjt8sddf1emp8nc4ety/actions/rse5m516epdy7pbew75bmbwg1h","request_id":"ihjtwt185pfktyy8u1jraey61a","ip_addr":"192.168.10.77","user_id":"rwoqioeq1fb8bmc7ncpkn3orzh","method":"POST","err_where":"DoActionRequest","http_code":400,"err_details":"status=404"}
{"level":"error","ts":1557452434.1019378,"caller":"mlog/log.go:172","msg":"Action integration error","path":"/api/v4/posts/odhmocrzjt8sddf1emp8nc4ety/actions/rse5m516epdy7pbew75bmbwg1h","request_id":"joebyx4dbtya9r7iqjbbkihbir","ip_addr":"192.168.10.77","user_id":"rwoqioeq1fb8bmc7ncpkn3orzh","method":"POST","err_where":"DoActionRequest","http_code":400,"err_details":"status=404"}
{"level":"error","ts":1557452434.684373,"caller":"mlog/log.go:172","msg":"Action integration error","path":"/api/v4/posts/odhmocrzjt8sddf1emp8nc4ety/actions/rse5m516epdy7pbew75bmbwg1h","request_id":"znxjzkzsotgm9jbqorxwe6hr1a","ip_addr":"192.168.10.77","user_id":"rwoqioeq1fb8bmc7ncpkn3orzh","method":"POST","err_where":"DoActionRequest","http_code":400,"err_details":"status=404"}
{"level":"error","ts":1557452435.1525419,"caller":"mlog/log.go:172","msg":"Action integration error","path":"/api/v4/posts/odhmocrzjt8sddf1emp8nc4ety/actions/rse5m516epdy7pbew75bmbwg1h","request_id":"ardia3pr53ndjxa8p6m8t5hbky","ip_addr":"192.168.10.77","user_id":"rwoqioeq1fb8bmc7ncpkn3orzh","method":"POST","err_where":"DoActionRequest","http_code":400,"err_details":"status=404"}
{"level":"error","ts":1557452435.6091328,"caller":"mlog/log.go:172","msg":"Action integration error","path":"/api/v4/posts/odhmocrzjt8sddf1emp8nc4ety/actions/rse5m516epdy7pbew75bmbwg1h","request_id":"hpgsc9a58pdffp9tp4eiua9x8h","ip_addr":"192.168.10.77","user_id":"rwoqioeq1fb8bmc7ncpkn3orzh","method":"POST","err_where":"DoActionRequest","http_code":400,"err_details":"status=404"}

I get similar messages when I use the poll plugin.

#2

Hi @paraita,

For the remind plugin, have you followed our guide on interactive dialogs: https://docs.mattermost.com/developer/interactive-dialogs.html?

For the poll plugin, have you had a chance to take a look at the troubleshooting guide: https://github.com/matterpoll/matterpoll#troubleshooting?

#3

@paraita

You need to set the SiteURL https://docs.mattermost.com/administration/config-settings.html?highlight=site%20url#site-url

1 Like
#4

Thanks for replying, I’m running this from a docker container, is it safe to modify it ?

#5

Thanks Amy I’ll have a look at the interative-dialogs page !
For the poll plugin, it says I need to modify the site URL which is pointing to the machine hosting the current mattermost instance, of course since it’s running from a container, the guest host is different from the host. I’ll try to set it to the host’s name as well, let’s see how it goes

#6

I had other problems after modifying the SiteURL to reflect the container’s host. I reverted to the url that is used on our premises. I don’t think using plugins from inside a container and Nginx on the host machine acting as a reverse proxy is a good setup in my case. I’ll just remove those plugins.