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
Bridge is unable to accept DM invites #1270
Comments
I don't know if helps but you can try run |
Trying to invite the appservice, this is whats happening for us.
Joining rooms, querying users on IRC both works. This is our registration.yml id: foo
hs_token: bar
as_token: baz
url: 'http://127.0.0.1:8009'
sender_localpart: appservice-irc
de.sorunome.msc2409.push_ephemeral: true
protocols:
- irc
namespaces:
aliases:
- exclusive: true
regex: '#.*:hackint\.org'
users:
- exclusive: true
regex: '@irc_.*:hackint\.org'
rate_limited: false {
"database": {
"connectionString": "nedb://var/lib/matrix-appservice-irc/data",
"engine": "nedb"
},
"homeserver": {
"domain": "hackint.org",
"enablePresence": true,
"url": "https://matrix.hackint.org"
},
"ircService": {
"ircHandler": {
"leaveConcurrency": 10,
"mapIrcMentionsToMatrix": "on"
},
"logging": {
"level": "debug",
"toConsole": true
},
"passwordEncryptionKeyPath": "/var/lib/matrix-appservice-irc/passkey.pem",
"permissions": {
"@hexa:example.com": "admin"
},
"servers": {
"irc.hackint.org": {
"allowExpiredCerts": true,
"botConfig": {
"enabled": false
},
"dynamicChannels": {
"aliasTemplate": "$CHANNEL",
"createAlias": true,
"enabled": true,
"federate": true,
"joinRule": "public",
"published": true
},
"excludedUsers": [],
"icon": "https://hackint.org/images/avatar.png",
"ircClients": {
"allowNickChanges": true,
"concurrentReconnectLimit": 512,
"idleTimeout": 604800,
"lineLimit": 5,
"maxClients": 4096,
"nickTemplate": "$DISPLAY|m"
},
"matrixClients": {
"displayName": "$NICK",
"userTemplate": "@irc_$NICK"
},
"membershipLists": {
"enabled": true,
"global": {
"ircToMatrix": {
"incremental": true,
"initial": true,
"requireMatrixJoined": true
},
"matrixToIrc": {
"incremental": true,
"initial": true,
"requireMatrixJoined": true
}
}
},
"modePowerMap": {
"o": 50,
"v": 1
},
"name": "hackint",
"port": 6697,
"privateMessages": {
"enabled": true,
"federate": true
},
"quitDebounce": {
"enabled": false
},
"sasl": false,
"ssl": true,
"sslselfsign": false
}
}
}
} We are running 02591d4 and I've cherrypicked both #1337 and #1339. Our synapse 1.34.0 configuration looks like this: no_tls: true
server_name: hackint.org
pid_file: /run/matrix-synapse.pid
public_baseurl: 'https://matrix.hackint.org'
listeners:
- port: 8008
bind_address: 127.0.0.1
type: http
tls: false
x_forwarded: true
resources:
- names:
- client
- metrics
compress: true
- names:
- federation
compress: false
database:
name: psycopg2
args:
database: matrix-synapse
user: matrix-synapse
event_cache_size: 10K
verbose: 0
log_config: /nix/store/zc10h40shgrr55qhm14jqywrgih3wwda-log_config.yaml
rc_messages_per_second: 0.2
rc_message_burst_count: 10
federation_rc_window_size: 1000
federation_rc_sleep_limit: 10
federation_rc_sleep_delay: 500
federation_rc_reject_limit: 50
federation_rc_concurrent: 3
media_store_path: /var/lib/matrix-synapse/media
uploads_path: /var/lib/matrix-synapse/uploads
max_upload_size: 10M
max_image_pixels: 32M
dynamic_thumbnails: false
url_preview_enabled: false
recaptcha_private_key: ''
recaptcha_public_key: ''
enable_registration_captcha: false
turn_uris: []
turn_shared_secret: ''
enable_registration: false
recaptcha_siteverify_api: 'https://www.google.com/recaptcha/api/siteverify'
turn_user_lifetime: 1h
user_creation_max_duration: 1209600000
bcrypt_rounds: 12
allow_guest_access: false
account_threepid_delegates: null
room_invite_state_types:
- m.room.join_rules
- m.room.canonical_alias
- m.room.avatar
- m.room.name
macaroon_secret_key: ...
expire_access_token: false
enable_metrics: true
report_stats: false
signing_key_path: /var/lib/matrix-synapse/homeserver.signing.key
key_refresh_interval: 1d
perspectives:
servers:
matrix.org:
verify_keys:
'ed25519:auto':
key: Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw
redaction_retention_period: 7
app_service_config_files:
- /var/lib/matrix-appservice-irc/registration.yml
retention:
enabled: true
default_policy:
min_lifetime: 1m
max_lifetime: 1m
allowed_lifetime_min: 1m
allowed_lifetime_max: 1m
purge_jobs:
- interval: 5m |
To clarify: It works if I stop the appservice, remove all mentions of my account from nedb, start the appservice again and have the appservice bot invite me. It still doesn't work if I invite the appservice to a DM or a room. My account is also the bridge admin. |
This is matrix-org/synapse#2807. Workaround is to |
That made the errors go away, but the appservice still won't join the rooms it is invited to.
|
I'm not sure why that's happening, but that sounds more like a synapse issue than ours. |
happened to me as well edit: ok, i simply didn't set the firewall up properly... |
Many months later. We (@mweinelt and I) picked this topic back up. We reset everything and started from scratch (empty synapse, empty appservice irc, ...). On first startup, everything seemingly works except for the Admin room with the appservice. We are getting invites but are unable to accept the invites. I managed to start a new DM with the appservice after creating the profile (as posted above). New users are still unable to accept an invite from the appservice into the admin room. After explicitly allowing anyone (in particular matrix.org) to fetch our HS's public key via federation we were able to accept the invites. It is a bit confusing to see that a closed-network of servers doesn't work without federating with matrix.org. |
hi today it seem that prevously bridged rooms have similar problem, i guess, in matrix network: after solvin the problem of not appears the bridge, i try to rejoin my ones.. checking that irc channels does not show the responses.. but at the side of matrix noted that "there are already bridged channel at irc".. intersting.. i just removed the bridge and try to remade, got this error:
becouse appservice it not in the room and must be invited and cannot get invites in matrix public networks |
Describe the bug
When inviting the IRC bridge to a DM it attempts to accept the invitation, but is unable to because of a
404 - Profile was not found
error.I'm not sure whether this is actually a bug of this bridge of a bug/misconfiguration of my synapse instance, so I asked on #synapse:matrix.org first. However, no one was able to help me there and since the configuration of my synapse instance is mostly vanilla, I decided to create an issue here.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The bridge joins the room.
Log
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: