7.7.2 - 7.91 source code upgrade db upgrade fails

55 views
Skip to first unread message

Michael Galloway

unread,
Mar 27, 2015, 7:47:12 AM3/27/15
to gitl...@googlegroups.com
ok, good day all, 

i was running the script updater this morning on my 7.7.2 instance and the db migration failed with this:

Migrate DB
 -> bundle exec rake db:migrate
rake aborted!
ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in `autodetect'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/execjs-2.0.2/lib/execjs.rb:5:in `<module:ExecJS>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/execjs-2.0.2/lib/execjs.rb:4:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `block in require'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `block in require'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `block in require'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/coffee-rails-4.0.1/lib/coffee-rails.rb:1:in `<top (required)>'
/home/git/gitlab/config/application.rb:6:in `<top (required)>'
/home/git/gitlab/Rakefile:5:in `require'
/home/git/gitlab/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
 -> FAILED
Failed to upgrade. Try to repeat task or proceed with upgrade manually 

indeed there was no java installed on the system. i've installed oracle java 8 but i'm unsure how to restart the upgrade process. any help appreciated.

--- michael

Michael Galloway

unread,
Mar 27, 2015, 7:59:13 AM3/27/15
to gitl...@googlegroups.com
upon reflection i find this error rather odd. this server has been upgraded via upgrade script fairly regularly since version 6.9.x and has never exposed this error before. perhaps a bug in upgrade process?

--- michael

Achilleas Pipinellis

unread,
Mar 28, 2015, 1:00:56 PM3/28/15
to gitl...@googlegroups.com
On 03/27/2015 01:59 PM, Michael Galloway wrote:
> upon reflection i find this error rather odd. this server has been
> upgraded via upgrade script fairly regularly since version 6.9.x and has
> never exposed this error before. perhaps a bug in upgrade process?
>
> --- michael
>
>
> On Friday, March 27, 2015 at 7:47:12 AM UTC-4, Michael Galloway wrote:
>
> ok, good day all,
>
> i was running the script updater this morning on my 7.7.2 instance
> and the db migration failed with this:
>
> Migrate DB
> -> bundle exec rake db:migrate
> rake aborted!
> ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See
> https://github.com/sstephenson/execjs
> <https://github.com/sstephenson/execjs> for a list of available
> runtimes.

Hey Michael,

there have been some changes and GitLab now needs nodejs to be installed
on your server.

See
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/7.8-to-7.9.md#4-install-libs-migrations-etc


--
GPG : 0x3A7DDABC985EDC6E
Blog: http://axilleas.me
Reply all
Reply to author
Forward
0 new messages