Hello,

I am trying to migrate my old gitlab server to a new box.  The current 
machine had 6.6.5 installed on it, which is far behind the current.

I got a fresh copy of gitlab installed on the new machine, went fine.

I backed up my old machine, then upgraded from 6.6.5 to the latest version 
following these instructions:
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/update/README.md#updating-from-gitlab-66-and-higher-to-the-latest-version

Now gitlab www won't load (500)
I have tried running:
sudo gitlab-rake gitlab:check SANITIZE=true

and it outputs:
All migrations up? ... no
  Try fixing it:
  sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
  Please fix the error above and rerun the checks.
Database contains orphaned GroupMembers? ... rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation 
"members" does not exist
LINE 5:                WHERE a.attrelid = '"members"'::regclass
                                          ^
:               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.
atttypid, a.atttypmod
                FROM pg_attribute a LEFT JOIN pg_attrdef d
                  ON a.attrelid = d.adrelid AND a.attnum = d.adnum
               WHERE a.attrelid = '"members"'::regclass
                 AND a.attnum > 0 AND NOT a.attisdropped
               ORDER BY a.attnum


I tried running 
'sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production' as 
suggested.
==> Could not locate Gem file

Then I tried (thinking its an omnibus equivalent?)
'sudo gitlab-rake db:migrate RAILS_ENV=production

This outputs:
== 20140729152420 MigrateTaggableLabels: migrating 
============================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled
:


undefined local variable or method `template' for 
#<Label:0x00000006e4c5e0>/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activemodel-4.1.12/lib/active_model/attribute_methods.rb:435:in
 
`method_missing'
rake aborted!
StandardError: An error has occurred, this and all later migrations 
canceled:




Now I'm out of ideas.

Also, Is there a copy of 6.6.5 omnibus somewhere that I could re-install? 
 I have lots of backups for that version. I could install that on the new 
machine so people can get at their code while I figure out this issue with 
upgrading.

Any help will be greatly appreciated.
--
Jameson



-- 
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 gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/337abc9a-15b8-4dba-8768-68f35de01bd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to