# Problems with login in to ODK-X Server web-ui. Incorrect username or password

**URL:** <https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327>\
**Category:** Support\
**Tags:** odk-x-sync-endpoint\
**Created:** [July 12, 2018, 2:18pm UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327 "2018-07-12T14:18:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ariel](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/a/ccd318/32.png) [@ariel](https://forum.odk-x.org/u/ariel)\
**Post date:** [July 12, 2018, 2:18pm UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/1 "2018-07-12T14:18:43Z")

</div>

**What is the problem? Please be detailed.**

Hi all,  
i have some problems with log into the ODK web UI  
I access to phpLDAPadmin console (with https://:40000 and login Ok with username “cn=admin,dc=example,dc=org” and the password “admin”.  
Add user “webadmin” into ou=people and assign him to group “default\_prefix site\_admins” (gidNumber=500)  
But then, i can’t login in Web-UI, the error message appears (Incorrect username or password.)  
Thanks,  
Ariel

**What ODK tool and version are you using? And on what device and operating system version?**  
ODK 2 on ubuntu 16.04. and I try to connect to the web-ui from a terminal with windows 7

**What you have you tried to fix the problem?**  
Add user “webadmin” into ou=people and assign him to group “default\_prefix site\_admins”

**Anything else we should know or have? If you have a test form or screenshots or logs, attach here.**

 ![screen_webLogin_error](https://odkx.b-cdn.net/uploads/default/original/1X/e7ae6f3ec6f6d048aa43574c0a144f3754e8ef6b.jpeg)

---

<div class="post-metadata">

**Author:** ![yanokwa](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/yanokwa/32/1104_2.png) [@yanokwa](https://forum.odk-x.org/u/yanokwa)\
**Post date:** [July 12, 2018, 2:29pm UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/2 "2018-07-12T14:29:40Z")

</div>

@ariel I’m combining your posts into a single topic. Perhaps @Jeff_Beorse can help when he gets a chance.

---

<div class="post-metadata">

**Author:** ![linl33](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/l/b487fb/32.png) [@linl33](https://forum.odk-x.org/u/linl33)\
**Post date:** [July 12, 2018, 4:01pm UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/3 "2018-07-12T16:01:09Z")

</div>

Hi Ariel,

Looks like your users/groups might not be correctly assigned. In your screenshot, there isn’t a `webadmin` user but there is an `aprincipal`. The username to login to Sync Endpoint is the text in the `uid` field, make sure you have the correct value in that field.

Another possibility is that your Web UI is not configured properly. Could you try visiting `/odktables/default/privilegesInfo` at the same address as the Web UI and see if you could gain access?

Best,  
Li

---

<div class="post-metadata">

**Author:** ![feisung](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@feisung](https://forum.odk-x.org/u/feisung)\
**Post date:** [July 14, 2018, 9:44am UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/4 "2018-07-14T09:44:45Z")

</div>

I am experiencing the exact same issue. What I have tried:

1. created a user (called it test) as per [ODK-X Sync Endpoint — ODK-X Docs](https://docs.opendatakit.org/odk2/sync-endpoint/#creating-users)

2. Added the user to group gidNumber=500 as described in [ODK-X Sync Endpoint — ODK-X Docs](https://docs.opendatakit.org/odk2/sync-endpoint/#assigning-users-to-groups)

3. Tested that I can find the user via CLI with  
docker exec $(docker ps -f “label=com.docker.swarm.service.name=syncldap\_ldap-service” --format ‘{{.ID}}’) ldapsearch -xLLL -D “cn=readonly,dc=example,dc=org” -w readonly -H ldap://ldap-service:389 -b “ou=people,dc=example,dc=org” -s sub ‘uid=test’ \* +

4. Went to the web-ui url and entered the created user, and get prompted that the login credentials are incorrect.

Tried @linl33 suggestion and get a 404:

> [@linl33](#):
>
> Another possibility is that your Web UI is not configured properly. Could you try visiting `/odktables/default/privilegesInfo` at the same address as the Web UI and see if you could gain access?

> Blockquote

Any help would be appreciated.  
Best,  
Fei

---

<div class="post-metadata">

**Author:** ![feisung](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@feisung](https://forum.odk-x.org/u/feisung)\
**Post date:** [July 14, 2018, 10:50am UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/5 "2018-07-14T10:50:49Z")

</div>

Quick update, upon inspecting the logs for sync-web-ui I see the issue seems to with:

> 2018-07-14 10:10:30.462 INFO 5 — [nio-8080-exec-8] bServiceDelegatingAuthenticationProvider : Logging in with [http://sync:8080/odktables/{appId}/privilegesInfo](http://sync:8080/odktables/%7BappId%7D/privilegesInfo)  
> 2018-07-14 10:10:30.506 INFO 5 — [nio-8080-exec-8] bServiceDelegatingAuthenticationProvider : Received an exception when getting granted roles  
> 2018-07-14 10:10:30.506 INFO 5 — [nio-8080-exec-8] bServiceDelegatingAuthenticationProvider : Received 404  
> 2018-07-14 10:10:30.507 INFO 5 — [nio-8080-exec-8] bServiceDelegatingAuthenticationProvider : Received

---

<div class="post-metadata">

**Author:** ![feisung](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@feisung](https://forum.odk-x.org/u/feisung)\
**Post date:** [July 14, 2018, 11:09am UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/6 "2018-07-14T11:09:08Z")

</div>

I think the issue was related to having some other container with nginx configuration, which was conflicting with the settings required by odk/sync-web-ui and the logs seems to have pointed me to the right direction.  
So, here’s how I managed to get logged in:

1. Stopped all containers with the command `docker stop $(docker ps -aq)`
2. Re-run steps 2 - 10 as described in [ODK-X Sync Endpoint — ODK-X Docs](https://docs.opendatakit.org/odk2/sync-endpoint/#odk-sync-endpoint-setup)
3. Accessed /web-ui/
4. entered credentials
5. Login success.

Hope it helps anyone else having the same issue.

---

<div class="post-metadata">

**Author:** ![Simeon\_Taskaris](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/s/f08c70/32.png) [@Simeon\_Taskaris](https://forum.odk-x.org/u/Simeon_Taskaris)\
**Post date:** [October 23, 2018, 9:04am UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/7 "2018-10-23T09:04:20Z")

</div>

Hi, I have the same problem…

I have installed ODK 2.0 Server on a VirtualBox running Ubuntu Server 18.04. I have access in php LDAP admin from host machine. I have created a user as decripted at [ODK-X Sync Endpoint — ODK-X Docs](https://docs.opendatakit.org/odk2/sync-endpoint/#ldap)

But, I cannot login in web-ui …

 ![odk2_error](https://odkx.b-cdn.net/uploads/default/original/1X/b66cec70eed7758cf65819691e47e1e7821d3d9b.jpeg)

Is there any specific configuration that I miss?  
(I have test all the above.)

Thanks!

---

<div class="post-metadata">

**Author:** ![linl33](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/l/b487fb/32.png) [@linl33](https://forum.odk-x.org/u/linl33)\
**Post date:** [October 28, 2018, 7:35pm UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/8 "2018-10-28T19:35:59Z")

</div>

Try to visit `/odktables/default/tables` under the same hostname as the web-ui, and using the same credential. If you’re able to get a valid response back, then the web-ui wasn’t configured properly.

---

<div class="post-metadata">

**Author:** ![ghare](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/g/ad7895/32.png) [@ghare](https://forum.odk-x.org/u/ghare)\
**Post date:** [January 26, 2019, 11:16pm UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/9 "2019-01-26T23:16:28Z")

</div>

@feisung, where did you find the sync-web-ui logs. I am having exactly the same problem as you but still can’t login.

All good, found them in the Docker container. I get exactly the same error message and have tried the steps you suggested but I still can’t login to the Web-UI

---

<div class="post-metadata">

**Author:** ![linl33](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/l/b487fb/32.png) [@linl33](https://forum.odk-x.org/u/linl33)\
**Post date:** [January 29, 2019, 12:57am UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/10 "2019-01-29T00:57:20Z")

</div>

Try to visit `odktables/default/tables`. See if you can login from there.

The logs are stored in Docker. Use `docker logs` to get the logs, see [link](https://docs.docker.com/engine/reference/commandline/logs/) for detail.

---

<div class="post-metadata">

**Author:** ![ghare](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/g/ad7895/32.png) [@ghare](https://forum.odk-x.org/u/ghare)\
**Post date:** [February 1, 2019, 4:30am UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/11 "2019-02-01T04:30:52Z")

</div>

> [@linl33](#):
>
> Try to visit `odktables/default/tables` . See if you can login from there.

@linl33 I get ‘Access Denied’ You do not have permission for this operation.

---

<div class="post-metadata">

**Author:** ![ghare](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/g/ad7895/32.png) [@ghare](https://forum.odk-x.org/u/ghare)\
**Post date:** [February 6, 2019, 3:42am UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/12 "2019-02-06T03:42:12Z")

</div>

Simeon,  
Did you solve this? I am having exactly the same problem with a clean installation of ODK2 on a clean Ubuntu 18.04 machine.

Thanks

---

<div class="post-metadata">

**Author:** ![ghare](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/g/ad7895/32.png) [@ghare](https://forum.odk-x.org/u/ghare)\
**Post date:** [February 6, 2019, 3:46am UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/13 "2019-02-06T03:46:41Z")

</div>

Solved it! I needed to go into the 500 group and add my username to it by adding the attribute which wasn’t displayed.

Thanks.

I still can’t get logged on to the web-ui. I have tried re-installing everything. This is a clean install of ODK2 on a clean ubuntu 18.04 machine.

I really need to get this up and running for a demonstration.

web-ui logs:

2019-02-06 03:48:11.049 INFO 6 — [nio-8080-exec-3] bServiceDelegatingAuthenticationProvider : Logging in with [http://sync:8080/odktables/{appId}/privilegesInfo](http://sync:8080/odktables/%7BappId%7D/privilegesInfo)  
2019-02-06 03:48:11.099 INFO 6 — [nio-8080-exec-3] bServiceDelegatingAuthenticationProvider : Received an exception when getting granted roles

openldap logs:

5c5a58fb conn=1033 fd=12 ACCEPT from IP=10.0.2.4:47468 (IP=0.0.0.0:389)  
5c5a58fb conn=1033 op=0 BIND dn=“uid=ghare,ou=people,dc=example,dc=org” method=128  
5c5a58fb conn=1033 op=0 BIND dn=“uid=ghare,ou=people,dc=example,dc=org” mech=SIMPLE ssf=0  
5c5a58fb conn=1033 op=0 RESULT tag=97 err=0 text=  
5c5a58fb conn=1033 op=1 SRCH base=“uid=ghare,ou=people,dc=example,dc=org” scope=0 deref=3 filter=“(objectClass=\*)”  
5c5a58fb conn=1033 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=  
5c5a58fb conn=1033 op=2 UNBIND  
5c5a58fb conn=1033 fd=12 closed  
5c5a58fb conn=1034 fd=12 ACCEPT from IP=10.0.2.4:47470 (IP=0.0.0.0:389)  
5c5a58fb conn=1034 op=0 BIND dn=“cn=readonly,dc=example,dc=org” method=128  
5c5a58fb conn=1034 op=0 BIND dn=“cn=readonly,dc=example,dc=org” mech=SIMPLE ssf=0  
5c5a58fb conn=1034 op=0 RESULT tag=97 err=0 text=  
5c5a58fb conn=1034 op=1 SRCH base=“ou=default\_prefix,ou=groups,dc=example,dc=org” scope=2 deref=3 filter=“(memberUid=ghare)”  
5c5a58fb conn=1034 op=1 SRCH attr=cn objectClass javaSerializedData javaClassName javaFactory javaCodeBase javaReferenceAddress javaClassNames javaRemoteLocation  
5c5a58fb \<= mdb\_equality\_candidates: (memberUid) not indexed  
5c5a58fb conn=1034 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=  
5c5a58fb conn=1034 op=2 UNBIND  
5c5a58fb conn=1034 fd=12 closed  
5c5a58fb connection\_read(12): no connection!

The web-ui seems to connect to openldap and searches for the uid. openldap doesn’t appear to return any errors and only a single entry, which I would expect?

Thanks

---

<div class="post-metadata">

**Author:** ![NedBalzer](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/n/e47c2d/32.png) [@NedBalzer](https://forum.odk-x.org/u/NedBalzer)\
**Post date:** [August 29, 2019, 6:13pm UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/14 "2019-08-29T18:13:33Z")

</div>

OK, I’m having the same problem still. I go to [https://l2odk2.vmhost.psu.edu/web-ui/login](https://l2odk2.vmhost.psu.edu/web-ui/login), and enter my newly created admin username and password. I immediately get this:  
August 29, 2019 6:03:16 PM UTC  
There was an unexpected error (type=Internal Server Error, status=500).  
500  
Please contact the operator with the above information.

I tried getting the docker logs for the nginx container: The last lines are:  
10.255.0.2 - - [29/Aug/2019:18:03:05 +0000] “GET /web-ui/login HTTP/2.0” 200 2641 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0” “-”  
10.255.0.2 - - [29/Aug/2019:18:03:05 +0000] “GET /web-ui/css/sitewide.css HTTP/2.0” 200 62 “[https://l2odk2.vmhost.psu.edu/web-ui/login](https://l2odk2.vmhost.psu.edu/web-ui/login)” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0” “-”  
10.255.0.2 - - [29/Aug/2019:18:03:16 +0000] “POST /web-ui/login HTTP/2.0” 500 389 “[https://l2odk2.vmhost.psu.edu/web-ui/login](https://l2odk2.vmhost.psu.edu/web-ui/login)” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0” “-”

This really doesn’t give me any more info than that there is a 500 error, which I knew already.

I tried linl33’s suggestion to go to odktables/default/tables, and am prompted by a webserver generated username challenge (in a popup window) and when I authenticate there I just get:

falsefalse

I am not authenticated because if I go back to the root of the site I get the /web-ui/login screen again.

I believe web-ui isn’t configured correctly, but have no clue as to what the actual problem is!  
Thanks for any help from anyone.

PS: I have verified that my username, odk2\_admin is in ldap and is a member of default\_prefix site\_admins (gid 500)

---

<div class="post-metadata">

**Author:** ![Talha\_Qasim](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/talha_qasim/32/732_2.png) [@Talha\_Qasim](https://forum.odk-x.org/u/Talha_Qasim)\
**Post date:** [February 24, 2021, 10:36am UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/15 "2021-02-24T10:36:05Z")

</div>

Hi,

I’m stuck at this step and trying to follow your instructions but they are sort of unclear, can you please help with this?

---

<div class="post-metadata">

**Author:** ![elmps2018](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/elmps2018/32/105_2.png) [@elmps2018](https://forum.odk-x.org/u/elmps2018)\
**Post date:** [February 24, 2021, 6:12pm UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/16 "2021-02-24T18:12:52Z")

</div>

Hi @Talha_Qasim i @! As you are new to the community, when you get a chance, please introduce yourself [here](https://forum.odk-x.org/t/introduce-yourself/642).

Could you please explain a bit more about what you are trying to do and what problems/questions you are having?

---

<div class="post-metadata">

**Author:** ![Talha\_Qasim](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/talha_qasim/32/732_2.png) [@Talha\_Qasim](https://forum.odk-x.org/u/Talha_Qasim)\
**Post date:** [February 25, 2021, 10:00am UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/17 "2021-02-25T10:00:37Z")

</div>

Hi, I’m having the same issue as the OP, as I’m also unable to login to the webui after creating the user in OpenLDAP, I’ve also added the user to the correct group (500), but somehow no luck.

I’m also seeing this in the webui logs.

2019-02-06 03:48:11.049 INFO 6 — [nio-8080-exec-3] bServiceDelegatingAuthenticationProvider : Logging in with [http://sync:8080/odktables/{appId}/privilegesInfo](http://sync:8080/odktables/%7BappId%7D/privilegesInfo)

ODK2.0 is running on Ubuntu 18.04 and using certbot.

Any help in this regard would be deeply appreciated.

---

<div class="post-metadata">

**Author:** ![Talha\_Qasim](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/talha_qasim/32/732_2.png) [@Talha\_Qasim](https://forum.odk-x.org/u/Talha_Qasim)\
**Post date:** [February 26, 2021, 9:29am UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/18 "2021-02-26T09:29:43Z")

</div>

A fresh setup with only http works fine, but this no login issue arises as soon as i apply the https.

---

<div class="post-metadata">

**Author:** ![Prashant](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/prashant/32/906_2.png) [@Prashant](https://forum.odk-x.org/u/Prashant)\
**Post date:** [April 8, 2021, 9:22am UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/19 "2021-04-08T09:22:22Z")

</div>

Hi,  
I’m recently trying manual server installation on my local system. i’m using windows 10 where Docker is installed and Swarm Mode is enabled. All required docker images has been pulled after running “mvn clean install” in the appropriate directory. But, Incorrect username and password is coming at [http://127.0.0.1](http://127.0.0.1/).

Although, i’m able to create user along with group assignment at [https://127.0.0.1:40000](https://127.0.0.1:40000).

 ![image](https://odkx.b-cdn.net/uploads/default/original/1X/255bf1526ad34b6761fbc451948ec0b1955ec75c.png)

 ![image](https://odkx.b-cdn.net/uploads/default/original/1X/92faa7c499af9fbb288f2dd5e7bc764b5c426af0.png)

Any help will be appreciated.

---

<div class="post-metadata">

**Author:** ![W\_Brunette](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/w_brunette/32/376_2.png) [@W\_Brunette](https://forum.odk-x.org/u/W_Brunette)\
**Post date:** [April 8, 2021, 6:27pm UTC](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327/20 "2021-04-08T18:27:40Z")

</div>

Three possible issues:

1. I am not sure the cn can have spaces, you can see the uid it removes the space.
2. You need to add the user to a group. Make sure you do step 5 [Setup ODK-X Sync Endpoint with Cloud Services — ODK-X Docs](https://docs.odk-x.org/sync-endpoint-cloud-setup/#creating-a-sample-user)
3. There needs to be at least one user in group 503.

[Next page](https://forum.odk-x.org/t/problems-with-login-in-to-odk-x-server-web-ui-incorrect-username-or-password/327.md?page=2)
