-
Notifications
You must be signed in to change notification settings - Fork 45
plugin crash when add reminder #88
Comments
@tgly307 I setup a docker server 5.10 (without nginx) to replicate a simple setup. I set my sitURL to localhost:8065 (for the docker container internal). I was able to schedule and interact with reminders both with typed and dialog commands without issue. From your debugging, I suspect API calls are not working correctly, and I am curious if your siteURL |
If siteURL is not to blame, I will try more so to replicate. |
@scottleedavis hi, sorry for the late reply. |
@tgly307 do other plugins work? (E.g. https://github.com/scottleedavis/mattermost-plugin-spybot or any others...) I will do my best to replicate if so. |
Yes, all other plugins work fine. Including spybot and analysis bot |
I have not been able to replicate the error but added a half dozen new npe protection checks. please give this a try: Also, if it doesn't work, could you share |
I install v0.2.1, but the problem still exists.
|
Ok! I was able to replicate some of the behavior using mattermost-docker. Could you please try v0.2.2 ? Please disable/enable before usage too. Also, existing reminders/buttons will not work, but new ones should. hopefully.. . :) If that does't work, would you please share the docker-compose.yml and app Dockerfile configuration with me: scottleedavis at gmail ? |
Unfortunately, the issue still exists. T^T |
Thank you for letting me know your setup, I was able to reproduce 100% of the time. Running the log level at DEBUG level output, I noticed your guess about alpine & timezone was correct.
Looks like another has had this same issue on alpine, and solved it adding the tzdata apk to alpine. From there, I changed mattermost-docker/app/Dockerfile , and added the tzdata apk to the install
This solved the problem in my tests, and I added a PR to add tzdata to the main docker repo. mattermost/mattermost-docker#390 Does this work as a solution for you @tgly307? |
It's a good solution to avoid other time zone issues. |
Thank you for that link... It helps the case that mattermost-docker app can provide tzdata. While the plugin could only support local or UTC, this will not work well for teams that span timezones, for example community.mattermost.com. |
mattermost-docker accepted the PR! Update to that and verify solution? |
wow, that's great! |
I update the Dockerfile and it works as expected! Thanks for working on it. The issue can be closed if you want. :) |
👍 |
I install the plugin and enable it, then test it with command
/remind list
, plugin return the messageNo reminders
correctly.When I use
/remind
command, the dialog can trigger correctly, but when I set the reminder with this way, plugin throw an errorunexpected EOF
and crash.Then I tried to restart the plugin, it can't accept any command even
/remind list
, the error is alsounexpected EOF
Only after disable & enable and execute command
/remind __clear
, the plugin return right message with command/remind list
Then I tried add reminder with command
/remind me Do the dishes in 1 day
, it failed with same errorunexpected EOF
, the log is below{"level":"error","ts":1556710033.9267929,"caller":"mlog/log.go:172","msg":"RPC call ExecuteCommand to plugin failed.","plugin_id":"com.github.scottleedavis.mattermost-plugin-remind","error":"unexpected EOF"}
Env:
Plugin version 0.2.0
Mattermost server version 5.10.0 run by docker-compose, the siteURL is set with "https://demo.com".
my mattermost server runs after nginx, the container port is 8000, mapping to 8086 of host machine, then nginx forwarding requests to host's port 8086.
Do I set something wrong?
The text was updated successfully, but these errors were encountered: