-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Callback error when exporting conversation #234
Comments
I'm wondering if I can just run the I guess I could run the command again and exclude all the channels that it already downloaded, but then will they be added to |
Hey @natea , if you run the export of this particular isolated thread:
Also, this is quite strange:
looks like a EC2 instance, and now I'm wondering why was it trying to fetch from there, it may have been an intermittent failure |
@rusq I ran that command and didn't get an error:
Are you saying that it was trying to retrieve a file that was hosted on an EC2 instance, that perhaps that EC2 instance is no longer running, which is why the file retrieval failed? Does Slackdump have a timeout mechanism so if it's unable to retrieve a file from a remote site after a particular duration, it will skip it and go on with the next one? What do you suggest I do at this point? Do I try running the slackdump command again, or will that reset from the beginning and re-download everything? |
Most likely at that moment there was an internet issue, or Slack was doing something obscene with it's cluster nodes. I suspect if you retry the full export it will complete successfully. Let me know how it goes? |
@rusq I ran a full export again last night, and got another similar error but on a different channel:
Rather than do a full export, would it be better to explicitly name all the channels so that I can have more control over which ones are downloaded and then if there's an error, I can remove the completed channels from the list, and re-run the export with just hte ones that haven't been downloaded already? I'm concerned that I could do this export multiple times and it will continue to get hung up on a channel, requiring me to do a full export again. The current export directory is approximately 12GB, so it's a non-trivial amount of data to download, especially with all the attachments. Alternatively, could some error handling be added to the script that when encountering an error like this, it would skip over that channel or attachment, and try again later, and not abort the entire operation? |
Hey Nate, I have introduced retry logic on network errors in #235 , you can check v2.4.2 on the Releases page. By default it attempts to retry 3 times with an exponential backoff of 1, 2, 4 seconds. Let me know if it works for you. Note to self: ported to |
That worked! It appears to have downloaded all 615 channels.
It looks like it got the private channels too, and the multi-person DMs (signified by Any idea why |
btw, is there a way to speed up the export, perhaps increasing the number of download threads? I'm on a 1Gigabit connection if that makes a difference. I'm going to do another export using |
Strangely the Mattermost export took 9 hr while the normal export took 8 hrs.
|
Hey Nate, thanks for the feedback, glad to hear that it worked. It must have been slack server latency/rate limiting, because mattermost and standard export formats are exactly the same in the way that they treat messages and threads. The only difference is where they put the file attachments. Regarding the connection speed — short answer: you can experiment with the rate limiting in the slackdump CLI, by default it's set to safe values as to prevent hitting the rate limit error from Slack. Long answer: there are several factors that affect that, from "affects the most" to "affects the least":
|
Re |
Describe the bug
Callback error when exporting conversation. Any idea why this error occured?
To Reproduce
Steps to reproduce the behavior:
./slackdump -export my-slack-export -download -export-type standard
Expected behavior
I would have expected the command to complete without giving an error.
Output
This is the error that I observed:
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: