nextcloud / talk_matterbridge

This app brings the Matterbridge binary to your server to connect Nextcloud Talk with other chat services
https://apps.nextcloud.com/apps/talk_matterbridge
GNU Affero General Public License v3.0
39 stars 7 forks source link

Matterbridge Matrix Bridge not working since both updated #61

Open v1-valux opened 2 years ago

v1-valux commented 2 years ago

Hello Nextcloud-Community,

i got sort of the same Issue as described here. I believe it stopped working since I updated Nextcloud and my Matrix instancea few weeks ago.

As stated by OP of the thread linked above, the issue was gone after a while (no clou why).. I guess my Issue could be a different rootcause, because it is not Telegram, but Matrix..

But I have no clou on how to troubleshoot this.

Matrix has had a recent change in Room versions (And a new Beta for 'Spaces'), but also with room version 6 (same version as from before the update) the bridge doesn't work anymore.. (I have not downgraded Matrix-Synapse tho)

I'm using the latest version of Matrix-Synapse (1.42.0)

Im using following versions of Talk/MB: Talk 12.1.1 Talk Matterbridge 1.22.4 (1.22.3 e45bbe45) Custom servers are configured (TURN/STUN)

This is the Matterbridge log (as nextcloud.log doesn't contain that issue):

time="2021-09-16T18:13:27Z" level=info msg="Running version 1.22.3 e45bbe45" prefix=main time="2021-09-16T18:13:27Z" level=info msg="Parsing gateway myGateway" prefix=router time="2021-09-16T18:13:27Z" level=info msg="Starting bridge: matrix.0 " prefix=router time="2021-09-16T18:13:27Z" level=info msg="Connecting https://matrix.server.name" prefix=matrix time="2021-09-16T18:13:28Z" level=info msg="Connection succeeded" prefix=matrix time="2021-09-16T18:13:28Z" level=info msg="matrix.0: joining #channel-name:server.name (ID: #channel-name:server.namematrix.0)" prefix=matrix time="2021-09-16T18:13:28Z" level=info msg="Starting bridge: nctalk.1 " prefix=router time="2021-09-16T18:13:28Z" level=info msg=Connecting prefix=nctalk time="2021-09-16T18:13:28Z" level=info msg=Connected prefix=nctalk time="2021-09-16T18:13:28Z" level=info msg="nctalk.1: joining mc3wk2xs (ID: mc3wk2xsnctalk.1)" prefix=nctalk time="2021-09-16T18:13:28Z" level=fatal msg="Starting gateway failed: Bridge nctalk.1 failed to join channel: json: cannot unmarshal array into Go struct field RoomInfo.ocs.data.lastMessage of type ocs.TalkRoomMessageData" prefix=main

Server configuration

Nextcloud configuration:

{
    "htaccess.RewriteBase": "\/",
    "memcache.local": "\\OC\\Memcache\\APCu",
    "apps_paths": [
        {
            "path": "\/var\/www\/html\/apps",
            "url": "\/apps",
            "writable": false
        },
        {
            "path": "\/var\/www\/html\/custom_apps",
            "url": "\/custom_apps",
            "writable": true
        }
    ],
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "localhost",
        "my-tld.de"
    ],
    "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
    "forwarded_for_headers": [
        "X-Forwarded-For",
        "HTTP_X_FORWARDED_FOR"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "pgsql",
    "version": "22.1.1.2",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "app_install_overwrite": [
        "occweb",
        "issuetemplate"
    ],
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "465",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpauth": 1,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpsecure": "ssl",
    "overwriteprotocol": "https",
    "overwrite.cli.url": "https:\/\/my-tld.de",
    "loglevel": 2,
    "theme": "",
    "maintenance": false,
    "default_phone_region": "DE",
    "default_language": "de",
    "default_locale": "de_DE"
}

I found no related bug-report or anything in changelogs that could explain, why the "lastMessage" attribute is not set anymore..

Also I'm wondering if matrix or nextcloud is the cause..

Any help is much appreciated.

Have a nice evening o/

gary-kim commented 2 years ago

Did you update recently? The presence of lastMessage should be optional now.

gary-kim commented 2 years ago

Yeah,you are on the most recent version. It should be fine if lastMessage is not set. Let me take a look at that.