Debian 7 - Atualize o gitlab-shell para 1.9.6 de 1.9.5

Debian 7 - Atualize o gitlab-shell para 1.9.6 de 1.9.5

Estou configurando um Gitlab em um servidor Debian 7.6

Ao executar isso:

# bundle exec rake gitlab:check RAILS_ENV=production

Saída:

Instance method "lock!" is already defined in ActiveRecord::Base, use generic helper instead or set StateMachine::Machine.ignore_method_conflicts = true.
 Warning 
  You are running as user root, we hope you know what you are doing.
  Things may work/fail for the wrong reasons.
  For correct results you should run this as user git.

Checking Environment ...

Git configured for git user? ... no
  Try fixing it:
  sudo -u git -H git config --global user.name  "GitLab"
  sudo -u git -H git config --global user.email "[email protected]"
  For more information see:
  doc/install/installation.md in section "GitLab"
  Please fix the error above and rerun the checks.

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.9.6 ? ... FAIL. Please update gitlab-shell to 1.9.6 from 1.9.5

Checking Sidekiq ...

Running? ... no
  Try fixing it:
  sudo -u git -H RAILS_ENV=production bin/background_jobs start
  For more information see:
  doc/install/installation.md in section "Install Init Script"
  see log/sidekiq.log for possible errors
  Please fix the error above and rerun the checks.

Checking Sidekiq ... Finished

Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
Database contains orphaned UsersGroups? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes

Estou preso nesta parte:

Versão do GitLab Shell >= 1.9.6? ... FALHAR. Atualize o gitlab-shell para 1.9.6 de 1.9.5

Alguém poderia ajudar como consertar isso?

Responder1

Parece que você só precisa atualizar gitlab-shell, o que pode ser feito com o seguinte conjunto de comandos:

git clone https://github.com/gitlabhq/gitlab-shell.git
cp config.yml.example config.yml
vim config.yml

certifique-se de substituir gitlab_url pelo URL desejado

sudo -u git -H ./bin/install

Observe que parece que você está fazendo algumas coisas como root, o que seria melhor feito como usuário "git", daí alguns dos avisos que você está recebendo. Enquantoesselink está um pouco desatualizado, pode ser útil para ajudá-lo a ver como fazer isso como usuário "git" em vez de root.

informação relacionada