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 <-> discord) Starting gateway failed: Bridge irc failed to start: connection failed dial tcp: lookup hostname: i/o timeout #2156

Open
mertoalex opened this issue Jun 6, 2024 · 1 comment
Labels

Comments

@mertoalex
Copy link

mertoalex commented Jun 6, 2024

Describe the bug

I can't bridge discord <-> irc, it doesn't connects to irc, idk why.

To Reproduce

first I downloaded and opened the source code zip on github, then compiled with:

┌────(mertoalex  Core2DuoChadbian)-[/tmp/matterbridge-master]
└─$ TAGS="nomsteams,nozulip,noharmony,nohelper,nomatrix,nomattermost,nomumble,nonctalk,norocketchat,noslack,nosshchat,nosteam,notelegram,novk,nowhatsapp,nowhatsappmulti"
┌────(mertoalex  Core2DuoChadbian)-[/tmp/matterbridge-master]
└─$ go build -tags ${TAGS} .

then made config file called test.toml and run it.

Expected behavior

successfully opened and bridged discord <-> irc

Screenshots/debug logs

┌────(mertoalex  Core2DuoChadbian)-[/tmp/matterbridge-master]
└─$ ./matterbridge -debug -conf test.toml
[0000]  INFO main:         [setupLogger:/tmp/matterbridge-master/matterbridge.go:104] Enabling debug logging.
[0000]  INFO main:         [main:/tmp/matterbridge-master/matterbridge.go:44] Running version 1.26.1-dev 
[0000]  INFO main:         [main:/tmp/matterbridge-master/matterbridge.go:46] WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.
[0000] DEBUG discord:      [New:/tmp/matterbridge-master/bridge/discord/discord.go:62] Using automatic webhooks
[0000]  INFO router:       [Start:/tmp/matterbridge-master/gateway/router.go:66] Parsing gateway bridge
[0000]  INFO router:       [Start:/tmp/matterbridge-master/gateway/router.go:75] Starting bridge: discord.mydiscord 
[0000]  INFO discord:      [Connect:/tmp/matterbridge-master/bridge/discord/discord.go:70] Connecting
[0000]  INFO discord:      [Connect:/tmp/matterbridge-master/bridge/discord/discord.go:83] Connection succeeded
[0012] DEBUG discord:      [RefreshGuildWebhooks:/tmp/matterbridge-master/bridge/discord/transmitter/transmitter.go:143] Refreshing guild webhooks
[0013] DEBUG discord:      [RefreshGuildWebhooks:/tmp/matterbridge-master/bridge/discord/transmitter/transmitter.go:168] Refreshing guild webhooks using global permission
[0013]  INFO discord:      [assignHooksByAppID:/tmp/matterbridge-master/bridge/discord/transmitter/transmitter.go:255] Picking up webhook channel=[DELETED] id=[DELETED] name=matterbridge 1:21:45AM
[0013]  INFO discord:      [assignHooksByAppID:/tmp/matterbridge-master/bridge/discord/transmitter/transmitter.go:255] Picking up webhook channel=[DELETED] id=[DELETED] name=matterbridge 10:29:43PM
[0013]  INFO discord:      [assignHooksByAppID:/tmp/matterbridge-master/bridge/discord/transmitter/transmitter.go:255] Picking up webhook channel=[DELETED] id=[DELETED] name=matterbridge 10:36:27PM
[0013]  INFO discord:      [assignHooksByAppID:/tmp/matterbridge-master/bridge/discord/transmitter/transmitter.go:255] Picking up webhook channel=[DELETED] id=[DELETED] name=matterbridge 7:53:12PM
[0013]  INFO discord:      [assignHooksByAppID:/tmp/matterbridge-master/bridge/discord/transmitter/transmitter.go:255] Picking up webhook channel=[DELETED] id=[DELETED] name=matterbridge 2:18:53AM
[0013]  INFO discord:      [joinChannels:/tmp/matterbridge-master/bridge/bridge.go:77] discord.mydiscord: joining ID:[DELETED] (ID: ID:[DELETED]discord.mydiscord)
[0013]  INFO router:       [Start:/tmp/matterbridge-master/gateway/router.go:75] Starting bridge: irc.myirc 
[0013]  INFO irc:          [Connect:/tmp/matterbridge-master/bridge/irc/irc.go:81] Connecting irc.oftc.net:6697
[0013] DEBUG irc:          [getClient:/tmp/matterbridge-master/bridge/irc/irc.go:306] setting pingdelay to 1m0s
[0018] ERROR irc:          [doConnect:/tmp/matterbridge-master/bridge/irc/irc.go:194] disconnect: error: dial tcp: lookup irc.oftc.net: i/o timeout
[0018] FATAL main:         [main:/tmp/matterbridge-master/matterbridge.go:66] Starting gateway failed: Bridge irc.myirc failed to start: connection failed dial tcp: lookup irc.oftc.net: i/o timeout
[E] 96: ./matterbridge -debug -conf test.toml

Environment (please complete the following information):

Additional context

idek if it's about matterbridge or girc too-

test.toml:

[irc]
[irc.myirc]
Nick="[DELETED]"
UserName="[DELETED]"
Server="irc.oftc.net:6697"
UseTLS=false
SkipTLSVerify=true
RemoteNickFormat="[{NICK} @ {PROTOCOL}]: "

[discord]
[discord.mydiscord]
Token="[DELETED]"
Server="[DELETED]"
AutoWebhooks=true
RemoteNickFormat="[{NICK} @ {PROTOCOL}]: "
PreserveThreading=true
ShowEmbeds=true
ShowJoinPart=true

[[gateway]]
name="bridge"
enable=true

[[gateway.inout]]
account="irc.myirc"
channel="#test-matterbridge-000000"

[[gateway.inout]]
account="discord.mydiscord"
channel="ID:1180267933130293338"
@mertoalex mertoalex added the bug label Jun 6, 2024
@Labfox
Copy link

Labfox commented Oct 23, 2024

Your DNS takes too long to respond

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants