Area: Product
Sub-Area: Slack Integration
Applies to: Cloud
Issue
The DataHub Slack App install fails or does not finish. The failure appears right after you approve the app's permissions on Slack's screen, when Slack hands control back to DataHub.
You Might Be Asking
- How do I install the DataHub Slack App? I can't find an "Install Slack App" button.
- Was the installation error fixed in v0.3.13? Did that release add the
/datahubcommand? - Slack asks for admin approval. What do I do?
- The test notification tells me to re-connect DataHub to Slack. What do I do?
Cause
There are three known causes:
- Installation endpoint bug. In older DataHub Cloud versions, the Slack installation endpoint did not accept empty dictionaries for optional parameters. The fix shipped in DataHub Cloud v0.3.13.1-acryl, a patch release on v0.3.13. It is not in the base v0.3.13-acryl release. If your instance is older than v0.3.13.1-acryl, contact DataHub Support.
- Workspace admin approval. Some Slack workspaces need a workspace admin to approve the app before the install can finish.
- Expired or stale tokens or installation. The App Configuration tokens or the existing installation are no longer valid.
The /datahub slash command and automatic hydration of users' Slack member IDs did not come with this fix. Both shipped in DataHub Cloud v0.3.5. Installing or reinstalling the Slack bot turned on the /datahub command.
Solution
The Slack App is available on DataHub Cloud only.
Install the Slack App
You do not install by clicking an "Install Slack App" button. The install starts with App Configuration tokens that you generate in Slack, and you finish it by clicking Connect to Slack in DataHub.
- A Slack Workspace Admin goes to api.slack.com/apps.
- Click Create App, then click Generate Token.
- Select your workspace and click Generate.
- Copy the Access Token and the Refresh Token.
- Go back to the DataHub Slack Integration setup page. Paste the tokens into the App Configuration Token and App Configuration Refresh Token fields. Click Connect to Slack. The button stays disabled until both fields are filled.
- Slack redirects you to confirm the app's permissions and finish the install. This step can need workspace admin approval.
- Go to the Platform Notifications page, enter a channel and click Send a test notification.
See the Slack App Setup guide.
If DataHub shows an error before Slack opens
DataHub shows a message on the settings page. For example:
- "Slack app-configuration tokens are required to create a new installation. Enter your app configuration access and refresh tokens, then try again."
- "Failed to create the Slack app. Please verify your app-configuration tokens are valid and try again."
Generate new App Configuration tokens and try again.
If the error says the installation state could not be found
The message says the installation state expires after a number of minutes. Start the installation again. If it keeps happening, do a Manual Installation Refresh as described in Troubleshoot Slack Issues.
If Slack asks for admin approval
- Click the button to request approval.
- When a workspace admin approves it, the Slack bot sends a message with a link that finishes the install.
- If that message never arrives, open the DataHub app at api.slack.com/apps and finish the installation there.
- Go to
<your-datahub-url>/settings/notificationsand send a test notification.
If the test notification says to re-connect DataHub to Slack
Refresh the existing app:
- The person who first installed the app generates new App Configuration tokens. Delete expired tokens first.
- Paste the new tokens into DataHub and click Re-connect.
The other option is to create a new installation. If you do:
- Re-invite the new bot into every private channel the old bot was in.
- Uninstall the old app from your workspace's Manage Apps page.
See Troubleshoot Slack Issues.
If notifications still do not arrive
If the test notification works but real notifications do not arrive, remember that people are never notified about their own actions. If that is not the cause, contact DataHub Support.