NC-matrix-matterbridge 2-way communication

Support intro

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 22.1.1 (via snap)
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4 (via snap – according to GitHub - nextcloud-snap/nextcloud-snap: ☁️📦 Nextcloud packaged as a snap)
PHP version (eg, 7.4): PhP 7.4 (via snap – according to https://github.com/nextcloud-snap/nextcloud-snap)

The issue you are facing:
Enable the bundled matterbridge, connect the matterbridge to a matrix room on matrix.org. If I type a message on the NC-Talk side it shows up in the matrix room (via the Element app) as [nctalk] “example message”. However, if I type a message into the matrix room (via the Element app), then nothing shows up on the NC-Talk side. I expected a message to be shows by bridge-bot.

I have used two different room settings, the public #room:matrix.org and the “internal room address” Both had the same effect.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Install and enable the bundled matterbridge app
  2. Enable matterbridge for a room, add a new matrix bridge
  3. Set the matrix room and login details
  4. Send test message from the NC talk room (and see it appear in the matrix room)
  5. Post a message in the matrix.org room (see nothing appear in the NC talk room)

The output of your Nextcloud log in Admin > Logging:

From the Matterbridge log

time="2021-09-12T21:13:38Z" level=info msg="Running version 1.22.3 e45bbe45" prefix=main
time="2021-09-12T21:13:38Z" level=info msg="Parsing gateway myGateway" prefix=router
time="2021-09-12T21:13:38Z" level=info msg="Starting bridge: matrix.0 " prefix=router
time="2021-09-12T21:13:38Z" level=info msg="Connecting https://matrix.org" prefix=matrix
time="2021-09-12T21:13:38Z" level=info msg="Connection succeeded" prefix=matrix
time="2021-09-12T21:13:38Z" level=info msg="matrix.0: joining !baErXDzMymrfFMZTFD:matrix.org (ID: !baErXDzMymrfFMZTFD:matrix.orgmatrix.0)" prefix=matrix
time="2021-09-12T21:13:39Z" level=info msg="Starting bridge: nctalk.1 " prefix=router
time="2021-09-12T21:13:39Z" level=info msg=Connecting prefix=nctalk
time="2021-09-12T21:13:39Z" level=info msg=Connected prefix=nctalk
time="2021-09-12T21:13:39Z" level=info msg="nctalk.1: joining p65tuocw (ID: p65tuocwnctalk.1)" prefix=nctalk
time="2021-09-12T21:13:39Z" level=info msg="Gateway(s) started succesfully. Now relaying messages" prefix=main

From main admin logging

See

The config.php (set by snap):

<?php
$CONFIG = array (
'apps_paths' => 
array (
0 => 
array (
'path' => '/snap/nextcloud/current/htdocs/apps',
'url' => '/apps',
'writable' => false,
),
1 => 
array (
'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
'url' => '/extra-apps',
'writable' => true,
),
),
'supportedDatabases' => 
array (
0 => 'mysql',
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'redis' => 
array (
'host' => '/tmp/sockets/redis.sock',
'port' => 0,
),
'log_type' => 'file',
'logfile' => '/var/snap/nextcloud/current/logs/nextcloud.log',
'logfilemode' => 416,
'passwordsalt' => 'yep, this was changed',
'secret' => 'yeah, this was changed too',
'trusted_domains' => 
array (
0 => 'localhost',
1 => 'nc.infinitylab.io',
),
'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
'dbtype' => 'mysql',
'version' => '22.1.1.2',
'overwrite.cli.url' => 'http://localhost',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'yeah, this was changed',
'installed' => true,
'instanceid' => 'oc61z7wh99xd',
'default_phone_region' =>
array (
1 => 'CA',
),
'maintenance' => false,
'mail_smtpmode' => 'smtp',
'mail_smtpauth' => 1,
'mail_sendmailmode' => 'smtp',
'loglevel' => 2,
);

any solution did you get?

I am facing same issue with Rocket chat.

For Matrix, disable E2E on the room, that did it for me