Fresh Installation failed

Hey guys!

First time around here… My name is redacted, I'm working with Puppet for
about two years, now, I would like to try TheForeman.

So, I installed a brand new Ubuntu 14.04.1 - 64-Bit, to install TheForeman
on it. I'm following this
doc: Foreman :: Manual

But then, it failed:

··· ---
root@theforeman-1:~# foreman-installer
 Cannot create /var/lib/postgresql/9.3/main; parent directory 
/var/lib/postgresql/9.3 does not exist
 /Stage[main]/Postgresql::Server::Initdb/File[/var/lib/postgresql/9.3/main]/ensure: 
change from absent to directory failed: Cannot create 
/var/lib/postgresql/9.3/main; parent directory /var/lib/postgresql/9.3 does 
not exist
 /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]
 /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]
 /Stage[main]/Foreman::Database/Foreman::Rake[apipie:cache]/Exec[foreman-rake-apipie:cache]: 
Failed to call refresh: /usr/sbin/foreman-rake apipie:cache returned 1 
instead of one of [0]
 /Stage[main]/Foreman::Database/Foreman::Rake[apipie:cache]/Exec[foreman-rake-apipie:cache]: 
/usr/sbin/foreman-rake apipie:cache returned 1 instead of one of [0]
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[theforeman-1.cpd.mydomain.com.br]: 
Failed to call refresh: Could not load data from 
https://theforeman-1.cpd.mydomain.com.br
 /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[theforeman-1.cpd.mydomain.com.br]: 
Could not load data from https://theforeman-1.cpd.mydomain.com.br
Installing             Done                                               
[100%] 
[...................................................................................................................................................]
  Something went wrong! Check the log for ERROR-level output
  * Foreman is running at https://theforeman-1.cpd.mydomain.com.br
      Initial credentials are admin / DjJ7ybZ2FbZLcKqg
  * Foreman Proxy is running at 
https://theforeman-1.cpd.mydomain.com.br:8443
  * Puppetmaster is running at port 8140
  The full log is at /var/log/foreman-installer/foreman-installer.log

Any tips?!

Thanks in advance!

Cheers!
redacted

Hello again! :slight_smile:

Is there anything I can do to install the stable version of TheForeman on
Trusty?!

I'm following the documentations but it does not even install.

What am I missing?!

Tks!
redacted

··· On Tuesday, November 4, 2014 7:14:21 PM UTC-2, **redacted** wrote: > > Hey guys! > > First time around here... My name is **redacted**, I'm working with Puppet for > about two years, now, I would like to try TheForeman. > > So, I installed a brand new Ubuntu 14.04.1 - 64-Bit, to install TheForeman > on it. I'm following this doc: > http://theforeman.org/manuals/1.6/index.html#3.2ForemanInstaller > > But then, it failed: > > --- > root@theforeman-1:~# foreman-installer > Cannot create /var/lib/postgresql/9.3/main; parent directory > /var/lib/postgresql/9.3 does not exist > /Stage[main]/Postgresql::Server::Initdb/File[/var/lib/postgresql/9.3/main]/ensure: > change from absent to directory failed: Cannot create > /var/lib/postgresql/9.3/main; parent directory /var/lib/postgresql/9.3 does > not exist > /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] > /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] > /Stage[main]/Foreman::Database/Foreman::Rake[apipie:cache]/Exec[foreman-rake-apipie:cache]: > Failed to call refresh: /usr/sbin/foreman-rake apipie:cache returned 1 > instead of one of [0] > /Stage[main]/Foreman::Database/Foreman::Rake[apipie:cache]/Exec[foreman-rake-apipie:cache]: > /usr/sbin/foreman-rake apipie:cache returned 1 instead of one of [0] > /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ > theforeman-1.cpd.mydomain.com.br]: Failed to call refresh: Could not load > data from https://theforeman-1.cpd.mydomain.com.br > /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[ > theforeman-1.cpd.mydomain.com.br]: Could not load data from > https://theforeman-1.cpd.mydomain.com.br > Installing Done > [100%] > [...................................................................................................................................................] > Something went wrong! Check the log for ERROR-level output > * Foreman is running at https://theforeman-1.cpd.mydomain.com.br > Initial credentials are admin / DjJ7ybZ2FbZLcKqg > * Foreman Proxy is running at > https://theforeman-1.cpd.mydomain.com.br:8443 > * Puppetmaster is running at port 8140 > The full log is at /var/log/foreman-installer/foreman-installer.log > --- > > Any tips?! > > Thanks in advance! > > Cheers! > **redacted** >

That's very odd - we regularly run automated tests of
foreman-installer on trusty (eg. [1]) and it shows no issues, so that
implies something is different about your environment. Your output
shows it had an issue with PostgreSQL - is it installed and running
after the installer exits?

Greg

[1] http://ci.theforeman.org/job/systest_foreman/4345/

··· On 6 November 2014 23:21, **redacted** wrote: > Hello again! :-) > > Is there anything I can do to install the stable version of TheForeman on > Trusty?!