Re: [Puppet Users] Rake failing to create puppet dashboard database on RHEL6

Jacob Helwig
Mon, 20 Jun 2011 16:28:12 -0000

On Mon, 20 Jun 2011 09:21:04 -0700, Pheran wrote:
>
> Hi folks,
>
> I''m trying to install puppet dashboard 1.1.1 on RHEL6 (following
some
> instructions in the excellent Pro Puppet book) but the rake command is
> failing to create the database like so:
>
> # rake RAILS_ENV=production db:create
> (in /usr/share/puppet-dashboard)
> Couldn''t create database for
{"encoding"=>"utf8",
"adapter"=>"mysql",
> "username"=>"dashboard",
"database"=>"dashboard",
> "password"=>"mypassword"}, charset: utf8, collation:
utf8_unicode_ci
> (if you set the charset manually, make sure you have a matching
> collation)
>
> In the database.yml I have:
>
> production:
>   database: dashboard
>   username: dashboard
>   password: mypassword
>   encoding: utf8
>   adapter: mysql
>
> Any ideas?  Thanks.
>

It looks like the dashboard MySQL user doesn''t have CREATE DATABASE
permissions.

This is a pretty reasonable restriction to have on the user, so you may
need to create the database manually using a more privileged user, and
skip the db:create step.

--
Jacob Helwig