Hi Guys,

I have followed the latest Centos installation instructions 
*here*<https://github.com/gitlabhq/gitlab-recipes/tree/master/install/centos>and
 am having problems in  *Initialize 
Database and Activate Advanced Features* section.

When I run sudo -u git -H bundle exec rake gitlab:setup 
RAILS_ENV=production  I get the following;

This will create the necessary database tables and seed the database.
You will lose any previous data stored in the database.
Do you want to continue (yes/no)? yes

PG::Error: ERROR:  permission denied to create database
: CREATE DATABASE "gitlabhq_production" ENCODING = 'unicode'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in
 
`exec'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.3/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in
 
`block in execute'
...

...
/home/git/gitlab/vendor/bundle/ruby/2.1.0/bin/rake:23:in `<main>'
Couldn't create database for {"adapter"=>"postgresql", 
"encoding"=>"unicode", "database"=>"gitlabhq_production", "pool"=>10, 
"username"=>"git", "password"=>"git"}
-- create_table("broadcast_messages", {:force=>true})
   -> 0.0666s
...

...
== Seed from /home/git/gitlab/db/fixtures/production/001_admin.rb
2014-03-18T14:52:03Z 12803 TID-ovyyqvizc INFO: Sidekiq client with redis 
options {:url=>"redis://localhost:6379", :namespace=>"resque:gitlab"}

Administrator account created:

[email protected]
password......5iveL!fe

Bit confused, as you are asked to create the gitlabhq database earlier in 
the instructions, and it works fine?

Any ideas?

Stuart

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to