Foreman 1.4.1 and Puppet 3.4.3 on Wheezy

Hello all,

I'm a newbie on foreman and I try to install it and integrate it with my
puppet environment.
I install puppet fine, foreman too but when I try to go on the foreman web
page, I have an error.

The first is that the file, /usr/share/foreman/tmp/secret_token have no
wrong rights (root owner)
I replaced the owner by foreman.
It works, but now I have another error which is display.

ActiveRecord::RecordInvalid
Validation failed: Auth source can't be blank
app/models/user.rb:95:in create_admin' app/models/user.rb:102:inadmin'
app/controllers/concerns/foreman/controller/authentication.rb:36:in
authenticate' app/controllers/concerns/foreman/controller/authentication.rb:47:inrequire_login'
app/models/concerns/foreman/thread_session.rb:33:in clear_thread' lib/middleware/catch_json_parse_errors.rb:9:incall'

I find nothing on the web about this error…
Do you see that before? Someone know how to resolve this problem?

Thanks a lot for your help!
Fabien

Sounds like perhaps the installation didn't fully complete. Try running
"foreman-rake db:seed" and then visiting the web UI again.

··· -- Dominic Cleal Red Hat Engineering

On 06/03/14 16:46, fmorcamp@kaliop.org wrote:

Hello all,

I’m a newbie on foreman and I try to install it and integrate it with my
puppet environment.
I install puppet fine, foreman too but when I try to go on the foreman
web page, I have an error.

The first is that the file, /usr/share/foreman/tmp/secret_token have no
wrong rights (root owner)
I replaced the owner by foreman.
It works, but now I have another error which is display.

/ActiveRecord::RecordInvalid/
Validation failed: Auth source can’t be blank
app/models/user.rb:95:in create_admin' app/models/user.rb:102:inadmin’
app/controllers/concerns/foreman/controller/authentication.rb:36:in
authenticate' app/controllers/concerns/foreman/controller/authentication.rb:47:inrequire_login’
app/models/concerns/foreman/thread_session.rb:33:in clear_thread' lib/middleware/catch_json_parse_errors.rb:9:incall’

I find nothing on the web about this error…
Do you see that before? Someone know how to resolve this problem?

Thanks a lot for your help!
Fabien


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 foreman-users+unsubscribe@googlegroups.com
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com
mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.

HI Dominic,

Thanks a lot fro you're help, it solve the issue!
Can you explain me quickly why this command solve this problem?

Fabien

··· Le jeudi 6 mars 2014 17:46:18 UTC+1, fmor...@kaliop.org a écrit : > > Hello all, > > I'm a newbie on foreman and I try to install it and integrate it with my > puppet environment. > I install puppet fine, foreman too but when I try to go on the foreman web > page, I have an error. > > The first is that the file, /usr/share/foreman/tmp/secret_token have no > wrong rights (root owner) > I replaced the owner by foreman. > It works, but now I have another error which is display. > > *ActiveRecord::RecordInvalid* > *Validation failed: Auth source can't be blank* > app/models/user.rb:95:in `create_admin' > app/models/user.rb:102:in `admin' > app/controllers/concerns/foreman/controller/authentication.rb:36:in > `authenticate' > app/controllers/concerns/foreman/controller/authentication.rb:47:in > `require_login' > app/models/concerns/foreman/thread_session.rb:33:in `clear_thread' > lib/middleware/catch_json_parse_errors.rb:9:in `call' > > > I find nothing on the web about this error... > Do you see that before? Someone know how to resolve this problem? > > Thanks a lot for your help! > Fabien >

Thanks for your answear Dominic! Pretty cool!
I continue my foreman deployment and integration with puppet.

Thanks again for you're help

··· Le jeudi 6 mars 2014 17:46:18 UTC+1, fmor...@kaliop.org a écrit : > > Hello all, > > I'm a newbie on foreman and I try to install it and integrate it with my > puppet environment. > I install puppet fine, foreman too but when I try to go on the foreman web > page, I have an error. > > The first is that the file, /usr/share/foreman/tmp/secret_token have no > wrong rights (root owner) > I replaced the owner by foreman. > It works, but now I have another error which is display. > > *ActiveRecord::RecordInvalid* > *Validation failed: Auth source can't be blank* > app/models/user.rb:95:in `create_admin' > app/models/user.rb:102:in `admin' > app/controllers/concerns/foreman/controller/authentication.rb:36:in > `authenticate' > app/controllers/concerns/foreman/controller/authentication.rb:47:in > `require_login' > app/models/concerns/foreman/thread_session.rb:33:in `clear_thread' > lib/middleware/catch_json_parse_errors.rb:9:in `call' > > > I find nothing on the web about this error... > Do you see that before? Someone know how to resolve this problem? > > Thanks a lot for your help! > Fabien >

I can't tell what's gone wrong exactly without more logs and info about
how you installed it, but what the command does is populate the Foreman
database with some basic things for a clean installation. This includes
standard provisioning templates and the admin user with the default
password.

The error below indicated Foreman was trying to recreate it on the fly
as the user was missing, which suggests the database and all of the
tables were there, but they were empty. The db:seed command populates it.

··· -- Dominic Cleal Red Hat Engineering

On 07/03/14 08:35, fmorcamp@kaliop.org wrote:

HI Dominic,

Thanks a lot fro you’re help, it solve the issue!
Can you explain me quickly why this command solve this problem?

Fabien

Le jeudi 6 mars 2014 17:46:18 UTC+1, fmor...@kaliop.org a écrit :

Hello all,

I'm a newbie on foreman and I try to install it and integrate it
with my puppet environment.
I install puppet fine, foreman too but when I try to go on the
foreman web page, I have an error.

The first is that the file, /usr/share/foreman/tmp/secret_token have
no wrong rights (root owner)
I replaced  the owner by foreman.
It works, but now I have another error which is display.

/ActiveRecord::RecordInvalid/
*Validation failed: Auth source can't be blank*
app/models/user.rb:95:in `create_admin'
app/models/user.rb:102:in `admin'
app/controllers/concerns/foreman/controller/authentication.rb:36:in
`authenticate'
app/controllers/concerns/foreman/controller/authentication.rb:47:in
`require_login'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'


I find nothing on the web about this error...
Do you see that before? Someone know how to resolve this problem?

Thanks a lot for your help!
Fabien


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 foreman-users+unsubscribe@googlegroups.com
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com
mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.