-
Notifications
You must be signed in to change notification settings - Fork 504
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
Dispatch Install, Deployment, and Config Support #2300
Comments
Hi @mvilanova |
@Hellboy7 what the error message is telling you is that the Slack App you created and deployed in your Workspace is not a member of the conversation where you're trying to run the slash commands. If everything is configured correctly, Dispatch should create an incident Slack channel and add your Slack app to it, so you can run its slash commands. |
The reason why we don't allow you to run slash commands that are built to interact with the incident in non-incident-related channels is because Dispatch needs to know the Slack channel id linked to the incident. |
Can you help me on the configuration part to sort this issue? I can set-up call if you are ok? |
Let's give it a try here first if you don't mind. Please share the steps you followed to setup Dispatch and the app/ bot in your Slack workspace. |
Hi @mvilanova I guess screwed up entire dispatch docker. I am planning to start fresh install from scratch. Just guide me step by step procedure to install. Ill do it myself. Initially, I installed dispatch from below mentioned github repo is that correct way? Then what is this github repo for ? I got confused when I saw below repo. which one to use to install dispatch? |
It depends on whether you want to run it in a container or somewhere else like an AWS instance. If you look at the docker-compose.yml file here, you'll see that docker will build the core image with the source code in https://github.com/Netflix/dispatch |
@mvilanova |
My current dispatch version in my local machine is > "dispatch, version 0.1.0.dev0". is this latest version? |
If this was a question, the answer is there's no script to install it. You need to checkout the source in your CI/ CD pipeline.
Yes, ignore the version number. https://github.com/Netflix/dispatch.git#latest will always be the latest stable version. |
ok once we deploy code in AWS, how do we start the dispatch? In docker, we do docker-compose to start the dispatch. |
You can start the web server by running the following command
and the scheduler by running
Adjust the path as necessary. |
Hi @mvilanova Thanks for your continuous support, and I appreciate that. I did a fresh installation of dispatch in the AWS EC2 instance. Installation is done through the docker image repo (https://github.com/Netflix/dispatch-docker) with an example Postgres SQL data dump for testing. Post that, I have configured slack for dispatch as per instructions in the docs (https://hawkins.gitbook.io/dispatch/administration-guide/incident/plugins/configuring-slack). This time it worked and whenever I create incident it automatically creates new slack channel for the incident. I have tested few slash commands which worked fine. Need to do further testing. Now I need support on to understand few things, I have created Application load balancer in AWS and mapped to dispatch server. I am able to access dispatch through application load balancer link. But, In some instances like in slack channel hyperlinks points to "localhost:8000". Another scenario is after creating incident below "Ticket" section in the same page where hyperlink points to "localhost:8000" and I want that to redirect that to my application load balancer link for example (http://dispatch.com). How to configure that, can you guide me on that? Check the screenshots for reference. |
Looks like you did not define |
Hi @mvilanova I read through the above mentioned blog post, and some of the info I was able to digest with my basic knowledge but, I felt it was complex. After reading the blog, one thing I noticed document says Is it possible to modify now? If yes, how to do it? and in which docker image ("dispatch_web_1" or "dispatch_core_1") we should configure the "DISPATCH_UI_URL"? Refer Screenshots. I searched ".env" file in the both docker images of "dispatch_web_1" & "dispatch_core_1" under the file locations which is mentioned below. I could not find any such file with extenion of ".env". where exactly this file is located? Refer Screenshots. or Should I install from the beginning? |
That's correct. The |
Hi @mvilanova As suggested, I have created new ".env" file in the "dispatch-docker" directory with the content mentioned below: Post that, I executed the "./install.sh" but finished in error. Please refer to the screenshot. Not able to rectify the error, what causing the issue. |
@mvilanova |
What was the issue @Hellboy7? |
Check the above screenshot: ERROR: error fetching: fatal: couldn't find remote ref latest |
Hi @mvilanova This is another error faced while working with dispatch CLI for database. I was playing around with I executed the command |
The message in the screenshot is not an error, but a warning. How did you fix the following error?
|
Hi @mvilanova In Additionally, I need support on a few things:
|
+1 for being able to delete the default org entirely or rename it so creating a new org wouldn't need to be necessary. |
See my comment here: #2300 (comment)
No, not at the moment.
If you're using basic auth, you can use CLI command |
Hi @mvilanova Thanks for the continuous support and information. I read the above comments. I understood bit of it Refer to the second screenshot for warning sign details: #2300 (comment) The reason why I ask above question repeatedly, because multiple times I update |
Hi @mvilanova Does dispatch support OAUTH through an app-registration on Azure AD? Because, our org is moving to Azure AD from GCP (G-Suite). |
@Hellboy7 again, it's a warning, not an error and it's not impacting your ability to run Dispatch commands successfully. For example, in #2300 (comment) you ran These warnings have nothing to do with the |
@Hellboy7 Dispatch supports basic login/password, PKCE, and custom auth providers. PKCE is the way to go for your use case. This article seems like a good start: https://docs.microsoft.com/en-us/azure/active-directory/saas-apps/openidoauth-tutorial |
Hi @mvilanova |
I reverted the changes in #2304, which caused this issue. You'll need to remove the |
Hi @mvilanova I am not able to switch the Org in the Dispatch UI!!! I am able to access the projects by changing the Project names in URL. Project 1: |
Known problem. Working on a fix. |
Thank you so much for the support so far !!! |
Hi @mvilanova |
@Hellboy7 all good here? Can we close this issue? |
Describe the bug
This regards to dispatch slack configuration issue, I have updated the necessary details in slack plugins according to dispatch [slack documentation.] But I am getting multiple errors.
Errors:
Error from Slack app:
dispatch-conversionAPP 8:31 PM
Looks like you tried to run /dispatch-list-incidents in a conversation where the Dispatch bot is not present. Add the bot to your conversation or run the command in one of the following conversations:
Only visible to you
8:34
I see you tried to run /dispatch-list-participants in an non-incident conversation. Incident-specifc commands can only be run in incident conversations.
Only visible to you
8:39
I see you tried to run /dispatch-list-my-tasks in an non-incident conversation. Incident-specifc commands can only be run in incident conversations.
Only visible to you
8:39
I see you tried to run /dispatch-update-incident in an non-incident conversation. Incident-specifc commands can only be run in incident conversations.
Only visible to you
8:42
Looks like you tried to run /dispatch-list-incidents in a conversation where the Dispatch bot is not present. Add the bot to your conversation or run the command in one of the following conversations:
Error from docker backend
ERROR:dispatch.plugins.dispatch_slack.service:SlackError. Response: {'ok': False, 'error': 'channel_not_found'} Endpoint: conversations.info kwargs: {'channel': 'C03MFS2LV9Q'}
ERROR:dispatch.plugins.dispatch_slack.service:SlackError. Response: {'ok': False, 'error': 'channel_not_found'} Endpoint: conversations.info kwargs: {'channel': 'C03MFS2LV9Q'}
The text was updated successfully, but these errors were encountered: