First login after db reset


I wanted to reset the database back to its initial state. So I ran the following command,

sudo /opt/mattermost/bin/mattermost db reset

Consequently I expect that as the new first sign up in the database that I would be given the admin role. However when I sign up, I see a view that says " there are no teams, ask an admin to create one".

I have tried to give myself an admin role using the following command

sudo ./mmctl roles system_admin rochus

However that doesn’t work because either.

Can anyone explain why this occurs and how I could get around it?

Any help will be appreciated.

I have gotten around this by creating a new db. With the new db, when I login I am presented with the hyperlink to go to the system console. I guess the reset of the db doesn’t initialise the db to the extent that I expected.