-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do we build and use the slackarchive-import tool? #10
Comments
I'll try to make a docker file for the same, then it will be starting just the docker file. |
Added a Dockerfile to https://github.com/dutchcoders/slackarchive-import, including how to use it. |
Hi Remco - great stuff
But I am getting this error on import: |
Same error as Paul here. The Team and Users load in, but it crashes out on the Channel.created field when trying to do the channels. |
I can see in code the Channel.created field is commented out in the Channel Model - not sure if this is the issue though.. |
okay I have debugged this (I am learning go on the go :) eg. I don't know how to fix this in the code, without writing a custom unmarshaller, as the error I think is in the nlopes/slack library. If I run a regex on the channels.json to replace |
Just to clarify if it wasn't clear, there is a workaround :
|
@paulwilton That's awesome, thanks for that! regex replace worked a treat for me on those 2 fields and my import has just finished without error :) |
i guess the workaround could simply be coded into the importer - pre-process the channels.json file with those regexes. |
I think this is something where there are differences between the export files and the models being used in the APIs. Just verified that dependencies are up to date, so that's not the issue. Let me see how I can fix this. Thanks for the thorough debugging and information, that helps a lot. |
Created a new PR for this nlopes/slack#314. I'll wait for this PR to be accepted, then it will be updated in this repo. |
@nl5887 Please fix PR |
I have installed slackarchive and running at http://51.15.224.203:8080 Then I git-ed slackarchive-import. So the current folder structure looks - The Slack domain is - unofficed So extracted all the contents of the zip file in /root/slackarchive-import/data/unofficed/ Updated the token!
After lots of struggle, I ran this line. It shows a string of "user already exists" and then shows this error - But the Jsons are supplied by Slack only. What did I do wrong? Any change in slack exports? |
Hi Remco - how do we build and use the archive importer ?
The text was updated successfully, but these errors were encountered: