mautrix / slack

A Matrix-Slack puppeting bridge
GNU Affero General Public License v3.0
70 stars 19 forks source link

Room not added to a space #57

Closed dimm0 closed 3 months ago

dimm0 commented 3 months ago

A newly added room appears under "others" and is not integrated into the space with all other rooms.

I see the https://github.com/mautrix/discord/issues/65 ticket, is there any similar command for this bridge?

tulir commented 3 months ago

Missing info like logs and bridge version

dimm0 commented 3 months ago

These are the logs related to the slack room:

2024-08-13T16:42:28.67Z DBG Request completed action="handle remote event" bridge_evt_type=RemoteEventChatResync duration=51.886282 event_ts= method=PUT portal_id=T8XUDC2CF-CEACWSN03 portal_key={"portal_id":"T8XUDC2CF-CEACWSN03"} portal_mxid=!dioUVxGbzTTqeTmrFe:matrix.nrp-nautilus.io req_body={"bridgebot":"@slackbot:matrix.nrp-nautilus.io","channel":{"displayname":"#noc","id":"T8XUDC2CF-CEACWSN03"},"creator":"@slackbot:matrix.nrp-nautilus.io","network":{"avatar_url":"mxc://matrix.nrp-nautilus.io/WddRWZiuRcjydoHVnOOQzBeE","displayname":"nren","id":"T8XUDC2CF"},"protocol":{"avatar_url":"mxc://maunium.net/pVtzLmChZejGxLqmXtQjFxem","displayname":"Slack","external_url":"https://slack.com","id":"slackgo"}} req_id=48 response_length=59 response_mime=application/json slack_latest_message_id=1723566786.504019 source_id=T8XUDC2CF-U01DXQAUCTU status_code=200 url=https://matrix.nrp-nautilus.io/_matrix/client/v3/rooms/%21dioUVxGbzTTqeTmrFe:matrix.nrp-nautilus.io/state/m.bridge/?ts=1723567348618&user_id=%40slackbot%3Amatrix.nrp-nautilus.io
2024-08-13T16:42:28.711Z DBG Request completed action="handle remote event" bridge_evt_type=RemoteEventChatResync duration=41.271892 event_ts= method=PUT portal_id=T8XUDC2CF-CEACWSN03 portal_key={"portal_id":"T8XUDC2CF-CEACWSN03"} portal_mxid=!dioUVxGbzTTqeTmrFe:matrix.nrp-nautilus.io req_body={"bridgebot":"@slackbot:matrix.nrp-nautilus.io","channel":{"displayname":"#noc","id":"T8XUDC2CF-CEACWSN03"},"creator":"@slackbot:matrix.nrp-nautilus.io","network":{"avatar_url":"mxc://matrix.nrp-nautilus.io/WddRWZiuRcjydoHVnOOQzBeE","displayname":"nren","id":"T8XUDC2CF"},"protocol":{"avatar_url":"mxc://maunium.net/pVtzLmChZejGxLqmXtQjFxem","displayname":"Slack","external_url":"https://slack.com","id":"slackgo"}} req_id=51 response_length=59 response_mime=application/json slack_latest_message_id=1723566786.504019 source_id=T8XUDC2CF-U01DXQAUCTU status_code=200 url=https://matrix.nrp-nautilus.io/_matrix/client/v3/rooms/%21dioUVxGbzTTqeTmrFe:matrix.nrp-nautilus.io/state/uk.half-shot.bridge/?ts=1723567348670&user_id=%40slackbot%3Amatrix.nrp-nautilus.io

Should I add all logs?

The version I first saw it in was 230f357b6e26cf9e540d25f98ba89d73bc1ab681-amd64, then upgraded to the latest 09d694f14759a73e16a3272dc5b5626e7e4d46cb-amd64

tulir commented 3 months ago

Was it just rooms created on the old version, or did a new room on the new version also not get added to the space?

dimm0 commented 3 months ago

I had the older version of the bridge running for 2 weeks. I went to slack and added the new room to my slack account. The bot immediately invited me to the room in matrix. I joined the room, but noticed it's not added to the space. I restarted the bridge pod, and it complained I need to fix the config. I did that, now the bridge is happy again, but room is still not in the space. I left the room, made the bot invite me again, joined the room again, but it's still out of the space. Currently it's the new version of the bridge running.

I can try to make the bot del the room and recreate I guess?

tulir commented 3 months ago

!slack delete-portal can be used to delete rooms, or you can clear the parent_id and in_space columns in the portal table and restart the bridge.

dimm0 commented 3 months ago

That worked, thanks! 🎉

niebloomj commented 3 months ago

Which solution worked?

dimm0 commented 3 months ago

!slack delete-portal in the room with the problem