-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Slack import failing #3911
Comments
I'm getting the following error when importing from Slack with Rocket.Chat 0.37.1 Exception in defer callback: TypeError: Cannot read property 'id' of undefined at Slack. (packages/rocketchat_importer-slack/server.coffee:221:77) at [object Object]. (packages/rocketchat_importer-slack/server.coffee:212:9) at packages/dispatch_run-as-user/packages/dispatch_run-as-user.js:186:1 at [object Object]..extend.withValue (packages/meteor/dynamics_nodejs.js:56:1) at Object.Meteor.runAsUser (packages/dispatch_run-as-user/packages/dispatch_run-as-user.js:185:1) at fn (packages/rocketchat_importer-slack/server.coffee:206:13) at packages/rocketchat_importer-slack/server.coffee:205:5 at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1) at packages/meteor/timers.js:6:1 at runWithEnvironment (packages/meteor/dynamics_nodejs.js:110:1) |
Hmmm, they might have changed their exported file format recently, that's the only thing that comes to my mind |
encountered the same problems, any updates yet? |
Same issue here. Is there any way we could help with this issue? Debugging, Testing .. whatever, we're willing to help. Cheers |
@TwizzyDizzy please post the error which is happening |
Hi @graywolf336, here are two error messages. Let me explain. We were using slack far before rocket.chat was introduced. We had two domains allowed for the slack team. @domain1 + @domain2. The current rocket.chat instance is connected to an Active Directory that only contains users with mail addresses of domain2. That being said, there are two different error messages, depending on whether I select or deselect all users on import. Import error with all users (from the import) deselected:
Import error with all users (from the import) selected:
Cheers |
@TwizzyDizzy Okay, and which version of Rocket.Chat are you running? As the second error looks similar to ones reported a few versions back. |
It's currently 0.42.0. I'll try to update, then try the import again and get back to you. Cheers |
This and #4899 are duplicates of each other, the original issue posted will be closed here shortly. @TwizzyDizzy Did you manage to update rocket.chat and get it fully imported without errors? As the second error was one we fixed before, but if it's still happening then there is something else at play. |
Alright. I have now updated to 0.45.0. When deselecting all users before import (in the import dialogue), the error still appears:
When importing with all users checked, the import succeeds. Now here's my question: How is the merging of user accounts done, if one already did connect an Active Directory? Some match users in the AD, some not.
Cheers |
@TwizzyDizzy Okay, that error will be fixed when #4952 gets merged. Here are some answers:
Does that answer your questions? |
@graywolf336 it does indeed :) Thanks mate! |
@TwizzyDizzy Awesome, glad to be of help! 😄 |
Hello everyone, hello @graywolf336 I have installed the version 0.68.2 of RocketChat and I have been testing the import of Slack for several weeks and I am told by the friends above, comes to the selection screen of channels and users, I click on it and quickly start counting in the upper left corner and before reaching the register 20 approx. skips an import error. Could the Slack export format have changed? Do you have any solution to this problem? If I can help with something with the info, I am at your disposal. Thank you |
Your Rocket.Chat version: 0.36
I am testing out the Slack import process and this does not seem to be working.
I have made a fresh export from Slack and chosen the .zip file from this process to import from, and I can see the list of users and the channels to potentially import.
Trying to import with and without users seems to give the same failures.
When the import process is started, I get the pulsing Rocket.Chat icon showing an import title and 0/45702 messages to import. Nothing seems to happen for a very long time...
Checking the log, I can see this :
Exception in defer callback: Error: Invalid user [error-invalid-user] at [object Object].Meteor.methods.createChannel (server/methods/createChannel.coffee:4:14) at [object Object].methodsMap.(anonymous function) (server/lib/debug.js:17:26) at maybeAuditArgumentChecks (livedata_server.js:1698:12) at livedata_server.js:1611:18 at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1) at [object Object]._.extend.apply (livedata_server.js:1610:45) at [object Object]._.extend.call (livedata_server.js:1553:17) at [object Object].<anonymous> (packages/rocketchat_importer-slack/server.coffee:182:27) at packages/dispatch_run-as-user/packages/dispatch_run-as-user.js:186:1 at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I am guessing this is what is preventing the import from running.
If I change from the import screen to something else in the UI, I get a red toaster message with the text :
"The importer was not defined correctly. it is missing the Import class"
The text was updated successfully, but these errors were encountered: