When I try to run a test on Chrome (selenium / Ruby) then I get the following error. Could anybody help to resolve this?
Error :-
Background: Login to app # tests\integration\channels.feature:3
[6100:7920:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to
launch child process
[6100:9520:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to
launch child process
[6100:9520:1028/134946:ERROR:child_process_launcher.cc(533)] Failed to
launch child process
[6100:9520:1028/134949:ERROR:child_process_launcher.cc(533)] Failed to
launch child process
[6100:9520:1028/134955:ERROR:child_process_launcher.cc(533)] Failed to
launch child process
[6100:9520:1028/135006:ERROR:child_process_launcher.cc(533)] Failed to
launch child process rake aborted!
Following are the gems installed:-
* LOCAL GEMS *
bigdecimal (default: 1.2.0)
builder (3.2.2)
bundle (0.0.1)
bundler (1.13.6, 1.11.2)
childprocess (0.5.0)
cucumber (2.4.0, 1.3.2)
cucumber-core (1.5.0)
cucumber-wire (0.0.1)
debase (0.2.1, 0.1.4)
debase-ruby_core_source (0.9.2)
diff-lcs (1.2.5)
ffi (1.9.14 x86-mingw32)
gherkin (4.0.0, 2.12.2 x86-mingw32)
io-console (default: 0.4.2)
json (2.0.2, default: 1.7.7)
minitest (default: 4.3.2)
multi_json (1.12.1, 1.11.2)
multi_test (0.1.2)
parallel (1.6.1)
parallel_tests (1.3.7)
psych (default: 2.0.0)
rake (10.1.0, default: 0.9.6)
rdoc (default: 4.0.0)
ruby-debug-ide (0.6.0, 0.4.32)
rubyzip (1.2.0, 1.1.7)
selenium-webdriver (2.52.0, 2.48.0, 2.46.2)
test-unit (default: 2.0.0.0)
websocket (1.2.3, 1.2.2)
I am using:-
ruby '2.0.0'
gem 'cucumber', '1.3.2'
gem 'selenium-webdriver', '2.53.0'
gem 'rake', '10.1.0'
gem 'appium_lib', '8.0.2'
gem 'json', '1.8.3'
gem 'parallel_tests', '1.3.7'
Thanks in advance!
I have the same issue in Chrome 54.0.2840.71. The issue only reproduces for me when running chrome as administrator (on windows). A couple of workarounds you can use:
If you were running as admin, try running unelevated and it might fix your issue.
Disable the Chrome Zygote process when launching. Beware, this will disable the chrome sandbox and you might have security risks.
chrome.exe --no-zygote --no-sandbox
Related
I'm trying to install logstash-integration-jdbc following this git logstash-integration-jdbc
running logstash 7.12.1
I've installed jruby
$ jruby --version
jruby 9.1.17.0 (2.3.3) 2020-02-29 fffffff OpenJDK 64-Bit Server VM 11.0.11+9-Ubuntu-0ubuntu2.20.04 on 11.0.11+9-Ubuntu-0ubuntu2.20.04 +jit [linux-x86_64]
and bundler gem
$ ruby -S gem list --local
*** LOCAL GEMS ***
bundler (2.2.19)
bundler-unload (1.0.2)
cmath (default: 1.0.0)
csv (default: 1.0.0)
did_you_mean (1.2.0)
executable-hooks (1.6.1)
fileutils (default: 1.1.0)
gem-wrappers (1.4.0)
ipaddr (default: 1.2.0)
jar-dependencies (default: 0.4.0)
jruby-launcher (1.1.17 java)
jruby-openssl (0.10.7 java, default: 0.10.2 java)
jruby-readline (default: 1.3.7 java)
json (default: 2.2.0 java)
minitest (5.10.3)
net-telnet (0.1.1)
power_assert (1.1.3)
psych (default: 3.1.0 java)
rake (13.0.3, 12.3.2)
rake-ant (default: 1.0.4)
rdoc (default: 6.1.2)
rubygems-bundler (1.4.5)
rvm (1.11.3.9)
scanf (default: 1.0.0)
test-unit (3.2.8)
webrick (default: 1.4.2)
xmlrpc (0.3.0)
I also done clone from the git source
$ ./gradlew vendor
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.3/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
BUILD SUCCESSFUL in 4s
2 actionable tasks: 2 executed
but when I try to install the bundle
$ bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.......
Resolving dependencies...........................................................
Bundler could not find compatible versions for gem "logstash-core":
In Gemfile:
logstash-integration-jdbc was resolved to 5.1.1, which depends on
logstash-core-plugin-api (>= 1.60, <= 2.99) was resolved to 1.60.1, which
depends on
logstash-core (>= 2.4.0.snapshot1, <= 2.4.99)
logstash-integration-jdbc was resolved to 5.1.1, which depends on
logstash-core (>= 6.5.0)
What should I do now?
Tried the original method of gem install jekyll and I get this error:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Installed Xcode and command line tools. Then followed up with installing homebrew using this command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
get this error after:
Error: Failed to link all completions, docs and manpages:
Permission denied - (../../../Homebrew/completions/zsh/_brew, /usr/local/share/zsh/site-functions/_brew)
Failed during: /usr/local/bin/brew update --force
These are my ruby and gem version:
addressable (2.5.1)
bigdecimal (default: 1.2.0)
CFPropertyList (2.2.8)
colorator (1.1.0)
ffi (1.9.18)
io-console (default: 0.4.2)
jekyll-sass-converter (1.5.0)
jekyll-watch (1.5.0)
json (default: 1.7.7)
kramdown (1.14.0)
libxml-ruby (2.6.0)
listen (3.0.8)
minitest (default: 4.3.2)
nokogiri (1.5.6)
psych (default: 2.0.0)
public_suffix (2.0.5)
rake (default: 0.9.6)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
rdoc (default: 4.0.0)
rubygems-update (2.6.12)
sass (3.5.1)
sass-listen (4.0.0)
sqlite3 (1.3.7)
test-unit (default: 2.0.0.0)
Please help!
Did you try running the command with sudo ? for example sudo gem install jekyll bundler. This will ensure that you're running the command as an administrator.
I'm trying to write a rubygem that does some stuff with homebrew. I'm calling on brew to do some stuff using system(). When I include certain gems in using bundler, I get some errors doing things inside system().
As an example, a basic Gemfile with rake:
~/tmp/foo cat Gemfile
source 'https://rubygems.org'
gem 'rake'
Inside irb after running a bundle install:
irb(main):001:0> system("brew", "info", "ack")
Could not find rake-12.0.0 in any of the sources
Run `bundle install` to install missing gems.
=> false
I can do a bundle install inside the call and receive the same results:
rb(main):007:0> system("bundle", "install")
Using rake 12.0.0
Using bundler 1.14.6
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
Bundled gems are installed into /Users/laura/.bundle.
=> true
irb(main):008:0> system("brew", "version")
Could not find rake-12.0.0 in any of the sources
Run `bundle install` to install missing gems.
=> false
Without the rake gem included I do not receive any errors:
~/tmp/foo cat Gemfile
source 'https://rubygems.org'
gem 'git'
~/tmp/foo bundle install
Fetching gem metadata from https://rubygems.org/.
Fetching version metadata from https://rubygems.org/
Resolving dependencies...
Using git 1.3.0
Using bundler 1.14.6
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
Bundled gems are installed into /Users/surminus/.bundle.
~/tmp/foo
~/tmp/foo irb
irb(main):002:0> system("brew", "info", "ack")
ack: stable 2.16, HEAD
Search tool like grep, but optimized for programmers
https://beyondgrep.com/
/usr/local/Cellar/ack/2.14 (4 files, 184.7KB)
Built from source on 2016-12-16 at 16:24:07
/usr/local/Cellar/ack/2.16 (4 files, 190.7KB) *
Built from source on 2017-03-17 at 20:25:45
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ack.rb
=> true
I know it's probably related to some conflict between homebrew, rake and bundler, but I can't for the life of me figure out what's going on. I only need to rake tasks for some development specific tasks so I can remove it, but I'm interested to find out why this occurs, or if indeed calling brew this way is $bad.
EDIT: I was asked for output of gem list --local in the bundle directory. Seems to be system gems. With bundle exec:
~/tmp/foo bundle exec gem list --local
*** LOCAL GEMS ***
bundler (1.14.6)
rake (12.0.0)
Without bundle exec:
~/tmp/foo gem list --local
*** LOCAL GEMS ***
activemodel (5.0.1)
activesupport (5.0.1)
addressable (2.5.0)
bigdecimal (1.2.8)
bundler (1.14.6, 1.14.5, 1.13.6)
CFPropertyList (2.2.8)
coderay (1.1.1)
commander (4.4.2)
concurrent-ruby (1.0.3)
did_you_mean (1.0.0)
diff-lcs (1.3, 1.2.5)
domain_name (0.5.20161129)
facter (2.4.6 ruby universal-darwin)
fileutils (0.7)
git (1.3.0)
hiera (1.3.4)
highline (1.7.8)
http-cookie (1.0.3)
i18n (0.7.0)
io-console (0.4.5)
json (2.0.2, 1.8.3)
json_pure (2.0.1, 1.8.3)
metaclass (0.0.4)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (3.2016.0521)
minitest (5.10.1, 5.8.3)
mocha (1.2.1, 1.1.0)
myosx (0.2.2, 0.2.0, 0.1.0)
net-telnet (0.1.1)
netrc (0.11.0)
oauth (0.5.1)
power_assert (0.2.6)
pry (0.10.4)
psych (2.0.17)
public_suffix (2.0.4)
puppet (3.8.7)
puppet-lint (1.1.0)
puppet-syntax (2.3.0, 2.1.0)
puppetlabs_spec_helper (1.1.1)
rake (12.0.0, 11.1.2, 10.5.0, 10.4.2)
rdoc (4.2.1)
rest-client (2.0.0)
rmagick (2.16.0)
rspec (3.5.0, 3.4.0)
rspec-core (3.5.4, 3.4.4)
rspec-expectations (3.5.0, 3.4.0)
rspec-mocks (3.5.0, 3.4.1)
rspec-puppet (2.4.0)
rspec-support (3.5.0, 3.4.1)
ruby-trello (1.6.0)
slop (3.6.0)
test-unit (3.1.5)
thread_safe (0.3.5)
tzinfo (1.2.2)
unf (0.1.4)
unf_ext (0.0.7.2)
I have installed Middleman 3.1.5 as described on my Windows 8 Machnine along with Ruby using rubyinstaller-2.0.0-p247.exe and followed the steps to get started with success. I am now building my first site with some success (coding some pages, starting the server, building the site) but when I try to use some advanced third party components like middleman-navigation or middleman-deploy I seem to hit a wall. At first I thought of a mistake by myself but as more and more things seem to be buggy I want to figure out what is wrong with my setup or at least confirm nothing is.
Some example output that seems buggy to me:
$ middleman help
WARN: Unresolved specs during Gem::Specification.reset:
rack (>= 1.0, >= 1.4.5)
thor (< 2.0, >= 0.15.2)
activesupport (~> 3.2.6)
listen (~> 1.2.2)
i18n (~> 0.6.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Tasks:
...
When i try to install middleman-deploy as described, adding gem "middleman-deploy" to my Gemfile and run bundle install there is no indication that anything changed:
$ bundle install
Using i18n (0.6.5)
Using multi_json (1.8.0)
Using activesupport (3.2.14)
Using chunky_png (1.2.8)
Using coffee-script-source (1.6.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using fssm (0.2.10)
Using sass (3.2.10)
Using compass (0.12.2)
Using eventmachine (1.0.3)
Using http_parser.rb (0.5.3)
Using em-websocket (0.5.0)
Using ffi (1.9.0)
Using tilt (1.3.7)
Using haml (4.0.3)
Using hike (1.2.3)
Using kramdown (1.1.0)
Using rb-fsevent (0.9.3)
Using rb-inotify (0.9.2)
Using rb-kqueue (0.2.0)
Using listen (1.2.3)
Using bundler (1.3.5)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using thor (0.18.1)
Using middleman-core (3.1.5)
Using middleman-more (3.1.5)
Using sprockets (2.10.0)
Using sprockets-helpers (1.0.1)
Using sprockets-sass (1.0.1)
Using middleman-sprockets (3.1.4)
Using uglifier (2.1.2)
Using middleman (3.1.5)
Using rack-livereload (0.3.15)
Using middleman-livereload (3.1.0)
Using wdm (0.1.0)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
I then add a configuration to config.rb and try to use the gem without success:
$ middleman deploy
WARN: Unresolved specs during Gem::Specification.reset:
rack (>= 1.0, >= 1.4.5)
thor (< 2.0, >= 0.15.2)
multi_json (~> 1.0)
rb-inotify (>= 0.9)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
There's no 'deploy' command for Middleman. Try 'middleman help' for a list of commands.
Please help me to narrow down the cause of these issues.
I had a similar WARN: Unresolved specs during Gem::Specification.reset: message when I did middleman build I'm on a Mac using rvm with ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.3.0]. I found an issue post on GitHub with a similar WARN and the fix was to run gem regenerate_binstubs. It cleared the WARN for me. I'm not sure exactly what that does but it clears up a few issues with rubygems-bundler.
I'm trying to deploy a PHP project using Capistrano. When I try to do a cap deploy, I get an error:
wes:/var/www/nipponpulse [svn:] → cap deploy
* executing `deploy'
** transaction: start
* executing `deploy:update_code'
executing locally: "svn info https://newcitymedia.svn.beanstalkapp.com/nippon_pulse/expressionengine -rHEAD"
/opt/local/bin/svn
* executing "svn checkout -q -r94 https://newcitymedia.svn.beanstalkapp.com/nippon_pulse/expressionengine /var/www/nipponpulse/releases/20091117150904 && (echo 94 > /var/www/nipponpulse/releases/20091117150904/REVISION)"
servers: ["192.168.2.42"]
*** [deploy:update_code] rolling back
* executing "rm -rf /var/www/nipponpulse/releases/20091117150904; true"
servers: ["192.168.2.42"]
** [deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: 192.168.2.42 (NoMethodError: private method `split' called for 42:Fixnum)
connection failed for: 192.168.2.42 (NoMethodError: private method `split' called for 42:Fixnum)
Here's the recipe I'm using http://pastie.textmate.org/private/7mix7xhbf3ozwjskwt5orq. I'm using Snow Leopard and here's my list of gems (using sudo gem list --local):
actionmailer (2.3.4, 2.2.2, 1.3.6)
actionpack (2.3.4, 2.2.2, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.4, 2.2.2, 1.15.6)
activeresource (2.3.4, 2.2.2)
activesupport (2.3.4, 2.2.2, 1.4.4)
acts_as_ferret (0.4.4, 0.4.3)
adamcooke-key-installer (1.1)
capistrano (2.5.9, 2.5.2)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
defunkt-github (0.3.4)
dnssd (1.3.1, 1.3, 0.6.0)
fastthread (1.0.7, 1.0.1)
fcgi (0.8.7)
ferret (0.11.6)
gem_plugin (0.2.3)
highline (1.5.1, 1.5.0)
hpricot (0.8.1, 0.6.164)
json_pure (1.1.9)
libxml-ruby (1.1.3, 1.1.2)
mongrel (1.1.5)
needle (1.3.0)
net-scp (1.0.2, 1.0.1)
net-sftp (2.0.2, 2.0.1, 1.1.1)
net-ssh (2.0.15, 2.0.4, 1.1.4)
net-ssh-gateway (1.0.1, 1.0.0)
open4 (0.9.6)
rack (1.0.1, 1.0.0)
rails (2.3.4, 2.2.2, 1.2.6)
rake (0.8.7, 0.8.3)
RedCloth (4.2.2, 4.1.1)
ruby-openid (2.1.7, 2.1.2)
ruby-yadis (0.3.4)
rubygems-update (1.3.5)
rubynode (0.1.5)
sqlite3-ruby (1.2.5, 1.2.4)
termios (0.9.4)
vlad (2.0.0)
xmpp4r (0.5, 0.4)
When I run ruby -v I see this:
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
I'm not sure why it's failing. My experience with rails and ruby in general is slim to none, but I've used Capistrano in the past and it has worked on this machine. Is there something specific with Snow Leopard that I need to fix?
Edit: updated the error
Note that the error reads "exception while rolling back", which means that the error you're seeing occurred when Capistrano was already trying to rollback due to some other error. In other words, it's a red herring. If you can include the complete output of capistrano from the command in question, someone might be able to help you identify what really went wrong.
You should examine this error:
connection failed for: 192.168.2.42 (NoMethodError: private method `split' called for 42:Fixnum)
What host is this? Local? And try to check where the NoMethodError for split comes from.
You can also fire this cap command just to see if the destination server is the one not reachable:
cap invoke COMMAND='ls -l'