# Can't access profile of new user

**URL:** https://meta.discourse.org/t/cant-access-profile-of-new-user/135893
**Category:** Support
**Created:** [13 בדצמבר,‏ 2019,‏ 8:21pm UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893 "2019-12-13T20:21:51Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [13 בדצמבר,‏ 2019,‏ 8:21pm UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893/1 "2019-12-13T20:21:51Z")

</div>

Hi,

I’m trying to understand why we can’t access the profile of a user who was created earlier today. When looking in the logs, I see:

```plaintext
Started GET "/u/blender.bender/" for xx.xx.xx.xx at 2019-12-13 20:15:18 +0000
Processing by UsersController#show as HTML
  Parameters: {"username"=>"blender.bender"}
  Rendering exceptions/not_found.html.erb within layouts/no_ember
  Rendered exceptions/not_found.html.erb within layouts/no_ember (Duration: 0.3ms | Allocations: 120)
  Rendered layouts/_head.html.erb (Duration: 1.5ms | Allocations: 790)
  Rendered common/_discourse_stylesheet.html.erb (Duration: 0.9ms | Allocations: 470)
  Rendered application/_header.html.erb (Duration: 0.2ms | Allocations: 91)
  Rendering html template
  Rendered html template (Duration: 0.0ms | Allocations: 2)
Completed 404 Not Found in 155ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 58360)

```

I did a rebuild earlier today and tested in safe-mode with the same result. I also looked him up in the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) and at first glance, everything seems ok.

Here’s a topic where you can see him: [Looking for someone to animate a drawbridge - Paid Work - Blender Artists Community](https://blenderartists.org/t/looking-for-someone-to-animate-a-drawbridge/1196011)

This issue also prevents his user card from showing. Any idea why this happens or where I should look next?

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [13 בדצמבר,‏ 2019,‏ 8:58pm UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893/2 "2019-12-13T20:58:12Z")

</div>

We’ve had new users not showing up in the _User Directory_ after they’ve first joined. But once some of the daily routines ran, they did appear in the _User Directory_ - much to the relieve of those users. Still, there should be several places where an Admin can see them, aside from the user list in the dashboard and the report logs. All said and told, they should appear in a few hours, user card and all.  
Other suggestions welcome. 🙂

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [13 בדצמבר,‏ 2019,‏ 9:08pm UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893/3 "2019-12-13T21:08:55Z")

</div>

I don’t think that’s it - I can access the profile pages of other new users just fine. The fact that they’re not in the directory is not a concern, they should show up within 24 hours I believe?

It seems that something in this account is broken, but I can’t understand what..

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [13 בדצמבר,‏ 2019,‏ 9:09pm UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893/4 "2019-12-13T21:09:58Z")

</div>

Okay, so you have several new users and they show up except for this one in particular?

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [13 בדצמבר,‏ 2019,‏ 9:30pm UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893/5 "2019-12-13T21:30:48Z")

</div>

It’s not related to the user directory - this user can post and use the site, see the link I posted above. Once you click on his avatar, the user card doesn’t show. Also, if I try to show his user profile after searching him in the admin I get a 404 error page. This doesn’t happen for other users.

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [13 בדצמבר,‏ 2019,‏ 9:38pm UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893/6 "2019-12-13T21:38:14Z")

</div>

I notice this user has a dot in his user name (blender.blender). I’m wondering if that special character is fouling things up.

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [13 בדצמבר,‏ 2019,‏ 9:44pm UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893/7 "2019-12-13T21:44:45Z")

</div>

Looking a little deeper, I wonder the same thing - when searching for ‘%blender%bender’ usernames, I find the following list. I somehow suspect that the ‘.’ symbol is not properly treated internally. This user created these two accounts today:

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/4/e47ce40b78333bc992ccfb92fbd38a396faceb63.png)

Looking further back, I also see a (very) old account ‘blenderbender’. This one was imported from vBulletin.

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/5/5510803a2468ae1f0658ac6039dd722adfe21224.png)

I can’t shake the feeling that something is wrong with the check on unique usernames in my instance, but I can’t imagine what :-/

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [13 בדצמבר,‏ 2019,‏ 9:53pm UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893/8 "2019-12-13T21:53:34Z")

</div>

I managed to fix this by deactivating the old account. After that, I could rename it and resolve the duplicate username.

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [13 בדצמבר,‏ 2019,‏ 9:55pm UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893/9 "2019-12-13T21:55:06Z")

</div>

Glad to hear you got it resolved.

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [13 בדצמבר,‏ 2019,‏ 9:56pm UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893/10 "2019-12-13T21:56:10Z")

</div>

Update - no, I didn’t :facepalm: I fixed the duplicate issue of the two ‘blenderbender’ accounts, but I still cannot view the ‘blender.bender’ profile. I give up for tonight, time for some 🍷

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [14 בדצמבר,‏ 2019,‏ 2:21am UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893/11 "2019-12-14T02:21:20Z")

</div>

Yeah, I recall seeing reports of this before, with very similar usernames causing some kind of conflict… cc @eviltrout

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [17 בדצמבר,‏ 2019,‏ 1:49pm UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893/14 "2019-12-17T13:49:07Z")

</div>

This boiled down to a broken index on the users table. After manually fixing a bunch of records (which was an interesting exercise in itself 😉 ), I was able to rebuild the index. I’ll keep an eye on this to make sure it’s not happening again.

---

<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: [16 בינואר,‏ 2020,‏ 4:07pm UTC](https://meta.discourse.org/t/cant-access-profile-of-new-user/135893/16 "2020-01-16T16:07:14Z")

</div>

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