Missing table puppet.images

Getting the following while trying to use the search function in the hosts
section of version 0.5:

Started GET "/hosts/auto_complete_search?search=f" for 172.30.17.251 at Fri
Jun 01 11:23:53 -0400 2012
Processing by HostsController#auto_complete_search as JSON
Parameters: {"search"=>"f"}
Operation FAILED: Table 'puppet.images' doesn't exist
Rendered common/500.rhtml (4.7ms)
Completed 500 Internal Server Error in 13ms (Views: 5.7ms | ActiveRecord:
0.8ms)

Did you perform the RAILS_ENV=production rake db:migrate?

Corey Osman
corey@logicminds.biz

Green IT and Datacenter Automation Specialist

··· On Jun 1, 2012, at 8:27 AM, Roger wrote:

Getting the following while trying to use the search function in the hosts section of version 0.5:

Started GET “/hosts/auto_complete_search?search=f” for 172.30.17.251 at Fri Jun 01 11:23:53 -0400 2012
Processing by HostsController#auto_complete_search as JSON
Parameters: {“search”=>“f”}
Operation FAILED: Table ‘puppet.images’ doesn’t exist
Rendered common/500.rhtml (4.7ms)
Completed 500 Internal Server Error in 13ms (Views: 5.7ms | ActiveRecord: 0.8ms)


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To view this discussion on the web visit https://groups.google.com/d/msg/foreman-users/-/MKRa0LYdVv0J.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.

Sort of. Did it initially, then moved everything over to a new server.

Did the following and it is fixed now:

>> RAILS_ENV=production rake db:migrate
(in /opt/foreman)
rake aborted!
You have already activated rake 0.8.7, but your Gemfile requires rake
0.9.2.2. Using bundle exec may solve this.
/opt/foreman/Rakefile:1
(See full trace by running task with --trace)

>> gem install rake
Successfully installed rake-0.9.2.2
1 gem installed
Installing ri documentation for rake-0.9.2.2…
Installing RDoc documentation for rake-0.9.2.2…

>> RAILS_ENV=production rake db:migrate
/opt/foreman/vendor/ruby/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:10:
warning: already initialized constant ENC_NONE
/opt/foreman/vendor/ruby/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:11:
warning: already initialized constant ENC_EUC
/opt/foreman/vendor/ruby/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:12:
warning: already initialized constant ENC_SJIS
/opt/foreman/vendor/ruby/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:13:
warning: already initialized constant ENC_UTF8
== CreateImages: migrating

··· =================================================== -- create_table(:images) -> 0.0305s == CreateImages: migrated (0.0307s) ==========================================

== CreateKeyPairs: migrating

– create_table(:key_pairs)
-> 0.0307s
== CreateKeyPairs: migrated (0.0309s)

== AddDnsIdToSubnet: migrating

– add_column(:subnets, :dns_id, :integer)
-> 0.0299s
== AddDnsIdToSubnet: migrated (0.0300s)

== AddImageIdToHost: migrating

– add_column(:hosts, :image_id, :integer)
-> 0.0869s
== AddImageIdToHost: migrated (0.0871s)

Thanks for the help!

On Friday, June 1, 2012 11:27:23 AM UTC-4, Roger wrote:

Getting the following while trying to use the search function in the hosts
section of version 0.5:

Started GET “/hosts/auto_complete_search?search=f” for 172.30.17.251 at
Fri Jun 01 11:23:53 -0400 2012
Processing by HostsController#auto_complete_search as JSON
Parameters: {“search”=>“f”}
Operation FAILED: Table ‘puppet.images’ doesn’t exist
Rendered common/500.rhtml (4.7ms)
Completed 500 Internal Server Error in 13ms (Views: 5.7ms | ActiveRecord:
0.8ms)

> Sort of. Did it initially, then moved everything over to a new server.
>
> Did the following and it is fixed now:
>
> >> RAILS_ENV=production rake db:migrate
> (in /opt/foreman)
> rake aborted!
> You have already activated rake 0.8.7, but your Gemfile requires rake
> 0.9.2.2. Using bundle exec may solve this.
> /opt/foreman/Rakefile:1
>

next time:

bundle exec RAILS_ENV=production rake db:migrate

Ohad

··· On Fri, Jun 1, 2012 at 10:29 PM, Roger wrote:

(See full trace by running task with --trace)

gem install rake
Successfully installed rake-0.9.2.2
1 gem installed
Installing ri documentation for rake-0.9.2.2…
Installing RDoc documentation for rake-0.9.2.2…

RAILS_ENV=production rake db:migrate
/opt/foreman/vendor/ruby/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:10:
warning: already initialized constant ENC_NONE
/opt/foreman/vendor/ruby/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:11:
warning: already initialized constant ENC_EUC
/opt/foreman/vendor/ruby/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:12:
warning: already initialized constant ENC_SJIS
/opt/foreman/vendor/ruby/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:13:
warning: already initialized constant ENC_UTF8
== CreateImages: migrating
===================================================
– create_table(:images)
-> 0.0305s
== CreateImages: migrated (0.0307s)
==========================================

== CreateKeyPairs: migrating

– create_table(:key_pairs)
-> 0.0307s
== CreateKeyPairs: migrated (0.0309s)

== AddDnsIdToSubnet: migrating

– add_column(:subnets, :dns_id, :integer)
-> 0.0299s
== AddDnsIdToSubnet: migrated (0.0300s)

== AddImageIdToHost: migrating

– add_column(:hosts, :image_id, :integer)
-> 0.0869s
== AddImageIdToHost: migrated (0.0871s)

Thanks for the help!

On Friday, June 1, 2012 11:27:23 AM UTC-4, Roger wrote:

Getting the following while trying to use the search function in the
hosts section of version 0.5:

Started GET “/hosts/auto_complete_search?**search=f” for 172.30.17.251
at Fri Jun 01 11:23:53 -0400 2012
Processing by HostsController#auto_complete_**search as JSON
Parameters: {“search”=>“f”}
Operation FAILED: Table ‘puppet.images’ doesn’t exist
Rendered common/500.rhtml (4.7ms)
Completed 500 Internal Server Error in 13ms (Views: 5.7ms | ActiveRecord:
0.8ms)


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/f514AsBtkGEJ.

To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.