Showing posts from May, 2015

Reset Foreman default admin password

I received "Invalid username or password" from my Foreman web based UI,

Here is how to reset the default admin user password:

# foreman-rake permissions:reset Reset to user: admin, password: iWmYDR24GfPznyfQ

Issue with Foreman rake db during Foreman installation

During the Foreman installation on RHEL 6, I got the following error:

[root@puppesrv01-vlt ~]# foreman-installer
 /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: Failed to call refresh: Command exceeded timeout
 /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: Command exceeded timeout
 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
Preparing installation Done
  Something went wrong! Check the log for ERROR-level output
  * Foreman is running at
      Initial credentials are admin / vkscvVxFJHnrrAdH
  * Foreman Proxy is running at
  * Puppetmaster is running at port 8140
  The full log is at /var/log/foreman-installer/foreman-installer.log

It turns out that I need to issue the following commands manually and run the foreman-installer again:
# foreman-rake d…