# Discourse v2.2.0.beta7 +63 version discourse-azure-ad plugin error

**URL:** https://meta.discourse.org/t/discourse-v2-2-0-beta7-63-version-discourse-azure-ad-plugin-error/105983
**Category:** Support
**Created:** [1월 8, 2019, 4:39오후 UTC](https://meta.discourse.org/t/discourse-v2-2-0-beta7-63-version-discourse-azure-ad-plugin-error/105983 "2019-01-08T16:39:46Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Subham\_Joshi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/subham_joshi/32/127591_2.png) [@Subham\_Joshi](https://meta.discourse.org/u/Subham_Joshi)
#### Post date: [1월 8, 2019, 4:39오후 UTC](https://meta.discourse.org/t/discourse-v2-2-0-beta7-63-version-discourse-azure-ad-plugin-error/105983/1 "2019-01-08T16:39:47Z")

</div>

I am getting an error regarding the [discourse-azure-ad](https://github.com/discourse/discourse-azure-ad) plugin in the new discourse **v2.2.0.beta7 +63** version hosted on docker.

In the older version it used to work.  
Is there a way to fix this error (other than removing the plugin)

```
Error - FAILED
Pups::ExecError: cd /var/www/discourse &amp;&amp; su discourse -c 'bundle exec rake db:migrate' failed with return #&lt;Process::Status: pid 436 exit 1&gt;
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=&gt;"$home", "hook"=&gt;"bundle_exec", "cmd"=&gt;["su discourse -c 'bundle install --deployment --verbose --without test --without development --retry 3 --jobs 4'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
4a2a673415d20dcc46c2427329592c0dbd029dbe7aa61e8d6257054f38f56c12

```

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [1월 8, 2019, 4:44오후 UTC](https://meta.discourse.org/t/discourse-v2-2-0-beta7-63-version-discourse-azure-ad-plugin-error/105983/2 "2019-01-08T16:44:53Z")

</div>

Thanks for reporting - I just pushed an update

[https://github.com/discourse/discourse-azure-ad/commit/f3582c208acd342a5725b9e84260dd231637768f](https://github.com/discourse/discourse-azure-ad/commit/f3582c208acd342a5725b9e84260dd231637768f)

Can you try rebuilding again?

---

<div class="post-metadata">

### Author: ![Subham\_Joshi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/subham_joshi/32/127591_2.png) [@Subham\_Joshi](https://meta.discourse.org/u/Subham_Joshi)
#### Post date: [1월 8, 2019, 5:26오후 UTC](https://meta.discourse.org/t/discourse-v2-2-0-beta7-63-version-discourse-azure-ad-plugin-error/105983/3 "2019-01-08T17:26:03Z")

</div>

Yes , Its working now.  
Thanks for the quick reply.  
One more thing, i am getting this **error** - Sorry, there was an error authorizing your account. Perhaps you did not approve authorization?

```
**weburl -** 
discourse_domain/auth/failuremessage=invalid_credentials&origin=https%3A%2F%2F **discourse_domain** %2Fauth%2Fazure_oauth2%2Fcallback%3Fcode%3DAQABAAIAAAC5una0EUFgTIF8ElaxtWjTbUplINSR2r1Qd57VQdCjkd45xWvhu4k6ii7Y_XQFjuCrunreUV29xdLL0ULDoR8vPBlBJKmTufkKC3x8gE1hMR7TuB2NeKrBT-oLMDcG08bAziy-B17mzT6i1xX32E3rVCDOA6ZCeQ-OJN1jJvvUVvmmS7flktPmNIcCB5cmWLoH4oaCHeM5WELcl4DalIaYqw5VGfmo0kNHgqqi7BvvVSHFAjjPjDMRHYJ-zwY7AzVgi8VDrN2UVKkwhN281z0dS9SOfTgwUXHa_z0X-YbSRsArfW6PgbNRKf4Ety9mKsqvgJgc-56oARGuBPK5UPvlED4uIYf_6yP667D9hxWru2h8Vp7R304JZUUFb7vRJDy6i7CIigvZl898QgXHdzUX3jbRkb2SgAg2NvLDebvvGzwP41QplagT-8UYJb0_hUoJOP25zr_gsuZnNJRH-zJQYLd0O9SCH1oDv_aNZgwrTsEoSe-A4ltZbcmojM1pYGQV-RktmK-9ZqKv4Xj22n5R1326D_-f7Bkas2_tyzJDpIf83CMrwQO9jBxW4ZR-2A6SAZD6IWJmE0SCgfIWv425IAA%26state%3D420e2bcd209a3d2d8dee9ab41f4bfe5287436db89da240bb%26session_state%3D1f0ba06e-fdd4-4cbe-b758-691d006q8ce3&strategy=azure_oauth2

```

What could be the issue.?  
Can you please elaborate that?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [1월 8, 2019, 5:33오후 UTC](https://meta.discourse.org/t/discourse-v2-2-0-beta7-63-version-discourse-azure-ad-plugin-error/105983/4 "2019-01-08T17:33:54Z")

</div>

Did this stop working with the recent update? Or have you never got it working before?

---

<div class="post-metadata">

### Author: ![Subham\_Joshi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/subham_joshi/32/127591_2.png) [@Subham\_Joshi](https://meta.discourse.org/u/Subham_Joshi)
#### Post date: [1월 8, 2019, 5:36오후 UTC](https://meta.discourse.org/t/discourse-v2-2-0-beta7-63-version-discourse-azure-ad-plugin-error/105983/5 "2019-01-08T17:36:23Z")

</div>

Yes, but the credentials are correct. i tried logged into azure portal and it works.  
Is there any other way which trigger that error.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [1월 8, 2019, 5:44오후 UTC](https://meta.discourse.org/t/discourse-v2-2-0-beta7-63-version-discourse-azure-ad-plugin-error/105983/6 "2019-01-08T17:44:39Z")

</div>

> [@Subham\_Joshi](#):
>
> failuremessage=invalid\_credentials

I think it just means the credentials are wrong when logging into azure… Try entering your username/password incorrectly and see if you can reproduce the error consistently.

---

<div class="post-metadata">

### Author: ![Subham\_Joshi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/subham_joshi/32/127591_2.png) [@Subham\_Joshi](https://meta.discourse.org/u/Subham_Joshi)
#### Post date: [1월 8, 2019, 5:52오후 UTC](https://meta.discourse.org/t/discourse-v2-2-0-beta7-63-version-discourse-azure-ad-plugin-error/105983/7 "2019-01-08T17:52:35Z")

</div>

Its strange, credentials are correct i had checked.  
Is there any other scenario which trigger that error.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [1월 8, 2019, 5:53오후 UTC](https://meta.discourse.org/t/discourse-v2-2-0-beta7-63-version-discourse-azure-ad-plugin-error/105983/8 "2019-01-08T17:53:44Z")

</div>

It’s an error coming from the Azure end, so I’m not sure what else could cause it

---

<div class="post-metadata">

### Author: ![Subham\_Joshi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/subham_joshi/32/127591_2.png) [@Subham\_Joshi](https://meta.discourse.org/u/Subham_Joshi)
#### Post date: [1월 8, 2019, 5:56오후 UTC](https://meta.discourse.org/t/discourse-v2-2-0-beta7-63-version-discourse-azure-ad-plugin-error/105983/9 "2019-01-08T17:56:17Z")

</div>

Okay, Thanks for the help @david .  
Will check that.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2월 7, 2019, 5:56오후 UTC](https://meta.discourse.org/t/discourse-v2-2-0-beta7-63-version-discourse-azure-ad-plugin-error/105983/10 "2019-02-07T17:56:24Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
