Comments (10)
I've added a link to that documentation in #3254, but have been unsuccessful in completing it. A few issues:
- The migration feature isn't there in v0.2.0, so it needs the latest Docker image (which makes my doc link misleading).
- Database permissions need to be manually altered in order to run the migration, and it's still not straightforward to modify the mautrix-meta-messenger service etc. as needed.
- Migration requires identical bot name and username prefixes, which I think is only partially supported by the playbook variables.
hs_token
andas_token
may or may not have to be identical, I didn't manage to get it running either way.
At this point, I'm very curious about people who have made the switch already, did you get any message history without db migration? A meta bridge issue mentions backfill, does that pull in old messages?
from matrix-docker-ansible-deploy.
I've started preparing to run migration, but didn't take the plunge yet. I think these configuration variables will be needed to match the old bot username etc. at least.
matrix_mautrix_meta_messenger_appservice_username_prefix: facebook
matrix_mautrix_meta_messenger_bridge_username_prefix: facebook
matrix_mautrix_meta_messenger_version: latest
matrix_mautrix_meta_messenger_bridge_permissions_custom:
'@<myuser>:{{ matrix_domain }}': admin
I needed version because db migration wasn't enabled in the meta_messenger version used by default. Good luck @MrAnno !
from matrix-docker-ansible-deploy.
@MrAnno I'll be your friend! π Following your instructions now but the meta bridge won't start at the first just setup-all
, app registration fails. I suspect it's the bot username and will retry tomorrow with that removed.
from matrix-docker-ansible-deploy.
Migration did not work for me and i had to manually remove each room from my matrix element session and then re-add the chats... it was painful but fine in the end
from matrix-docker-ansible-deploy.
@Joshndroid But did you get chat history? π±
from matrix-docker-ansible-deploy.
@jswetzen no I lost all history. I am not too concerned with the Facebook messages history though so was okay.
I was more annoyed that I ran everything and it never did the clean up/out. It was weird at first as I thought that the new bridge was broken until I realised that it was the old Facebook bridge rooms and I needed to find the new ones created by the new meta bridge and delete the old ones
from matrix-docker-ansible-deploy.
I lost all history as well, but got hundreds of extra rooms.
The old bridge only created rooms as they were used, this one pulled out to I think at least 6 months.
from matrix-docker-ansible-deploy.
Meta started to enable their e2e encryption automatically, even though I refused to set their PIN thingy for long months:
It seems I can't delay the migration any longer.
I'll let you know if I succeed.
from matrix-docker-ansible-deploy.
It hit me that I donβt actually have a life or friends, so naturally, my first task was to make some new friends and ask them to use Facebook instead of Matrix, just to justify my desire of migrating to the new bridge.
Anyway, three months late, but here are the successful steps of the migration:
- Enable the new bridge, override the username prefixes (note the
_
character in thebridge
prefix and the lack of it in theappservice
prefix:
matrix_mautrix_meta_messenger_enabled: true
matrix_mautrix_meta_messenger_bridge_username_prefix: facebook_
# only if you want the same bot username as before
# matrix_mautrix_meta_messenger_appservice_username_prefix: facebook
- Run
just setup-all
- Stop the
mautrix-facebook
bridge:systemctl stop matrix-mautrix-facebook
- Exec into the
mautrix-meta-messenger
container and run the migration command.
docker exec -it matrix-mautrix-meta-messenger bash
/usr/bin/mautrix-meta -c /config/config.yaml -r /config/registration.yaml --no-update \
--db-migrate-from postgres://matrix_mautrix_facebook:<pass>@matrix-postgres:5432/matrix_mautrix_facebook?sslmode=disable
- Start the
mautrix-facebook
bridge again and runclean-rooms
- Disable
mautrix-facebook
in your configuration - Run
just setup-all
again - Send a
login
message to the new bridge bot
from matrix-docker-ansible-deploy.
How kind you are, thank you :)
I realized that my steps won't work properly if one wants to use the same appservice username for both bridges.
I didn't mind keeping them separate, the only thing that mattered to me was my existing chat history with others.
from matrix-docker-ansible-deploy.
Related Issues (20)
- Error in /roles/galaxy/systemd_service_manager/tasks/restart_specified.yml HOT 1
- matrix-bot-draupnir is still unable to start HOT 1
- MatchingServerName after installing HOT 2
- Default Configuration File Error and Cross-Site Access Issue with Etherpad Integration in Jitsi Meet HOT 3
- mautrix-slack configuration format outdated HOT 5
- Feature Request: Enhanced Support for TURN Multiplexing with Cloudflare Calls in Jitsi Meet Deployment
- .well-known folder missing
- Signal bridge encryption not working after changing to double puppet appservice HOT 3
- Traefik error on new install HOT 2
- Mautrix whatsapp and telegram bots not working HOT 1
- Using IP:port values in coturn bind_port vars breaks prosody config HOT 2
- Outdated client when trying to login whatsApp bridge bot HOT 1
- My Laptop SSD corrupted and I lost my config without a backup. What now? HOT 1
- Change root data folder HOT 1
- Config for Signal doesn't change the Name HOT 2
- matrix-media-repo: Generate media-repo signing key fails
- heisenbridge media_path prefix wrong in traefik HOT 1
- cannot pull the new synapse-admin fork docker image from etke.cc
- Access Tokens for BaiBot HOT 1
- SSH Port for Borg Backup HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matrix-docker-ansible-deploy.