# Failure to login after creating my first reference application module.

**URL:** <https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192>\
**Category:** Uncategorized\
**Created:** [February 14, 2021, 9:14pm UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192 "2021-02-14T21:14:00Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![settix](https://talk.openmrs.org/user_avatar/talk.openmrs.org/settix/32/13657_2.png) [@settix](https://talk.openmrs.org/u/settix)\
**Post date:** [February 14, 2021, 9:14pm UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/1 "2021-02-14T21:14:00Z")

</div>

Hello friends, I created a reference application module successfully. Then, I executed the command \<mvn clean install openmrs-sdk:run -DserverId=server\> and I was told that openmrs is ready for me at \< [http://localhost:8080/openmrs/](http://localhost:8080/openmrs/)\> which I used and everything went on well. However, I used a wrong username and password in an attempt to login and when I now use the correct login details( username=admin and password=Admin123) I get the following message:“You cannot view or manage the Add Ons since you don’t have the privileges and you are not an admin. To get the permissions contact the system administrator”. Here is also the log from the command prompt: [Failure to login - Pastebin.com](https://pastebin.com/YjXy3kWc) . I kindly request for your guidance. @mozzy , @herbert24 , @jwnasambu@dkayiwa, @ibacher and the rest please.

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [February 14, 2021, 9:45pm UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/2 "2021-02-14T21:45:58Z")

</div>

You are facing the same problem as the one reported here: [You cannot view or manage addon manager](https://talk.openmrs.org/t/you-cannot-view-or-manage-addon-manager/31750)

This is a bug in the addon manager open web app. Feel free to [create a ticket](https://wiki.openmrs.org/display/docs/Tickets) for it.

As a workaround, do another sdk setup and choose `Distribution` instead of `Platform`. This will ensure that you have some user interface modules.

---

<div class="post-metadata">

**Author:** ![jwnasambu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jwnasambu/32/13543_2.png) [@jwnasambu](https://talk.openmrs.org/u/jwnasambu)\
**Post date:** [February 14, 2021, 9:55pm UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/3 "2021-02-14T21:55:34Z")

</div>

@settix when starting the server kindly use `mvn openmrs-sdk:run` command

---

<div class="post-metadata">

**Author:** ![settix](https://talk.openmrs.org/user_avatar/talk.openmrs.org/settix/32/13657_2.png) [@settix](https://talk.openmrs.org/u/settix)\
**Post date:** [February 15, 2021, 8:24am UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/4 "2021-02-15T08:24:36Z")

</div>

Thank you so much @dkayiwa . Let me follow these guide lines.

---

<div class="post-metadata">

**Author:** ![settix](https://talk.openmrs.org/user_avatar/talk.openmrs.org/settix/32/13657_2.png) [@settix](https://talk.openmrs.org/u/settix)\
**Post date:** [February 15, 2021, 8:43am UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/5 "2021-02-15T08:43:03Z")

</div>

@jwnasambu Thanks for the clue. However, the problem may not be with the command as @dkayiwa has attested. I don’t know whether we are on the same page. If I am off side please throw more light.

---

<div class="post-metadata">

**Author:** ![jwnasambu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jwnasambu/32/13543_2.png) [@jwnasambu](https://talk.openmrs.org/u/jwnasambu)\
**Post date:** [February 15, 2021, 8:50am UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/6 "2021-02-15T08:50:44Z")

</div>

> [@settix](#):
>
> Then, I executed the command \<mvn clean install openmrs-sdk:run -DserverId=server\> and I was told that openmrs is ready for me at

@settix We are on the same page. My comment originates from the above clause. After installing the `Distribution` instance, don’t run \<mvn clean install openmrs-sdk:run -DserverId=server\> to start the server because you are bound to run into another error that is what I was trying to communicate the right command is `mvn openmrs-sdk:run` Am sorry to have confused you prior. Hopefully am making sense now!

---

<div class="post-metadata">

**Author:** ![settix](https://talk.openmrs.org/user_avatar/talk.openmrs.org/settix/32/13657_2.png) [@settix](https://talk.openmrs.org/u/settix)\
**Post date:** [February 15, 2021, 9:02am UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/7 "2021-02-15T09:02:07Z")

</div>

@jwnasambu . Thanks a great deal. Its very clear now. Let me proceed with the creation of Distribution instance.

---

<div class="post-metadata">

**Author:** ![settix](https://talk.openmrs.org/user_avatar/talk.openmrs.org/settix/32/13657_2.png) [@settix](https://talk.openmrs.org/u/settix)\
**Post date:** [February 15, 2021, 11:31am UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/8 "2021-02-15T11:31:06Z")

</div>

@dkayiwa and @jwnasambu Thanks so much. I am done with Distribution instance installation.

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [February 16, 2021, 8:44pm UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/9 "2021-02-16T20:44:22Z")

</div>

> [@dkayiwa](#):
>
> You are facing the same problem as the one reported here: [You cannot view or manage addon manager](https://talk.openmrs.org/t/you-cannot-view-or-manage-addon-manager/31750)
> 
> This is a bug in the addon manager open web app. Feel free to [create a ticket](https://wiki.openmrs.org/display/docs/Tickets) for it.

@grace none of us remembered to test this before we released the platform. If we had automated tests for it, we would not be having this thread. 🙃

---

<div class="post-metadata">

**Author:** ![mogoodrich](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mogoodrich/32/3324_2.png) [@mogoodrich](https://talk.openmrs.org/u/mogoodrich)\
**Post date:** [March 3, 2021, 8:36pm UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/10 "2021-03-03T20:36:19Z")

</div>

Oops @dkayiwa just saw your comment on [https://issues.openmrs.org/browse/RESTWS-767](https://issues.openmrs.org/browse/RESTWS-767), will take a look…

---

<div class="post-metadata">

**Author:** ![mogoodrich](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mogoodrich/32/3324_2.png) [@mogoodrich](https://talk.openmrs.org/u/mogoodrich)\
**Post date:** [March 4, 2021, 2:16pm UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/11 "2021-03-04T14:16:47Z")

</div>

@dkayiwa what’s the best way to reproduce this locally? set up a new Platform 2.4.0 via the SDK?

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [March 4, 2021, 2:34pm UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/12 "2021-03-04T14:34:48Z")

</div>

Yes that is correct.

---

<div class="post-metadata">

**Author:** ![mogoodrich](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mogoodrich/32/3324_2.png) [@mogoodrich](https://talk.openmrs.org/u/mogoodrich)\
**Post date:** [March 8, 2021, 2:23pm UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/13 "2021-03-08T14:23:23Z")

</div>

Thanks for reviewing and merging the fix @dkayiwa … do you think we should do a 2.4.x platform maintenance release?

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [March 8, 2021, 4:44pm UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/14 "2021-03-08T16:44:08Z")

</div>

> [@mogoodrich](#):
>
> do you think we should do a 2.4.x platform maintenance release?

Absolutely Yes!

---

<div class="post-metadata">

**Author:** ![mogoodrich](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mogoodrich/32/3324_2.png) [@mogoodrich](https://talk.openmrs.org/u/mogoodrich)\
**Post date:** [March 8, 2021, 6:02pm UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/15 "2021-03-08T18:02:25Z")

</div>

Thanks @dkayiwa ! I can try to do it sometime later in the week, if no one else volunteers earlier… 🙂

---

<div class="post-metadata">

**Author:** ![danialbet](https://talk.openmrs.org/letter_avatar/danialbet/32/5_5575768a8748004e209b776fc1b2916d.png) [@danialbet](https://talk.openmrs.org/u/danialbet)\
**Post date:** [June 12, 2021, 2:38am UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/16 "2021-06-12T02:38:41Z")

</div>

Hi, I’m running into the same issue. Is there a solution to this? I used the enterprise WAR version and deployed it using Tomcat 8.5 and mysql 5.7.

I need this for production use so I need to use the enterprise version.

---

<div class="post-metadata">

**Author:** ![jwnasambu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jwnasambu/32/13543_2.png) [@jwnasambu](https://talk.openmrs.org/u/jwnasambu)\
**Post date:** [June 14, 2021, 7:48pm UTC](https://talk.openmrs.org/t/failure-to-login-after-creating-my-first-reference-application-module/32192/17 "2021-06-14T19:48:48Z")

</div>

Oh sorry! kindly it will be easy to help when we look at the error logs.
