Root password after Gitlab installation on EC2 instance

I have installed the Gitlab on an EC2 instance and when i login to the gitlab webpage ,I am not able to get the page to reset the password of root . I want to know the root password so that i can login to the gitlab

If it’s a fresh installation of GitLab, there’s a good chance that it’s using a randomly generated password. You may be able to find the password at /etc/gitlab/initial_root_password if you’ve not run gitlab-ctl reconfigure since installing GitLab.

If it’s not there, you can reset the root user password from the command line with sudo gitlab-rake "gitlab:password:reset[root]"