Ok I found this <https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/update/README.md#reverting-to-gitlab-66x-or-later> with older versions and I am attempting to downgrade/re-install 6.6.5.
I uninstalled gitlab from these instructions <https://gitlab.com/gitlab-org/omnibus-gitlab/issues/135> and attempted to reinstall 6.6.5 omnibus. When I run gitlab-ctl reconfigure, I this error: ================================================================================ Recipe Compile Error in /opt/gitlab/embedded/cookbooks/gitlab/recipes/default.rb ================================================================================ NoMethodError ------------- undefined method `[]=' for nil:NilClass Cookbook Trace: --------------- /opt/gitlab/embedded/cookbooks/gitlab/libraries/gitlab.rb:56:in `block (2 levels) in generate_secrets' /opt/gitlab/embedded/cookbooks/gitlab/libraries/gitlab.rb:55:in `each' /opt/gitlab/embedded/cookbooks/gitlab/libraries/gitlab.rb:55:in `block in generate_secrets' /opt/gitlab/embedded/cookbooks/gitlab/libraries/gitlab.rb:54:in `each' /opt/gitlab/embedded/cookbooks/gitlab/libraries/gitlab.rb:54:in `generate_secrets' /opt/gitlab/embedded/cookbooks/gitlab/libraries/gitlab.rb:137:in `generate_config' /opt/gitlab/embedded/cookbooks/gitlab/recipes/default.rb:34:in `from_file' Relevant File Content: ---------------------- /opt/gitlab/embedded/cookbooks/gitlab/libraries/gitlab.rb: 49: def generate_secrets(node_name) 50: existing_secrets ||= Hash.new 51: if File.exists?("/etc/gitlab/gitlab-secrets.json") 52: existing_secrets = Chef::JSONCompat.from_json(File.read("/etc/gitlab/gitlab-secrets.json")) 53: end 54: existing_secrets.each do |k, v| 55: v.each do |pk, p| 56>> Gitlab[k][pk] = p 57: end 58: end 59: 60: Gitlab['postgresql']['sql_password'] ||= generate_hex(50) 61: Gitlab['gitlab_rails']['secret_token'] ||= generate_hex(64) 62: 63: if File.directory?("/etc/gitlab") 64: File.open("/etc/gitlab/gitlab-secrets.json", "w") do |f| 65: f.puts( gitlab-rake gitlab:check SANITIZE=true gives me this error: update hooks in repos are links: ... rake aborted! could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? Tasks: TOP => gitlab:check => gitlab:gitlab_shell:check On Thursday, September 24, 2015 at 7:20:38 PM UTC-7, Jameson Merkow wrote: > > 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/54a05fbf-e2ab-49a8-80d8-93eebd58c4b5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.