# Can't create and initial team / user

**URL:** <https://forum.mattermost.com/t/cant-create-and-initial-team-user/1781>\
**Category:** Troubleshooting\
**Created:** [June 27, 2016, 2:57pm UTC](https://forum.mattermost.com/t/cant-create-and-initial-team-user/1781 "2016-06-27T14:57:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tradecraft1](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tradecraft1](https://forum.mattermost.com/u/tradecraft1)\
**Post date:** [June 27, 2016, 2:57pm UTC](https://forum.mattermost.com/t/cant-create-and-initial-team-user/1781/1 "2016-06-27T14:57:04Z")

</div>

I am installing Mattermost on on RHEL 6.0 following this guide: [http://docs.mattermost.com/install/prod-rhel-6.html](http://docs.mattermost.com/install/prod-rhel-6.html)

I’ve reached the Finish section here: [http://docs.mattermost.com/install/prod-rhel-6.html#finish-mattermost-server-setup](http://docs.mattermost.com/install/prod-rhel-6.html#finish-mattermost-server-setup)

On Step 1 it says to navigate to Mattermost server I installed to create the initial user. When I navigate to that URL I get the login page and do not see a place to create a user. Did I miss a step?

---

<div class="post-metadata">

**Author:** ![jwilander](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/jwilander/32/8440_2.png) [@jwilander](https://forum.mattermost.com/u/jwilander)\
**Post date:** [June 30, 2016, 4:30pm UTC](https://forum.mattermost.com/t/cant-create-and-initial-team-user/1781/2 "2016-06-30T16:30:00Z")

</div>

Hi @tradecraft1,

If you’re the first user it should ask you to create an account. Can you check if your `Users` table in the database is empty? Also for my information, which version of Mattermost are you running?

You should be able to remedy the problem using the [command line interface options](http://docs.mattermost.com/administration/command-line-tools.html) that we provide.

---

<div class="post-metadata">

**Author:** ![tradecraft1](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tradecraft1](https://forum.mattermost.com/u/tradecraft1)\
**Post date:** [June 30, 2016, 5:13pm UTC](https://forum.mattermost.com/t/cant-create-and-initial-team-user/1781/3 "2016-06-30T17:13:49Z")

</div>

Thanks. I will check the table now. I am running 3.1. I noticed that I can’t add a user via the command line. When I run the below command it just hangs and doesn’t return:

./platform -create\_user [-email="blah@blah.com](mailto:-email=%22blah@blah.com)" -password=“XXXXXXXXXXXXXXX” -username=“blah.blah” -role=“system\_admin”

---

<div class="post-metadata">

**Author:** ![tradecraft1](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tradecraft1](https://forum.mattermost.com/u/tradecraft1)\
**Post date:** [June 30, 2016, 5:14pm UTC](https://forum.mattermost.com/t/cant-create-and-initial-team-user/1781/4 "2016-06-30T17:14:31Z")

</div>

I couldnt find any errors in the mattermost.log or /var/log/syslog.

---

<div class="post-metadata">

**Author:** ![jwilander](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/jwilander/32/8440_2.png) [@jwilander](https://forum.mattermost.com/u/jwilander)\
**Post date:** [June 30, 2016, 5:30pm UTC](https://forum.mattermost.com/t/cant-create-and-initial-team-user/1781/5 "2016-06-30T17:30:34Z")

</div>

Hmmm can you try creating the user with:

`./platform -create_user -team_name="name" -email="user@example.com" -password="mypassword" -username="user"`

and then try updating them to system admin with:

`./platform -assign_role -email="user@example.com" -role="system_admin"`

---

<div class="post-metadata">

**Author:** ![tradecraft1](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tradecraft1](https://forum.mattermost.com/u/tradecraft1)\
**Post date:** [June 30, 2016, 5:50pm UTC](https://forum.mattermost.com/t/cant-create-and-initial-team-user/1781/6 "2016-06-30T17:50:39Z")

</div>

No it just hangs on the first command.

bash-4.1$ ./platform -create\_user -team\_name=“name” [-email="user@example.com](mailto:-email=%22user@example.com)" -password=“mypassword” -username=“user”  
[13:49:10 EDT 2016/06/30] [INFO] ([github.com/mattermost/platform/utils.GetTranslationsBySystemLocale:56](http://github.com/mattermost/platform/utils.GetTranslationsBySystemLocale:56)) Loaded system translations for ‘en’ from ‘/opt/mattermost/i18n/en.json’

---

<div class="post-metadata">

**Author:** ![tradecraft1](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tradecraft1](https://forum.mattermost.com/u/tradecraft1)\
**Post date:** [June 30, 2016, 5:53pm UTC](https://forum.mattermost.com/t/cant-create-and-initial-team-user/1781/7 "2016-06-30T17:53:29Z")

</div>

I take that back. This time after a couple minutes I get this:

[2016/06/30 13:51:06 EDT] [EROR] SqlTeamStore.GetByName: store.sql\_team.get\_by\_name.app\_error, name=name, sql: no rows in result set

I’m looking at the SQL side now.

---

<div class="post-metadata">

**Author:** ![tradecraft1](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tradecraft1](https://forum.mattermost.com/u/tradecraft1)\
**Post date:** [June 30, 2016, 6:02pm UTC](https://forum.mattermost.com/t/cant-create-and-initial-team-user/1781/8 "2016-06-30T18:02:39Z")

</div>

> [@tradecraft1](#):
>
> store.sql\_team.get\_by\_name.app\_error

I think that is saying that the team does not exist. Does the team need to exist before you can assign a user to it?

---

<div class="post-metadata">

**Author:** ![jwilander](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/jwilander/32/8440_2.png) [@jwilander](https://forum.mattermost.com/u/jwilander)\
**Post date:** [June 30, 2016, 6:09pm UTC](https://forum.mattermost.com/t/cant-create-and-initial-team-user/1781/9 "2016-06-30T18:09:24Z")

</div>

Oh, maybe try making a team first:

`./platform -create_team -team_name="name" -email="user@example.com"`

There used to be a dependency on creating a team before a user but that was removed in 3.0 but it looks like we didn’t update the CLI to reflect that

---

<div class="post-metadata">

**Author:** ![tradecraft1](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tradecraft1](https://forum.mattermost.com/u/tradecraft1)\
**Post date:** [August 8, 2016, 7:14pm UTC](https://forum.mattermost.com/t/cant-create-and-initial-team-user/1781/10 "2016-08-08T19:14:30Z")

</div>

I tried this:

`./platform -create_team -team_name="TEAM" -email="team@mydomain.com"`

and got this error:

`[EROR] Team.IsValid: model.team.is_valid.characters.app_error, id=mfaxfs15xf8ixmndbd91jnpwgo`

Is it complaining about valid characters?

---

<div class="post-metadata">

**Author:** ![tradecraft1](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tradecraft1](https://forum.mattermost.com/u/tradecraft1)\
**Post date:** [August 11, 2016, 2:31pm UTC](https://forum.mattermost.com/t/cant-create-and-initial-team-user/1781/11 "2016-08-11T14:31:51Z")

</div>

I figured it out. The team name cannot start with a capital letter. Something is awry with the input validation.
