Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Mattermost
  3. Migration to Cloudron from a Postgres backed instance

Migration to Cloudron from a Postgres backed instance

Scheduled Pinned Locked Moved Mattermost
migrationcloudronmattermost
6 Posts 2 Posters 846 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cvachery
    wrote on last edited by
    #1

    Hello,
    I'm currently trying to migrate my mattermost instance to Cloudron but I have an issue with all the attachments.
    I used the mattermost bulk export/import way as my current instance is using PostgreSQL. I succeeded to import all my messages (private or not), users, channels etc... but missing all the attachments.
    I did copy my data folder from my original server to the app/data/files/ folder of my cloudron instance (there is some ~20Go of attachments in 55k files inside a tree of 66k folders hopefully backups will be ok) my issue is that those files aren't seen by mattermost (either during the import or after)

    Some ideas of what I could be doing wrong?

    1 Reply Last reply
    0
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @cvachery I would hold off a bit on this. Current mattermost package uses MySQL but we have been told that it is getting deprecated and move to PostgreSQL is in order. I guess you have already seen https://forum.cloudron.io/topic/9707/mattermost-v8-0-and-postgresql/ since you commented there.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cvachery
        wrote on last edited by
        #3

        Yes I did but it not "urgent" but I need to move my mattermost instance ASAP so cloudron it is 🙂

        I did see it but as I don't when it will be available I decided to move on. I guess I will be able to move from MySQL to PostgreSQL anyway in the future

        And to answer my own question I missed a flag in the command --import-path /app/data/files/ which tells mattermost to look in this folder.

        It could be nice to add it to the documentation and in the same way edit the command to add the new path /app/code/EDITION/bin/mattermost where EDITION can be either team or enterprise

        girishG 1 Reply Last reply
        1
        • C Offline
          C Offline
          cvachery
          wrote on last edited by cvachery
          #4

          And to finish on the migration issues encountered :

          • My users lost their passwords during the migration (simply need to do forgotten password but still an inconvenience)
          • Couldn't migrate custom emoji (had to delete them from the jsonl file
          • User avatars were not migrated
          • All private messages are now unread
          girishG 1 Reply Last reply
          1
          • C cvachery

            Yes I did but it not "urgent" but I need to move my mattermost instance ASAP so cloudron it is 🙂

            I did see it but as I don't when it will be available I decided to move on. I guess I will be able to move from MySQL to PostgreSQL anyway in the future

            And to answer my own question I missed a flag in the command --import-path /app/data/files/ which tells mattermost to look in this folder.

            It could be nice to add it to the documentation and in the same way edit the command to add the new path /app/code/EDITION/bin/mattermost where EDITION can be either team or enterprise

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @cvachery thanks, docs updated at https://docs.cloudron.io/apps/mattermost/#migration .

            1 Reply Last reply
            1
            • C cvachery

              And to finish on the migration issues encountered :

              • My users lost their passwords during the migration (simply need to do forgotten password but still an inconvenience)
              • Couldn't migrate custom emoji (had to delete them from the jsonl file
              • User avatars were not migrated
              • All private messages are now unread
              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @cvachery yeah, I encountered the same (had to reset passwords post migration etc). Might be worth reporting upstream.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search