ruby on rails - This version of GitLab depends on gitlab-shell 2.6.3, but you're running Unknown. Please update gitlab-shell -


i have perfomed git clone https://github.com/gitlabhq/gitlabhq.git , executed bundle install.then executed bundle exec rake db:migrate in ubuntu.

i got warning

~/siva/clone/gitlabhq$ bundle exec rake db:migrate

warning: version of gitlab depends on gitlab-shell 2.6.3, you're running unknown. please update gitlab-shell.

20141121133009 addtimestampstomembers: migrating execute("update members set created_at = now() created_at null")

rake aborted!

standarderror: error has occurred, , later migrations canceled:

sqlite3::sqlexception: no such function: now: update members set created_at = now() created_at null/home/siva/siva/clone/gitlabhq/db/migrate/20141121133009_add_timestamps_to_members.rb:8:in up' activerecord::statementinvalid: sqlite3::sqlexception: no such function: now: update members set created_at = now() created_at null /home/siva/siva/clone/gitlabhq/db/migrate/20141121133009_add_timestamps_to_members.rb:8:inup'

gitlab tries parse gitlab shell version in config/initializers/5_backend.rb

current_version = gitlab::versioninfo.parse(gitlab::shell.new.version) 

it depends on version of gitlab trying upgrade from:

  • check current version:

    cd /home/git/gitlab sudo -u git -h bundle exec rake gitlab:env:info rails_env=production sudo -u git -h bundle exec rake gitlab:check rails_env=production 
  • double-check from 6.x or 7.x 7.12 (especially points ruby version).


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -