Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hive-runner doesn't work on OSX under rbenv, only rvm #136

Open
wordswords opened this issue Jul 25, 2016 · 3 comments
Open

Hive-runner doesn't work on OSX under rbenv, only rvm #136

wordswords opened this issue Jul 25, 2016 · 3 comments

Comments

@wordswords
Copy link
Contributor

wordswords commented Jul 25, 2016

This is because the shim inserted for hived start breaks the bundling of ruby dependencies

@jrmhaig
Copy link
Contributor

jrmhaig commented Jul 25, 2016

It doesn't work with uru either, which is a problem for the Windows Hive. I think it may be to do with the use of the daemons gem. Specifically, hived executes the start_hive script but this picks up the wrong version of ruby.

@ismailakbudak
Copy link

Hi I've faced following problems under this configuration;

OS: MacOS High Sierra
Ruby version: 2.3.7
rbenv version 1.1.0

When I try to run

$ hived 

/Users/iso/.rbenv/versions/2.3.7/lib/ruby/gems/2.3.0/gems/hive-runner-2.1.27/Gemfile not found 

And I've changed '../../Gemfile', part with following content in /Users/iso/.rbenv/versions/2.3.7/lib/ruby/gems/2.3.0/gems/hive-runner-2.1.27/bin/hived

#!/usr/bin/env ruby

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path(
 # '../../Gemfile',
  Pathname.new(__FILE__).realpath
)

After this change I tried again with command

$ hived --help 

Usage: start_hive <command> <options> -- <application options>

* where <command> is one of:
  start         start an instance of the application
  stop          stop all instances of the application
  restart       stop all instances and restart them afterwards
  reload        send a SIGHUP to all instances of the application
  run           start the application and stay on top
  zap           set the application to a stopped state
  status        show status (PID) of application instances

* and where <options> may contain several of the following:

    -t, --ontop                      Stay on top (does not daemonize)
    -s, --shush                      Silent mode (no output to the terminal)
    -f, --force                      Force operation
    -n, --no_wait                    Do not wait for processes to stop

Common options:
    -h, --help                       Show this message
        --version                    Show version

[!] There was an error parsing `hived`: exit. Bundler cannot continue.

 #  from /Users/iso/.rbenv/versions/2.3.7/lib/ruby/gems/2.3.0/gems/hive-runner-2.1.27/bin/hived:31
 #  -------------------------------------------
 #  
 >  Daemons.run(File.expand_path('..', __FILE__) + '/start_hive',
 #              show_status_callback: :test,
 #  -------------------------------------------

Do you have any idea?

@Asimk21
Copy link
Contributor

Asimk21 commented Sep 19, 2018

@ismailakbudak Can you try and follow http://bbc.github.io/hive-ci/documentation/quick-start.html and use rvm instead of rbenv, probably it is easy to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants