# Modelo de nome de usuário não encontrado

**URL:** <https://meta.discourse.org/t/username-template-cannot-found/214224>\
**Category:** Product Support\
**Created:** [Janeiro 8, 2022, 9:39am UTC](https://meta.discourse.org/t/username-template-cannot-found/214224 "2022-01-08T09:39:53Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![f1r4s](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/f1r4s/32/245347_2.png) [@f1r4s](https://meta.discourse.org/u/f1r4s)\
**Post date:** [Janeiro 11, 2022, 3:16pm UTC](https://meta.discourse.org/t/username-template-cannot-found/214224/7 "2022-01-11T15:16:47Z")

</div>

Parece que o problema está na seção de distintivos do meu fórum; mas estou tentando executar este comando em um contêiner, mas não sei como;

`Discourse.system_user.create_user_profile`

Este comando corrigiria o problema do distintivo; mas agradeceria se alguém pudesse fornecer como executar este comando? Ou onde?

```plaintext
[1] pry(main)> Discourse.system_user.create_user_profile
ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "user_profiles_pkey"
DETAIL: Key (user_id)=(-1) already exists.

from /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rack-mini-profiler-2.3.3/lib/patches/db/pg.rb:69:in `exec_params'
Caused by PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "user_profiles_pkey"
DETAIL: Key (user_id)=(-1) already exists.

from /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rack-mini-profiler-2.3.3/lib/patches/db/pg.rb:69:in `exec_params'

```

Obrigado.

---

_[View the full topic](https://meta.discourse.org/t/username-template-cannot-found/214224)._
