Giter VIP home page Giter VIP logo

Comments (9)

agnivade avatar agnivade commented on June 7, 2024 1

Hey @max1mde - The mattermost CLI has been deprecated and does not import attachments. Please use option 1 mentioned here: https://docs.mattermost.com/onboard/migrate-from-slack.html#import-data-into-mattermost. We should probably remove option 2 now. cc @cwarnermm for a doc update.

from mattermost.

max1mde avatar max1mde commented on June 7, 2024
{"timestamp":"2024-02-08 12:37:56.488 +01:00","level":"info","msg":"Preparing file upload from file system","caller":"app/import_functions.go:1291","file_name":"data/bulk-export-attachments/F06HW7FJ0GY_Clipboard_-_January_5__2024_12_03_PM.png"}
{"timestamp":"2024-02-08 12:37:56.492 +01:00","level":"info","msg":"Uploading file with name","caller":"app/import_functions.go:1327","file_name":"data/bulk-export-attachments/F06HW7FJ0GY_Clipboard_-_January_5__2024_12_03_PM.png"}
{"timestamp":"2024-02-08 12:37:56.516 +01:00","level":"debug","msg":"Received HTTP request","caller":"web/handlers.go:172","method":"POST","url":"/api/v4/users/status/ids","request_id":"d3gtdointinttdobtky7gc3pzo","user_id":"13mm7e13ipn1bcsmrpomgoun6c","status_code":"200"}
{"timestamp":"2024-02-08 12:37:56.533 +01:00","level":"debug","msg":"GetImageOrientation failed","caller":"app/file.go:1104","error":"failed to decode exif data: exif: failed to find exif intro marker"}
{"timestamp":"2024-02-08 12:37:56.550 +01:00","level":"info","msg":"Preparing file upload from file system","caller":"app/import_functions.go:1291","file_name":"data/bulk-export-attachments/F06H0QG2CTG_download__3_.jpg"}
{"timestamp":"2024-02-08 12:37:56.550 +01:00","level":"info","msg":"Uploading file with name","caller":"app/import_functions.go:1327","file_name":"data/bulk-export-attachments/F06H0QG2CTG_download__3_.jpg"}
{"timestamp":"2024-02-08 12:37:56.564 +01:00","level":"debug","msg":"GetImageOrientation failed","caller":"app/file.go:1104","error":"failed to decode exif data: EOF"}
{"timestamp":"2024-02-08 12:37:56.604 +01:00","level":"info","msg":"Bulk import worker finished","caller":"app/import.go:121","bulk_import_worker_id":"3s4fkfw15prndkhysg61tqtarr","processed_lines":13}
{"timestamp":"2024-02-08 12:37:56.811 +01:00","level":"info","msg":"Preparing file upload from file system","caller":"app/import_functions.go:1291","file_name":"data/bulk-export-attachments/F06FXAGC5PV_Night-Sky-Clouds-Sunset-Scenery-4k-Wallpapers-scaled.jpg"}
{"timestamp":"2024-02-08 12:37:56.813 +01:00","level":"info","msg":"Uploading file with name","caller":"app/import_functions.go:1327","file_name":"data/bulk-export-attachments/F06FXAGC5PV_Night-Sky-Clouds-Sunset-Scenery-4k-Wallpapers-scaled.jpg"}
{"timestamp":"2024-02-08 12:37:56.901 +01:00","level":"debug","msg":"GetImageOrientation failed","caller":"app/file.go:1104","error":"failed to decode exif data: EOF"}
{"timestamp":"2024-02-08 12:37:57.191 +01:00","level":"info","msg":"Preparing file upload from file system","caller":"app/import_functions.go:1291","file_name":"data/bulk-export-attachments/F06GA3260LR_Night-Sky-Clouds-Sunset-Scenery-4k-Wallpapers-scaled.jpg"}
{"timestamp":"2024-02-08 12:37:57.192 +01:00","level":"info","msg":"Uploading file with name","caller":"app/import_functions.go:1327","file_name":"data/bulk-export-attachments/F06GA3260LR_Night-Sky-Clouds-Sunset-Scenery-4k-Wallpapers-scaled.jpg"}
{"timestamp":"2024-02-08 12:37:57.258 +01:00","level":"debug","msg":"GetImageOrientation failed","caller":"app/file.go:1104","error":"failed to decode exif data: EOF"}

from mattermost.

max1mde avatar max1mde commented on June 7, 2024

I found this #21228

from mattermost.

amyblais avatar amyblais commented on June 7, 2024

Opened: https://mattermost.atlassian.net/browse/MM-56801.

from mattermost.

WerVa avatar WerVa commented on June 7, 2024

same situation when importing rocketchat files

{"timestamp":"2024-02-12 16:26:52.115 Z","level":"info","msg":"Uploading file with name","caller":"app/import_functions.go:1325","file_name":"files/rocketchat_uploads/eur7XXS698FDx4gLv/bg_product_5900017059037.png"} {"timestamp":"2024-02-12 16:26:52.151 Z","level":"debug","msg":"GetImageOrientation failed","caller":"app/file.go:1104","error":"failed to decode exif data: exif: failed to find exif intro marker"} {"timestamp":"2024-02-12 16:26:56.968 Z","level":"info","msg":"Preparing file upload from file system","caller":"app/import_functions.go:1289","file_name":"files/rocketchat_uploads/JacfnQbCiERzWuyCK/bannermobile.png"} {"timestamp":"2024-02-12 16:26:56.976 Z","level":"info","msg":"Uploading file with name","caller":"app/import_functions.go:1325","file_name":"files/rocketchat_uploads/JacfnQbCiERzWuyCK/bannermobile.png"} {"timestamp":"2024-02-12 16:26:57.004 Z","level":"debug","msg":"GetImageOrientation failed","caller":"app/file.go:1104","error":"failed to decode exif data: exif: failed to find exif intro marker"}

from mattermost.

agnivade avatar agnivade commented on June 7, 2024

@max1mde - You mentioned that the export zip contains all the images. Could you check if F06HW7FJ0GY_Clipboard_-_January_5__2024_12_03_PM.png contains in the zip file or not? Just verifying if somehow it went into a different folder or it's not included at all.

from mattermost.

max1mde avatar max1mde commented on June 7, 2024

@max1mde - You mentioned that the export zip contains all the images. Could you check if F06HW7FJ0GY_Clipboard_-_January_5__2024_12_03_PM.png contains in the zip file or not? Just verifying if somehow it went into a different folder or it's not included at all.

This is in the export-with-emails-and-attachments.zip file
image

After I excecuted the mmetl transform slack --team slack-import --file export-with-emails-and-attachments.zip --output mattermost_import.jsonl command

This file is in the data/bulk-export-attachments folder:
image

Finally I imported the data using the mattermost import bulk ./mattermost_import.jsonl --import-path ./data --apply command but the attachments are missing in mattermost.

from mattermost.

cwarnermm avatar cwarnermm commented on June 7, 2024

Thanks for the flag, @agnivade! I'll ensure the docs are updated.

from mattermost.

max1mde avatar max1mde commented on June 7, 2024

Hey @max1mde - The mattermost CLI has been deprecated and does not import attachments. Please use option 1 mentioned here: https://docs.mattermost.com/onboard/migrate-from-slack.html#import-data-into-mattermost. We should probably remove option 2 now. cc @cwarnermm for a doc update.

Yes this method actually worked! The images are all working now.
Thanks.

from mattermost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.