FOSSRIT / infrastructure

Set of scripts, Ansible playbooks/roles, and other tools to automate and manage FOSS@MAGIC infrastructure
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Slack bridge gone to one-way #25

Closed ct-martin closed 5 years ago

ct-martin commented 5 years ago

Slack bridge works IRC -> Slack, but messages from the Slack side aren't going to IRC

ct-martin commented 5 years ago

@jwflory ^

jwflory commented 5 years ago

The bot is now online. I simply restarted it (it didn't seem to be crashed or reporting anything out of the ordinary). Closing as fixed. :clapper:

For future reference for me, this was the only error log from journalctl, and it seemed to be days before the bridge switched to one-way:

Dec 04 11:53:42 ritlug-irc matterbridge[26989]: time="2018-12-04T11:53:42-05:00" level=error msg="&errors.errorString{s:"message handling resulted in an empty message: &slack.MessageEvent{Msg:slack.Msg{Type:\"message\", Channel:\"C7KQPV7J8\", User:\"\", Text:\"\", Timestamp:\"1543942427.029600\", ThreadTimestamp:\"\", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), LastRead:\"\", Subscribed:false, UnreadCount:0, SubType:\"message_replied\", Hidden:true, DeletedTimestamp:\"\", EventTimestamp:\"1543942427.029600\", BotID:\"\", Username:\"\", Icons:(*slack.Icon)(nil), Inviter:\"\", Topic:\"\", Purpose:\"\", Name:\"\", OldName:\"\", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:\"\", Files:[]slack.File(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:\"\", ReplyTo:0, Team:\"\", Reactions:[]slack.ItemReaction(nil), ResponseType:\"\", ReplaceOriginal:false, DeleteOriginal:false}, SubMessage:(*slack.Msg)(0xc0000c0fc0)}"}" prefix=slack
Dec 04 11:53:48 ritlug-irc matterbridge[26989]: time="2018-12-04T11:53:48-05:00" level=error msg="&errors.errorString{s:"message handling resulted in an empty message: &slack.MessageEvent{Msg:slack.Msg{Type:\"message\", Channel:\"C7KQPV7J8\", User:\"\", Text:\"\", Timestamp:\"1543942433.029800\", ThreadTimestamp:\"\", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), LastRead:\"\", Subscribed:false, UnreadCount:0, SubType:\"message_replied\", Hidden:true, DeletedTimestamp:\"\", EventTimestamp:\"1543942433.029800\", BotID:\"\", Username:\"\", Icons:(*slack.Icon)(nil), Inviter:\"\", Topic:\"\", Purpose:\"\", Name:\"\", OldName:\"\", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:\"\", Files:[]slack.File(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:\"\", ReplyTo:0, Team:\"\", Reactions:[]slack.ItemReaction(nil), ResponseType:\"\", ReplaceOriginal:false, DeleteOriginal:false}, SubMessage:(*slack.Msg)(0xc00026cd80)}"}" prefix=slack
Dec 04 11:55:12 ritlug-irc matterbridge[26989]: time="2018-12-04T11:55:12-05:00" level=error msg="&errors.errorString{s:"message handling resulted in an empty message: &slack.MessageEvent{Msg:slack.Msg{Type:\"message\", Channel:\"C7KQPV7J8\", User:\"\", Text:\"\", Timestamp:\"1543942517.030200\", ThreadTimestamp:\"\", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), LastRead:\"\", Subscribed:false, UnreadCount:0, SubType:\"message_replied\", Hidden:true, DeletedTimestamp:\"\", EventTimestamp:\"1543942517.030200\", BotID:\"\", Username:\"\", Icons:(*slack.Icon)(nil), Inviter:\"\", Topic:\"\", Purpose:\"\", Name:\"\", OldName:\"\", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:\"\", Files:[]slack.File(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:\"\", ReplyTo:0, Team:\"\", Reactions:[]slack.ItemReaction(nil), ResponseType:\"\", ReplaceOriginal:false, DeleteOriginal:false}, SubMessage:(*slack.Msg)(0xc0000c1b00)}"}" prefix=slack
Dec 04 11:56:23 ritlug-irc matterbridge[26989]: time="2018-12-04T11:56:23-05:00" level=error msg="&errors.errorString{s:"message handling resulted in an empty message: &slack.MessageEvent{Msg:slack.Msg{Type:\"message\", Channel:\"C7KQPV7J8\", User:\"\", Text:\"\", Timestamp:\"1543942588.030500\", ThreadTimestamp:\"\", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), LastRead:\"\", Subscribed:false, UnreadCount:0, SubType:\"message_replied\", Hidden:true, DeletedTimestamp:\"\", EventTimestamp:\"1543942588.030500\", BotID:\"\", Username:\"\", Icons:(*slack.Icon)(nil), Inviter:\"\", Topic:\"\", Purpose:\"\", Name:\"\", OldName:\"\", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:\"\", Files:[]slack.File(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:\"\", ReplyTo:0, Team:\"\", Reactions:[]slack.ItemReaction(nil), ResponseType:\"\", ReplaceOriginal:false, DeleteOriginal:false}, SubMessage:(*slack.Msg)(0xc0000c0900)}"}" prefix=slack
Dec 04 11:56:29 ritlug-irc matterbridge[26989]: time="2018-12-04T11:56:29-05:00" level=error msg="&errors.errorString{s:"message handling resulted in an empty message: &slack.MessageEvent{Msg:slack.Msg{Type:\"message\", Channel:\"C7KQPV7J8\", User:\"\", Text:\"\", Timestamp:\"1543942594.030700\", ThreadTimestamp:\"\", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), LastRead:\"\", Subscribed:false, UnreadCount:0, SubType:\"message_replied\", Hidden:true, DeletedTimestamp:\"\", EventTimestamp:\"1543942594.030700\", BotID:\"\", Username:\"\", Icons:(*slack.Icon)(nil), Inviter:\"\", Topic:\"\", Purpose:\"\", Name:\"\", OldName:\"\", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:\"\", Files:[]slack.File(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:\"\", ReplyTo:0, Team:\"\", Reactions:[]slack.ItemReaction(nil), ResponseType:\"\", ReplaceOriginal:false, DeleteOriginal:false}, SubMessage:(*slack.Msg)(0xc00026c480)}"}" prefix=slack
Dec 04 11:57:09 ritlug-irc matterbridge[26989]: time="2018-12-04T11:57:09-05:00" level=error msg="&errors.errorString{s:"message handling resulted in an empty message: &slack.MessageEvent{Msg:slack.Msg{Type:\"message\", Channel:\"C7KQPV7J8\", User:\"\", Text:\"\", Timestamp:\"1543942635.030900\", ThreadTimestamp:\"\", IsStarred:false, PinnedTo:[]string(nil), Attachments:[]slack.Attachment(nil), Edited:(*slack.Edited)(nil), LastRead:\"\", Subscribed:false, UnreadCount:0, SubType:\"message_replied\", Hidden:true, DeletedTimestamp:\"\", EventTimestamp:\"1543942635.030900\", BotID:\"\", Username:\"\", Icons:(*slack.Icon)(nil), Inviter:\"\", Topic:\"\", Purpose:\"\", Name:\"\", OldName:\"\", Members:[]string(nil), ReplyCount:0, Replies:[]slack.Reply(nil), ParentUserId:\"\", Files:[]slack.File(nil), Upload:false, Comment:(*slack.Comment)(nil), ItemType:\"\", ReplyTo:0, Team:\"\", Reactions:[]slack.ItemReaction(nil), ResponseType:\"\", ReplaceOriginal:false, DeleteOriginal:false}, SubMessage:(*slack.Msg)(0xc00026d440)}"}" prefix=slack
Dec 07 15:40:07 ritlug-irc systemd[1]: Stopping Matterbridge...  # when I restarted the bridge