On 18/01/17 11:09, Martin Parlow wrote:
> How can i proceed?
> 
> (i xxxx the fqdn)
> 
> |
> [11:53] root prod-foreman-01:~# foreman-rake db:migrate --trace
> ** Invoke db:migrate (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> API controllers newer than Apipie cache! Run apipie:cache rake task to
> regenerate cache.
> rake aborted!
> NoMethodError: undefined method `all?' for
> "puppetmaster01.puppet.XXXXXXXX":String
> /usr/share/foreman/app/validators/array_hostnames_validator.rb:3:in
> `validate_each'

This is attempting to validate the "trusted_puppetmaster_hosts" setting
under Administer > Settings > Auth is an array, but it's a plain string.
No thought was put into fixing this on an upgrade.

If you can fix this to be an array before upgrading, then set it to:

  ["puppetmaster01.puppet.XXXXXXXX"]

or if you're unable to, consider deleting the entry from the "settings"
table in your database and it'll be recreated. Change it back to the
original value if required after upgrading.

I would ordinarily suggest that errors should be filed as bugs, but
1.13.x is very close to the end of its life, and it's unlikely to be
fixed at this stage (would have been better during RCs).

-- 
Dominic Cleal
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to