9 May 2015

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 https://myhostname.example.com
      Initial credentials are admin / vkscvVxFJHnrrAdH
  * Foreman Proxy is running at https://myhostname.example.com:8443
  * 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 db:migrate

# foreman-rake db:seed



It should not return any error and then clear the cache:

# foreman-rake tmp:cache:clear

# foreman-rake tmp:sessions:clear





No comments:

Post a Comment