TheForeman v.1.5 Installer on F19

Sharing my installer experience from TheForeman v.1.5 on F19

http://theforeman.org/manuals/1.5/index.html#3.InstallingForeman

Your modified install for Fedora might look like this:

yum -y install http://yum.theforeman.org/releases/1.5/f19/x86_64/foreman-release.rpm
yum -y install foreman-installer
foreman-installer

The installer chokes with a message like:

*Preparing installation Done *
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/foreman-installer/foreman-installer.log

A closer inspection of /var/log/foreman-installer/foreman-installer.log:

[ERROR 2014-07-13 15:09:13 main] No preferred version defined or
automatically detected. at
/usr/share/foreman-installer/modules/postgresql/manifests/params.pp:173 on
node puppet.definecloud.com

Set some environment variables for language encoding to UTF-8:

export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

Attempt the installation again (if SElinux is enabled, set it to
permissive):

foreman-installer

Hope this helps until the installer becomes a little more distro & user
friendly.

Now go forth & take back your data center with Open Source technology!

Thanks for the contribution! For the record, we do automated tests on
F19 which passed at release (see [1] for recent example run against
nightly), so I'm not sure what was different about your system - if
it's reproducible, we'll happily take contributions to the docs[2] :slight_smile:

Greg

[1]http://ci.theforeman.org/job/systest_foreman/2143/
[2]https://github.com/theforeman/theforeman.org

Hey,

Foreman is fine, its Fedora what is broken. To be more specific, it's
broken Facter and the fact this Fedora version has non-US character in
the distro name, which breaks Facter, which breaks Puppet, which breaks
Foreman installer. :frowning:

> Attempt the installation again (if SElinux is enabled, set it to
> permissive):
>
> foreman-installer

This is a valid bug. Can you share the denials (audit.log) if you still
have it?

··· -- Later, Lukas "lzap" Zapletal

I am geeting the same error but on Ubuntu 14.10

[ERROR 2015-06-18 15:07:35 main] No preferred version defined or
automatically detected. at
/usr/share/foreman-installer/modules/postgresql/manifests/globals.pp:95 on
node ch-puppetmaster-01.chennailab.com

What should I do?

and where should I add these files:

export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

··· On Monday, July 14, 2014 at 4:38:32 AM UTC+5:30, Mark Christopher West wrote: > > Sharing my installer experience from TheForeman v.1.5 on F19 > > http://theforeman.org/manuals/1.5/index.html#3.InstallingForeman > > Your modified install for Fedora might look like this: > > yum -y install http://yum.theforeman.org/releases/1.5/f19/x86_64/foreman-release.rpm > yum -y install foreman-installer > foreman-installer > > The installer chokes with a message like: > > *Preparing installation Done * > *Something went wrong!* Check the log for ERROR-level output > The full log is at /var/log/foreman-installer/foreman-installer.log > > > > A closer inspection of /var/log/foreman-installer/foreman-installer.log: > > [ERROR 2014-07-13 15:09:13 main] No preferred version defined or > automatically detected. at > /usr/share/foreman-installer/modules/postgresql/manifests/params.pp:173 on > node puppet.definecloud.com > > Set some environment variables for language encoding to UTF-8: > > export LANG=en_US.UTF-8 > export LANGUAGE=en_US.UTF-8 > export LC_ALL=en_US.UTF-8 > > > Attempt the installation again (if SElinux is enabled, set it to > permissive): > > foreman-installer > > > Hope this helps until the installer becomes a little more distro & user > friendly. > > Now go forth & take back your data center with Open Source technology! > >

Also I ran the three export commands on the terminal and ran the
installation again. However I am still getting the error.

··· On Thursday, June 18, 2015 at 3:12:14 PM UTC+5:30, Siddhanth Maheshwari wrote: > > I am geeting the same error but on Ubuntu 14.10 > > [ERROR 2015-06-18 15:07:35 main] No preferred version defined or > automatically detected. at > /usr/share/foreman-installer/modules/postgresql/manifests/globals.pp:95 on > node ch-puppetmaster-01.chennailab.com > > What should I do? > > and where should I add these files: > > export LANG=en_US.UTF-8 > export LANGUAGE=en_US.UTF-8 > export LC_ALL=en_US.UTF-8 > > > > On Monday, July 14, 2014 at 4:38:32 AM UTC+5:30, Mark Christopher West > wrote: >> >> Sharing my installer experience from TheForeman v.1.5 on F19 >> >> http://theforeman.org/manuals/1.5/index.html#3.InstallingForeman >> >> Your modified install for Fedora might look like this: >> >> yum -y install http://yum.theforeman.org/releases/1.5/f19/x86_64/foreman-release.rpm >> yum -y install foreman-installer >> foreman-installer >> >> The installer chokes with a message like: >> >> *Preparing installation Done * >> *Something went wrong!* Check the log for ERROR-level output >> The full log is at /var/log/foreman-installer/foreman-installer.log >> >> >> >> A closer inspection of /var/log/foreman-installer/foreman-installer.log: >> >> [ERROR 2014-07-13 15:09:13 main] No preferred version defined or >> automatically detected. at >> /usr/share/foreman-installer/modules/postgresql/manifests/params.pp:173 on >> node puppet.definecloud.com >> >> Set some environment variables for language encoding to UTF-8: >> >> export LANG=en_US.UTF-8 >> export LANGUAGE=en_US.UTF-8 >> export LC_ALL=en_US.UTF-8 >> >> >> Attempt the installation again (if SElinux is enabled, set it to >> permissive): >> >> foreman-installer >> >> >> Hope this helps until the installer becomes a little more distro & user >> friendly. >> >> Now go forth & take back your data center with Open Source technology! >> >>

Hi,

··· On Thu, Jun 18, 2015 at 02:40:41AM -0700, Siddhanth Maheshwari wrote: > I am geeting the same error but on Ubuntu 14.10

Only LTS versions of Ubuntu are supported, so use 14.04 (or Debian 8,
which is a little newer).

Regards

Michael Moll