Project

General

Profile

Actions

Bug #18625

closed

foreman-rake-db:migrate error

Added by kishore bjv over 7 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
foreman-installer script
Target version:
-
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

[root@ki /]# foreman-installer
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: Failed to call refresh: /usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: /usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
[omitted]
/usr/bin/puppet:8:in `<main>'
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/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]
/usr/share/ruby/vendor_ruby/puppet/util/errors.rb:106:in `fail'
..omitted..
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
/usr/bin/puppet:8:in `<main>'
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ki.lo]: Could not evaluate: Proxy ki.lo cannot be retrieved: unknown error (response 500)
/usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:7:in `proxy'

This is the error I'm facing
puppet version : 3.8.7 , Centos 7,
i tried tracing of db:rake
[root@ki /]# /usr/sbin/foreman-rake db:migrate --trace --verbose
rake aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - /opt/rh/sclo-ror42/root/usr/share/gems/gems/mail-2.6.1/lib/mail/../../VERSION

& i checked for VERSION file which was not there..
[root@ki mail-2.6.1]# pwd
/opt/rh/sclo-ror42/root/usr/share/gems/gems/mail-2.6.1
[root@ki mail-2.6.1]# find . -name "VERSION"
[root@ki mail-2.6.1]#

I think this is because of VERSION file missing, in mail gem?
I tried restarting postgres service, fqdn is good
host version is centos 7
I'm following installation guide .
Full log here : http://pastebin.com/7XHNm6U8
[root@ki mail-2.6.1]# foreman-debug
Processing... (takes a while)

HOSTNAME: ki.lo
OS: redhat
RELEASE: CentOS Linux release 7.3.1611 (Core)
FOREMAN: 1.14.1
RUBY: ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
PUPPET: 3.8.7
Actions

Also available in: Atom PDF