Update: 

dblessing in #gitlab on IRC helped me out and now this is working.

For some reason db/schema.rb was owned by root. 

This 'chown git:git /path/to/db/schema.rb' fixed things nicely. 

Thanks!

On Monday, 5 January 2015 16:28:42 UTC, Phil Baines wrote:
>
> Hi Folks, 
>
>
> Tried updating from 7.6.0 to 7.6.2 today and received the following error:
>
>  -> bundle exec rake db:migrate
> rake aborted! 2.17.8
> Errno::EACCES: Permission denied @ rb_sysopen - 
> /home/git/gitlab/db/schema.rb
> /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/railties/databases.rake:229:in
>  
> `initialize'
> /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/railties/databases.rake:229:in
>  
> `open'
> /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/railties/databases.rake:229:in
>  
> `block (3 levels) in <top (required)>'
> /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/railties/databases.rake:42:in
>  
> `block (2 levels) in <top (required)>'
> /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/railties/databases.rake:37:in
>  
> `block (2 levels) in <top (required)>'
> Tasks: TOP => db:schema:dump
> (See full trace by running task with --trace)
>  -> FAILEDubyracer 0.12.0
> Failed to upgrade. Try to repeat task or proceed with upgrade manually
>
>
> I tried running the database migration manually (sudo -u git -H bundle 
> exec rake db:migrate RAILS_ENV=production) but the same error occurred. 
>
> I restored to my backup, tried again, failed again, and have now restored 
> to the backup a second time in the hopes of finding someone who can point 
> me in the right direction. 
>
> Any tips?
>
> Notes: Running the community edition, installed from source. Using the 
> upgrader script if that's not obvious. 
>
> Thanks and regards,
> Phil
>
>
>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/b81d8f2a-c360-41bc-9f57-06396ea8d6c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to