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

IRC isn't relaying out despite being configured to. #348

Closed
EpicnessTwo opened this issue Jan 28, 2018 · 2 comments
Closed

IRC isn't relaying out despite being configured to. #348

EpicnessTwo opened this issue Jan 28, 2018 · 2 comments

Comments

@EpicnessTwo
Copy link

Please answer the following questions.

Which version of matterbridge are you using?

version: 1.7.0-dev

If you're having problems with mattermost please specify mattermost version.

Please describe the expected behavior.

Relay messages between 3 services (IRC, Discord, Telegram) without any issues.

Please describe the actual behavior.

Use logs from running matterbridge -debug if possible.

I've just migrated Matterbridge from my old server to a newer one. When it was running on the old server, there was no issues, messages were able to move between all 3 of the connected services.

Since the migration, messages on Discord and Telegram are relayed to both of the other services but the messages from IRC are not being relayed (They are showing from the other services). There's been no config changes and the old server had a recently updated version of matterbridge so it could be safe to rule out cross version issues.

I've included a log below of a test message being sent from all 3 linked services.

DEBU[2018-01-28T16:59:03Z] Receiving from telegram: &tgbotapi.Message{MessageID:5492, From:(*tgbotapi.User)(0xc4205a40a0), Date:1517158742, Chat:(*tgbotapi.Chat)(0xc4205edd40), ForwardFrom:(*tgbotapi.User)(nil), ForwardFromChat:(*tgbotapi.Chat)(nil), ForwardFromMessageID:0, ForwardDate:0, ReplyToMessage:(*tgbotapi.Message)(nil), EditDate:0, Text:"Testing Telegram", Entities:(*[]tgbotapi.MessageEntity)(nil), Audio:(*tgbotapi.Audio)(nil), Document:(*tgbotapi.Document)(nil), Game:(*tgbotapi.Game)(nil), Photo:(*[]tgbotapi.PhotoSize)(nil), Sticker:(*tgbotapi.Sticker)(nil), Video:(*tgbotapi.Video)(nil), VideoNote:(*tgbotapi.VideoNote)(nil), Voice:(*tgbotapi.Voice)(nil), Caption:"", Contact:(*tgbotapi.Contact)(nil), Location:(*tgbotapi.Location)(nil), Venue:(*tgbotapi.Venue)(nil), NewChatMembers:(*[]tgbotapi.User)(nil), LeftChatMember:(*tgbotapi.User)(nil), NewChatTitle:"", NewChatPhoto:(*[]tgbotapi.PhotoSize)(nil), DeleteChatPhoto:false, GroupChatCreated:false, SuperGroupChatCreated:false, ChannelChatCreated:false, MigrateToChatID:0, MigrateFromChatID:0, PinnedMessage:(*tgbotapi.Message)(nil), Invoice:(*tgbotapi.Invoice)(nil), SuccessfulPayment:(*tgbotapi.SuccessfulPayment)(nil)}  module=telegram
DEBU[2018-01-28T16:59:03Z] Sending message from EpicKitty on telegram.main to gateway  module=telegram
DEBU[2018-01-28T16:59:03Z] Message is config.Message{Text:"Testing Telegram", Channel:"-1001090930351", Username:"EpicKitty", UserID:"124702091", Avatar:"", Account:"telegram.main", Event:"", Protocol:"", Gateway:"", Timestamp:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, ID:"5492", Extra:map[string][]interface {}{}}  module=telegram
DEBU[2018-01-28T16:59:03Z] Sending config.Message{Text:"Testing Telegram", Channel:"-1001090930351", Username:"EpicKitty", UserID:"124702091", Avatar:"", Account:"telegram.main", Event:"", Protocol:"", Gateway:"gateway1", Timestamp:time.Time{wall:0xbe939e35c1c9f9e8, ext:22082102062, loc:(*time.Location)(0x14937c0)}, ID:"5492", Extra:map[string][]interface {}{}} from telegram.main (-1001090930351) to irc.espernet (#Epic)
DEBU[2018-01-28T16:59:03Z] Receiving config.Message{Text:"Testing Telegram", Channel:"#Epic", Username:"[telegram] <E\u200bpicKitty> ", UserID:"124702091", Avatar:"", Account:"telegram.main", Event:"", Protocol:"", Gateway:"gateway1", Timestamp:time.Time{wall:0xbe939e35c1c9f9e8, ext:22082102062, loc:(*time.Location)(0x14937c0)}, ID:"", Extra:map[string][]interface {}{}}  module=irc
DEBU[2018-01-28T16:59:03Z] Sending config.Message{Text:"Testing Telegram", Channel:"-1001090930351", Username:"EpicKitty", UserID:"124702091", Avatar:"", Account:"telegram.main", Event:"", Protocol:"", Gateway:"gateway1", Timestamp:time.Time{wall:0xbe939e35c1c9f9e8, ext:22082102062, loc:(*time.Location)(0x14937c0)}, ID:"5492", Extra:map[string][]interface {}{}} from telegram.main (-1001090930351) to discord.landofkittens (epic)
DEBU[2018-01-28T16:59:03Z] Receiving config.Message{Text:"Testing Telegram", Channel:"epic", Username:"[**telegram**] <**EpicKitty**> ", UserID:"124702091", Avatar:"", Account:"telegram.main", Event:"", Protocol:"", Gateway:"gateway1", Timestamp:time.Time{wall:0xbe939e35c1c9f9e8, ext:22082102062, loc:(*time.Location)(0x14937c0)}, ID:"", Extra:map[string][]interface {}{}}  module=discord
DEBU[2018-01-28T16:59:03Z] Broadcasting using token (API)                module=discord
DEBU[2018-01-28T16:59:22Z] Receiving message &discordgo.Message{ID:"407218106658848778", ChannelID:"266009835684757504", Content:"Testing Discord", Timestamp:"2018-01-28T16:59:22.374000+00:00", EditedTimestamp:"", MentionRoles:[]string{}, Tts:false, MentionEveryone:false, Author:(*discordgo.User)(0xc4201512d0), Attachments:[]*discordgo.MessageAttachment{}, Embeds:[]*discordgo.MessageEmbed{}, Mentions:[]*discordgo.User{}, Reactions:[]*discordgo.MessageReactions(nil), Type:0}  module=discord
DEBU[2018-01-28T16:59:22Z] Sending message from EpicKitty on discord.landofkittens to gateway  module=discord
DEBU[2018-01-28T16:59:22Z] Message is config.Message{Text:"Testing Discord", Channel:"epic", Username:"EpicKitty", UserID:"176091690254336000", Avatar:"https://cdn.discordapp.com/avatars/176091690254336000/a_f9724c5346eea238061b4277af74f5c9.jpg", Account:"discord.landofkittens", Event:"", Protocol:"", Gateway:"", Timestamp:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, ID:"407218106658848778", Extra:map[string][]interface {}(nil)}  module=discord
DEBU[2018-01-28T16:59:22Z] Sending config.Message{Text:"Testing Discord", Channel:"epic", Username:"EpicKitty", UserID:"176091690254336000", Avatar:"https://cdn.discordapp.com/avatars/176091690254336000/a_f9724c5346eea238061b4277af74f5c9.jpg", Account:"discord.landofkittens", Event:"", Protocol:"", Gateway:"gateway1", Timestamp:time.Time{wall:0xbe939e3aa1bd7d39, ext:41618154619, loc:(*time.Location)(0x14937c0)}, ID:"407218106658848778", Extra:map[string][]interface {}(nil)} from discord.landofkittens (epic) to irc.espernet (#Epic)
DEBU[2018-01-28T16:59:22Z] Receiving config.Message{Text:"Testing Discord", Channel:"#Epic", Username:"[discord] <E\u200bpicKitty> ", UserID:"176091690254336000", Avatar:"https://cdn.discordapp.com/avatars/176091690254336000/a_f9724c5346eea238061b4277af74f5c9.jpg", Account:"discord.landofkittens", Event:"", Protocol:"", Gateway:"gateway1", Timestamp:time.Time{wall:0xbe939e3aa1bd7d39, ext:41618154619, loc:(*time.Location)(0x14937c0)}, ID:"", Extra:map[string][]interface {}(nil)}  module=irc
DEBU[2018-01-28T16:59:22Z] Sending config.Message{Text:"Testing Discord", Channel:"epic", Username:"EpicKitty", UserID:"176091690254336000", Avatar:"https://cdn.discordapp.com/avatars/176091690254336000/a_f9724c5346eea238061b4277af74f5c9.jpg", Account:"discord.landofkittens", Event:"", Protocol:"", Gateway:"gateway1", Timestamp:time.Time{wall:0xbe939e3aa1bd7d39, ext:41618154619, loc:(*time.Location)(0x14937c0)}, ID:"407218106658848778", Extra:map[string][]interface {}(nil)} from discord.landofkittens (epic) to telegram.main (-1001090930351)
DEBU[2018-01-28T16:59:22Z] Receiving config.Message{Text:"Testing Discord", Channel:"-1001090930351", Username:"[discord] <EpicKitty> ", UserID:"176091690254336000", Avatar:"https://cdn.discordapp.com/avatars/176091690254336000/a_f9724c5346eea238061b4277af74f5c9.jpg", Account:"discord.landofkittens", Event:"", Protocol:"", Gateway:"gateway1", Timestamp:time.Time{wall:0xbe939e3aa1bd7d39, ext:41618154619, loc:(*time.Location)(0x14937c0)}, ID:"", Extra:map[string][]interface {}(nil)}  module=telegram
DEBU[2018-01-28T16:59:32Z] handlePrivMsg() EpicKitty[Jig] Testing IRC girc.Event{Source:(*girc.Source)(0xc4207e09c0), Tags:girc.Tags(nil), Command:"PRIVMSG", Params:[]string{"#Epic"}, Trailing:"Testing IRC", EmptyTrailing:false, Sensitive:false}  module=irc
DEBU[2018-01-28T16:59:32Z] detected ISO-8859-1 confidence 50             module=irc
DEBU[2018-01-28T16:59:32Z] Sending message from #Epic on irc.espernet to gateway  module=irc

Any steps to reproduce the behavior?

Start matterbridge, issue is present.

Please add your configuration file

(be sure to exclude or anonymize private data (tokens/passwords))

#WARNING: as this file contains credentials, be sure to set correct file permissions
###################################################################
#IRC section
###################################################################
#REQUIRED to start IRC section
[irc]
[irc.espernet]
Server="irc.esper.net:6667"
Password=""
UseTLS=false
UseSASL=false
SkipTLSVerify=true
Charset=""
Nick="EB"
NickServNick="NickServ"
NickServPassword="[REDACTED]"
NickServUsername=""
MessageDelay=100
MessageQueue=500
MessageLength=400
IgnoreNicks=""
IgnoreMessages=""
RemoteNickFormat="[{PROTOCOL}] <{NOPINGNICK}> "
ShowJoinPart=true
StripNick=false

###################################################################
#discord section
###################################################################
[discord]
[discord.landofkittens]
Token="[REDACTED]"
Server="Land of Kittens"
ShowEmbeds=false
UseUserName=false
EditDisable=false
EditSuffix=""
IgnoreNicks="ircspammer1 ircspammer2"
IgnoreMessages=""
RemoteNickFormat="[**{PROTOCOL}**] <**{NICK}**> "
ShowJoinPart=false
StripNick=false

###################################################################
#telegram section
###################################################################
[telegram]
[telegram.main]
Token="[REDACTED]"
MessageFormat=""
UseFirstName=false
UseInsecureURL=false
EditDisable=false
EditSuffix=""
IgnoreNicks=""
IgnoreMessages=""
RemoteNickFormat="[{PROTOCOL}] <{NICK}> "
ShowJoinPart=false
StripNick=false

#################################################################
#gateway
#################################################################
[[gateway]]
name="gateway1"
enable=true
[[gateway.inout]]
account="irc.espernet"
channel="#Epic"
[[gateway.inout]]
account="discord.landofkittens"
channel="epic"
[[gateway.inout]]
account="telegram.main"
channel="-1001090930351"
@42wim
Copy link
Owner

42wim commented Jan 28, 2018

Are you latest dev ?
There was an issue with upper/mixedcase channel names, try changing channel="#Epic" to channel="#epic"

@EpicnessTwo
Copy link
Author

Ah, that seems to have fixed it. I am on the latest dev.

Thank you kind sir :)

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

2 participants