bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)
Describe the bug
I have a semi-working bridge connecting Telegram, Matrix, XMPP and Whatsapp.. I sent one image (png) from matrix and one image (jpg) from telegram. Instead of receiving a link to the file in the directory specified in MediaDownloadPath the XMPP client receives:
To Reproduce
Establish a bridge between Matrix, XMPP, Telegram and send media files with matrix and telegram.
Expected behavior
The XMPP client should receive a link to the file in the directory specified in MediaDownloadPath
Screenshots/debug logs
Seems to be a permission problem:
[0072] ERROR gateway: [handleFiles:gateway/handlers.go:104] mediaserver path failed, could not mkdir: mkdir /var/www/bridge/upload/60de7a0f: no such file or directory &os.PathError{Op:"mkdir", Path:"/var/www/bridge/upload/60de7a0f", Err:0x2}
Environment (please complete the following information):
OS: Ubuntu 20.04.1 LTS
Matterbridge version: version: 1.20.0 1a5353d
Additional context
[general]
#check https://github.com/42wim/matterbridge/wiki/Settings#general
#some options for general configs such as
LogFile="/var/log/matterbridge.log"
MediaDownloadPath="/var/www/bridge/upload"
MediaDownloadSize=5000000
[matrix.privacytools]
#Server is your homeserver (eg https://matrix.org)
Server="https://chat.privacytools.io"
#login/pass of your bot.
#Use a dedicated user for this and not your own!
#Messages sent from this user will not be relayed to avoid loops.
Login="bridge-bot"
Password=""
RemoteNickFormat="[{PROTOCOL}] <{NICK}> "
#Whether to send the homeserver suffix. eg ":matrix.org" in @username:matrix.org
#to other bridges, or only send "username".(true only sends username)
#OPTIONAL (default false)
NoHomeServerSuffix=false
[xmpp.blabber]
Server="blabber.im:5222"
#Jid your userid
Jid="bridge-bot@blabber.im"
Password=""
Muc="conference.blabber.im"
Nick="xmppbot"
RemoteNickFormat="[{PROTOCOL}] <{NICK}> "
[telegram.tgbot]
#See https://core.telegram.org/bots#6-botfather
#and https://www.linkedin.com/pulse/telegram-bots-beginners-marco-frau
Token=""
RemoteNickFormat="({PROTOCOL}) <{NICK}> "
MessageFormat="HTMLNick"
[whatsapp.wabot]
# Number you will use as a relay bot. Tip: Get some disposable sim card, don't rely on
# your own number.
Number=""
# First time that you login you will need to scan QR code, then credentials will be saved in
# a session file.
# If you won't set SessionFile then you will need to scan QR code on every restart.
# optional (by default the session is stored only in memory, till restarting matterbridge)
SessionFile="session-wa.gob"
# If your terminal is white we need to invert QR code in order for it to be scanned properly
# optional (default false)
QrOnWhiteTerminal=false
# Messages will be seen by other WhatsApp contacts as coming from the bridge.
# Original nick will be part of the message.
RemoteNickFormat="[{PROTOCOL}] @{NICK}: "
[[gateway]]
name="bridge"
enable=true
[[gateway.inout]]
account="xmpp.blabber"
channel="bridge-test"
[[gateway.inout]]
account="matrix.privacytools"
channel="#bridge-test:privacytools.io"
[[gateway.inout]]
account="telegram.tgbot"
channel="-100ID"
[[gateway.inout]]
account="whatsapp.wabot"
channel="xxxx-xxxx@g.us"
The path is set to MediaDownloadPath="/var/www/bridge/upload"
but the actual path on the filesystem is /var/www/bridges/upload/ with bridges in plural.
Describe the bug I have a semi-working bridge connecting Telegram, Matrix, XMPP and Whatsapp.. I sent one image (png) from matrix and one image (jpg) from telegram. Instead of receiving a link to the file in the directory specified in
MediaDownloadPath
the XMPP client receives:To Reproduce Establish a bridge between Matrix, XMPP, Telegram and send media files with matrix and telegram.
Expected behavior The XMPP client should receive a link to the file in the directory specified in
MediaDownloadPath
Screenshots/debug logs Seems to be a permission problem:
However,
The matterbridge is started by the user
root
.The log file:
Environment (please complete the following information):
Additional context