bundle install always in Resolving dependencies progress - ruby
when I am using this command in macOS Catalina 10.15:
bundle install --verbose
shows this log output is:
$ bundle install --verbose
Running `bundle install --verbose` with bundler 2.2.3
Found changes from the lockfile, re-resolving dependencies because the list of sources changed, the dependencies in your gemfile changed, you added a new platform to your gemfile
HTTP GET https://gems.ruby-china.com/versions
HTTP 304 Not Modified https://gems.ruby-china.com/versions
Fetching gem metadata from https://gems.ruby-china.com/
Looking up gems ["xcode-install", "fastlane", "fastlane-plugin-pgyer"]
Looking up gems ["claide", "fastlane_core", "nokogiri", "spaceship", "capybara", "colored", "commander", "deliver", "highline", "json", "poltergeist", "security", "credentials_manager", "frameit", "pem", "shenzhen", "sigh", "snapshot", "produce", "slack-notifier", "hipchat", "cert", "aws-sdk", "xcodeproj", "terminal-notifier", "xcpretty", "cupertino", "terminal-table", "krausefx-shenzhen", "pbxplorer", "rest-client", "gym", "pilot", "plist", "addressable", "artifactory", "slather", "scan", "supply", "match", "screengrab", "multipart-post", "word_wrap", "bundler", "activesupport", "babosa", "dotenv", "excon", "faraday", "faraday-cookie_jar", "faraday_middleware", "fastimage", "gh_inspector", "google-api-client", "mini_magick", "multi_json", "multi_xml", "rubyzip", "xcpretty-travis-formatter", "colored2", "tty-screen", "commander-fastlane", "CFPropertyList", "public_suffix", "tty-spinner", "simctl", "emoji_regex", "bootsnap", "google-cloud-storage", "jwt", "aws-sdk-s3", "naturally"]
Looking up gems ["hoe", "weakling", "mini_portile", "mini_portile2", "pkg-config", "racc", "termios", "culerity", "database_cleaner", "rack", "selenium-webdriver", "rack-test", "mime-types", "celerity", "xpath", "mini_mime", "regexp_parser", "uglifier", "prawn", "phantomjs", "httparty", "mimemagic", "rake", "nanaimo", "atomos", "pry", "cookiejar", "sentry-raven", "em-websocket", "sfl", "faye-websocket", "http_parser.rb", "childprocess", "cliver", "websocket-driver", "net-sftp", "unicode-display_width", "uuidtools", "aws-sdk-v1", "aws-sdk-resources", "aws-sdk-acm", "aws-sdk-apigateway", "aws-sdk-applicationautoscaling", "aws-sdk-applicationdiscoveryservice", "aws-sdk-autoscaling", "aws-sdk-budgets", "aws-sdk-cloudformation", "aws-sdk-cloudfront", "aws-sdk-cloudhsm", "aws-sdk-cloudsearch", "aws-sdk-cloudsearchdomain", "aws-sdk-cloudtrail", "aws-sdk-cloudwatch", "aws-sdk-cloudwatchevents", "aws-sdk-cloudwatchlogs", "aws-sdk-codecommit", "aws-sdk-codedeploy", "aws-sdk-codepipeline", "aws-sdk-cognitoidentity", "aws-sdk-cognitoidentityprovider", "aws-sdk-cognitosync", "aws-sdk-configservice", "aws-sdk-databasemigrationservice", "aws-sdk-datapipeline", "aws-sdk-devicefarm", "aws-sdk-directconnect", "aws-sdk-directoryservice", "aws-sdk-dynamodb", "aws-sdk-dynamodbstreams", "aws-sdk-ec2", "aws-sdk-ecr", "aws-sdk-ecs", "aws-sdk-efs", "aws-sdk-elasticache", "aws-sdk-elasticbeanstalk", "aws-sdk-elasticloadbalancing", "aws-sdk-elasticloadbalancingv2", "aws-sdk-elasticsearchservice", "aws-sdk-elastictranscoder", "aws-sdk-emr", "aws-sdk-firehose", "aws-sdk-gamelift", "aws-sdk-glacier", "aws-sdk-iam", "aws-sdk-importexport", "aws-sdk-inspector", "aws-sdk-iot", "aws-sdk-iotdataplane", "aws-sdk-kinesis", "aws-sdk-kinesisanalytics", "aws-sdk-kms", "aws-sdk-lambda", "aws-sdk-lambdapreview", "aws-sdk-machinelearning", "aws-sdk-marketplacecommerceanalytics", "aws-sdk-marketplacemetering", "aws-sdk-opsworks", "aws-sdk-rds", "aws-sdk-redshift", "aws-sdk-route53", "aws-sdk-route53domains", "aws-sdk-servicecatalog", "aws-sdk-ses", "aws-sdk-simpledb", "aws-sdk-sms", "aws-sdk-snowball", "aws-sdk-sns", "aws-sdk-sqs", "aws-sdk-ssm", "aws-sdk-storagegateway", "aws-sdk-support", "aws-sdk-swf", "aws-sdk-waf", "aws-sdk-workspaces", "aws-sdk-appstream", "aws-sdk-codebuild", "aws-sdk-health", "aws-sdk-lightsail", "aws-sdk-opsworkscm", "aws-sdk-pinpoint", "aws-sdk-polly", "aws-sdk-rekognition", "aws-sdk-sfn", "aws-sdk-shield", "aws-sdk-wafregional", "aws-sdk-xray", "aws-sdk-batch", "aws-sdk-clouddirectory", "aws-sdk-costandusagereportservice", "aws-sdk-lexruntimeservice", "aws-sdk-mturk", "aws-sdk-organizations", "aws-sdk-workdocs", "aws-sdk-codestar", "aws-sdk-lexmodelbuildingservice", "aws-sdk-resourcegroupstaggingapi", "aws-sdk-lex", "aws-sdk-marketplaceentitlementservice", "aws-sdk-states", "aws-sdk-athena", "paint", "rouge", "rspec", "httpclient", "i18n", "mechanize", "term-ansicolor", "netrc", "certified", "rdoc", "ffi", "http-cookie", "http-accept", "builder", "memcache-client", "tzinfo", "minitest", "thread_safe", "concurrent-ruby", "method_source", "zeitwerk", "clamp", "extlib", "httpadapter", "signet", "launchy", "liquid", "sinatra", "autoparse", "retriable", "googleauth", "hurley", "memoist", "representable", "thor", "virtus", "rexml", "google-apis-core", "google-apis-generator", "hashie", "oauth2", "roauth", "dotenv-deployment", "subexec", "ruby2_keywords", "faraday-net_http", "tty-cursor", "digest-crc", "google-cloud-core", "google-apis-iamcredentials_v1", "google-apis-storage_v1", "libxml-ruby", "aws-sdk-core", "aws-sigv4", "msgpack", "snappy"]
Looking up gems ["rubyforge", "RubyInline", "gemcutter", "mime-types-data", "cucumber", "therubyracer", "execjs", "prawn-layout", "prawn-core", "prawn-format", "prawn-security", "pdf-reader", "ttfunk", "afm", "ruby-rc4", "pdf-core", "jnunemaker-crack", "crack", "json_pure", "libwebsocket", "websocket", "database_cleaner-active_record", "eventmachine", "websocket-extensions", "ruby_parser", "coderay", "win32console", "yard", "slop", "spoon", "yajl-ruby", "certifi", "net-ssh", "thin", "aws-sdk-dax", "aws-sdk-greengrass", "aws-sdk-cloudhsmv2", "aws-sdk-glue", "aws-sdk-migrationhub", "aws-sdk-mobile", "aws-sdk-pricing", "aws-sdk-costexplorer", "aws-sdk-mediaconvert", "aws-sdk-medialive", "aws-sdk-mediapackage", "aws-sdk-mediastore", "aws-sdk-mediastoredata", "aws-sdk-appsync", "aws-sdk-guardduty", "aws-sdk-mq", "aws-sdk-comprehend", "aws-sdk-iotjobsdataplane", "aws-sdk-kinesisvideo", "aws-sdk-kinesisvideoarchivedmedia", "aws-sdk-kinesisvideomedia", "aws-sdk-sagemaker", "aws-sdk-sagemakerruntime", "aws-sdk-translate", "aws-sdk-resourcegroups", "aws-sdk-alexaforbusiness", "aws-sdk-cloud9", "aws-sdk-serverlessapplicationrepository", "aws-sdk-servicediscovery", "aws-sdk-workmail", "aws-sdk-autoscalingplans", "aws-sdk-transcribeservice", "aws-sdk-connect", "aws-sdk-acmpca", "aws-sdk-fms", "aws-sdk-secretsmanager", "aws-sdk-iotanalytics", "aws-sdk-iot1clickdevicesservice", "aws-sdk-iot1clickprojects", "aws-sdk-pi", "aws-sdk-neptune", "aws-sdk-mediatailor", "aws-sdk-eks", "aws-sdk-macie", "aws-sdk-dlm", "aws-sdk-signer", "aws-sdk-chime", "aws-sdk-pinpointemail", "aws-sdk-pinpointsmsvoice", "aws-sdk-ram", "aws-sdk-route53resolver", "aws-sdk-s3control", "aws-sdk-quicksight", "aws-sdk-rdsdataservice", "aws-sdk-amplify", "aws-sdk-datasync", "aws-sdk-robomaker", "aws-sdk-transfer", "aws-sdk-globalaccelerator", "aws-sdk-comprehendmedical", "aws-sdk-kinesisanalyticsv2", "aws-sdk-mediaconnect", "aws-sdk-fsx", "aws-sdk-securityhub", "aws-sdk-appmesh", "aws-sdk-licensemanager", "aws-sdk-kafka", "aws-sdk-apigatewaymanagementapi", "aws-sdk-apigatewayv2", "aws-sdk-docdb", "aws-sdk-backup", "aws-sdk-worklink", "aws-sdk-textract", "aws-sdk-transcribestreamingservice", "aws-sdk-managedblockchain", "aws-sdk-mediapackagevod", "aws-sdk-groundstation", "aws-sdk-iotthingsgraph", "aws-sdk-iotevents", "aws-sdk-ioteventsdata", "aws-sdk-personalize", "aws-sdk-personalizeevents", "aws-sdk-personalizeruntime", "aws-sdk-applicationinsights", "aws-sdk-servicequotas", "aws-sdk-ec2instanceconnect", "aws-sdk-eventbridge", "aws-sdk-lakeformation", "aws-sdk-forecastqueryservice", "aws-sdk-forecastservice", "aws-sdk-qldb", "aws-sdk-qldbsession", "aws-sdk-workmailmessageflow", "aws-sdk-codestarnotifications", "aws-sdk-savingsplans", "aws-sdk-sso", "aws-sdk-ssooidc", "aws-sdk-marketplacecatalog", "aws-sdk-dataexchange", "aws-sdk-sesv2", "aws-sdk-migrationhubconfig", "aws-sdk-connectparticipant", "aws-sdk-appconfig", "aws-sdk-iotsecuretunneling", "aws-sdk-wafv2", "aws-sdk-elasticinference", "aws-sdk-imagebuilder", "aws-sdk-schemas", "aws-sdk-accessanalyzer", "aws-sdk-augmentedairuntime", "aws-sdk-codeguruprofiler", "aws-sdk-codegurureviewer", "aws-sdk-computeoptimizer", "aws-sdk-frauddetector", "aws-sdk-kendra", "aws-sdk-networkmanager", "aws-sdk-outposts", "aws-sdk-ebs", "aws-sdk-kinesisvideosignalingchannels", "aws-sdk-detective", "aws-sdk-codestarconnections", "aws-sdk-synthetics", "aws-sdk-iotsitewise", "aws-sdk-macie2", "aws-sdk-codeartifact", "aws-sdk-honeycode", "aws-sdk-ivs", "aws-sdk-braket", "aws-sdk-identitystore", "aws-sdk-appflow", "aws-sdk-redshiftdataapiservice", "aws-sdk-ssoadmin", "aws-sdk-timestreamquery", "aws-sdk-timestreamwrite", "aws-sdk-s3outposts", "aws-sdk-gluedatabrew", "aws-sdk-appregistry", "aws-sdk-networkfirewall", "aws-sdk-mwaa", "aws-sdk-amplifybackend", "aws-sdk-appintegrationsservice", "aws-sdk-connectcontactlens", "aws-sdk-devopsguru", "aws-sdk-ecrpublic", "aws-sdk-lookoutforvision", "aws-sdk-profile", "aws-sdk-sagemakerfeaturestoreruntime", "aws-sdk-customerprofiles", "aws-sdk-auditmanager", "aws-sdk-emrcontainers", "aws-sdk-healthlake", "aws-sdk-sagemakeredgemanager", "aws-sdk-greengrassv2", "aws-sdk-iotdeviceadvisor", "aws-sdk-iotfleethub", "aws-sdk-iotwireless", "aws-sdk-prometheusservice", "aws-sdk-locationservice", "aws-sdk-wellarchitected", "aws-sdk-lexmodelsv2", "aws-sdk-lexruntimev2", "aws-sigv2", "rspec-core", "rspec-expectations", "rspec-mocks", "hpricot", "ruby-web", "narf", "net-http-persistent", "net-http-digest_auth", "webrobots", "domain_name", "ntlm-http", "webrick", "tins", "sqlite3", "atomic", "english", "functional-ruby", "ref", "ZenTest", "logging", "os", "configuration", "mongrel", "tilt", "rack-protection", "backports", "mustermann", "hooks", "uber", "declarative", "declarative-option", "descendants_tracker", "axiom-types", "coercible", "equalizer", "gems", "google-apis-discovery_v1", "faraday-middleware", "httpauth", "google-cloud-env", "google-cloud-errors", "snappy-jars", "jamespath", "jmespath", "aws-partitions", "aws-eventstream", "http-2"]
Looking up gems ["net-scp", "Ascii85", "hashery", "spruz", "ParseTree", "sexp_processor", "diff-lcs", "polyglot", "treetop", "gherkin", "multi_test", "cucumber-core", "gherkin3", "cucumber-wire", "event-bus", "cucumber-expressions", "cucumber-formatter-dots", "cucumber-gherkin", "cucumber-html-formatter", "cucumber-cucumber-expressions", "cucumber-messages", "sys-uname", "cucumber-create-meta", "libv8", "safe_yaml", "needle", "jruby-pageant", "bcrypt_pbkdf", "rbnacl", "rbnacl-libsodium", "activerecord", "database_cleaner-core", "erubis", "daemons", "rspec-support", "connection_pool", "unf", "sync", "ice_nine", "tool", "flexmock", "lockfile", "little-plugger", "cgi_multipart_eof_fix", "fastthread", "gem_plugin", "rash", "escape_utils", "adamantium"]
Looking up gems ["blankslate", "trollop", "c21e", "SexpProcessor", "facets", "cucumber-tag_expressions", "cucumber-tag-expressions", "psych", "google-protobuf", "protobuf-cucumber", "abstract", "unf_ext", "activemodel", "arel", "activerecord-deprecated_finders", "memoizable"]
Looking up gems ["curses", "middleware", "bcrypt-ruby", "jar-dependencies"]
Looking up gems ["bcrypt", "ruby-maven"]
Looking up gems ["maven-tools", "ruby-maven-libs"]
Double checking for ["bundler"] in rubygems repository https://rubygems.org/ or installed locally
Fetching gem metadata from https://gems.ruby-china.com/
Looking up gems ["bundler"]
Resolving dependencies........................................................................................................................................................................
what exactly Resolving dependencies do? why the Resolving dependencies running for hours? how to known the progress of Resolving dependencies? what should I do to fix it?
this is my Gemfile(I have changed the source to china because the GFW but still not work):
source "https://gems.ruby-china.com"
gem "xcode-install"
gem "fastlane"
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
when I interrupt the install:
........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................^C
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/shared_helpers.rb:158:in `block in trap'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/shared_helpers.rb:158:in `block in trap'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/molinillo/lib/molinillo/resolution.rb:504:in `=='
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/molinillo/lib/molinillo/resolution.rb:504:in `=='
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/molinillo/lib/molinillo/resolution.rb:504:in `include?'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/molinillo/lib/molinillo/resolution.rb:504:in `block in filter_possibilities_for_parent_unwind'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/molinillo/lib/molinillo/resolution.rb:503:in `reject!'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/molinillo/lib/molinillo/resolution.rb:503:in `filter_possibilities_for_parent_unwind'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/molinillo/lib/molinillo/resolution.rb:445:in `filter_possibilities_after_unwind'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/molinillo/lib/molinillo/resolution.rb:303:in `block in unwind_for_conflict'
<internal:kernel>:90:in `tap'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/molinillo/lib/molinillo/resolution.rb:297:in `unwind_for_conflict'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/molinillo/lib/molinillo/resolution.rb:257:in `process_topmost_state'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/molinillo/lib/molinillo/resolution.rb:182:in `resolve'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/molinillo/lib/molinillo/resolver.rb:43:in `resolve'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/resolver.rb:50:in `start'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/resolver.rb:22:in `resolve'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/definition.rb:273:in `resolve'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/definition.rb:175:in `specs'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/definition.rb:163:in `resolve_remotely!'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/installer.rb:306:in `resolve_if_needed'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/installer.rb:83:in `block in run'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/process_lock.rb:12:in `block in lock'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/process_lock.rb:9:in `open'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/process_lock.rb:9:in `lock'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/installer.rb:72:in `run'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/installer.rb:24:in `install'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/cli/install.rb:64:in `run'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/cli.rb:262:in `block in install'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/settings.rb:115:in `temporary'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/cli.rb:261:in `install'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/cli.rb:30:in `dispatch'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/cli.rb:24:in `start'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.3/libexec/bundle:49:in `block in <top (required)>'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/bundler/friendly_errors.rb:130:in `with_friendly_errors'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.3/libexec/bundle:37:in `<top (required)>'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/bin/bundle:23:in `load'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/bin/bundle:23:in `<main>'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/bin/ruby_executable_hooks:22:in `eval'
/Users/dolphin/.rvm/rubies/ruby-3.0.0/bin/ruby_executable_hooks:22:in `<main>'
(base)
seems blocked for some reason.
Delete gemfile.lock and run bundle install, it will work.
Related
Faraday::SSLError (SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate))
I'm using Faraday gem(https://github.com/lostisland/faraday) to communicate with external JSON API. I'm using the SSL option because API is requiring this: ssl_crt = File.read(Jets.root.join('certs', 'test.crt')) ssl_key = File.read(Jets.root.join('certs', 'test.key')) client_cert = OpenSSL::X509::Certificate.new(ssl_crt) client_key = OpenSSL::PKey.read(ssl_key) connection = Faraday.new( 'https://sandbox-api.com/', ssl: { client_cert: client_cert, client_key: client_key, verify: true } ) do |conn| conn.response :json, content_type: /\bjson$/ conn.use Faraday::Response::RaiseError conn.adapter Faraday.default_adapter end connection.get('/token') Unfortunately, this returns me following error: Traceback (most recent call last): 16: from /Users/mateuszurbanski/.gem/ruby/2.5.3/gems/faraday-1.0.1/lib/faraday/connection.rb:198:in `get' 15: from /Users/mateuszurbanski/.gem/ruby/2.5.3/gems/faraday-1.0.1/lib/faraday/connection.rb:492:in `run_request' 14: from /Users/mateuszurbanski/.gem/ruby/2.5.3/gems/faraday-1.0.1/lib/faraday/rack_builder.rb:153:in `build_response' 13: from /Users/mateuszurbanski/.gem/ruby/2.5.3/gems/faraday_middleware-1.0.0/lib/faraday_middleware/response_middleware.rb:36:in `call' 12: from /Users/mateuszurbanski/.gem/ruby/2.5.3/gems/faraday-1.0.1/lib/faraday/response.rb:11:in `call' 11: from /Users/mateuszurbanski/.gem/ruby/2.5.3/gems/faraday-1.0.1/lib/faraday/adapter/net_http.rb:68:in `call' 10: from /Users/mateuszurbanski/.gem/ruby/2.5.3/gems/faraday-1.0.1/lib/faraday/adapter.rb:60:in `connection' 9: from /Users/mateuszurbanski/.gem/ruby/2.5.3/gems/faraday-1.0.1/lib/faraday/adapter/net_http.rb:70:in `block in call' 8: from /Users/mateuszurbanski/.gem/ruby/2.5.3/gems/faraday-1.0.1/lib/faraday/adapter/net_http.rb:128:in `perform_request' 7: from /Users/mateuszurbanski/.gem/ruby/2.5.3/gems/faraday-1.0.1/lib/faraday/adapter/net_http.rb:135:in `request_with_wrapped_block' 6: from /Users/mateuszurbanski/.gem/ruby/2.5.3/gems/faraday-1.0.1/lib/faraday/adapter/net_http.rb:144:in `request_via_get_method' 5: from /Users/mateuszurbanski/.rubies/ruby-2.5.3/lib/ruby/2.5.0/net/http.rb:909:in `start' 4: from /Users/mateuszurbanski/.rubies/ruby-2.5.3/lib/ruby/2.5.0/net/http.rb:920:in `do_start' 3: from /Users/mateuszurbanski/.rubies/ruby-2.5.3/lib/ruby/2.5.0/net/http.rb:981:in `connect' 2: from /Users/mateuszurbanski/.rubies/ruby-2.5.3/lib/ruby/2.5.0/net/protocol.rb:44:in `ssl_socket_connect' 1: from /Users/mateuszurbanski/.rubies/ruby-2.5.3/lib/ruby/2.5.0/net/protocol.rb:44:in `connect_nonblock' Faraday::SSLError (SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)) Any ideas what I'm doing wrong? EDIT: I forgot to add that the same certs are working fine in the Postman.
First, we need to confirm if you are using the public ca issued certificates, a privately issued certificate or a self-signed because the error states its not able to locate the certificate which has signed the leaf certificate. I suggest to first check whether "test.crt" have you concatenated the server, intermediate and root certificates in one. If the intermediate file or the root file is not concatenated kindly add the same to test.crt by editing the test.crt using notepad++ or any editing tool (please don't use windows word file). Please open eh intermediate file as well using notepad++ and copy the content . Once copied paste it under the -----END CERTIFICATE----- of test.crt file and follow the same step for root certificate as well. Please let us know the output.
Rbenv fails when installing rubinius 2.5.2
Rbenv with ruby-build fails when installing rbx-2.5.2. System: Lubuntu 14.10 Full log can be found at https://gist.github.com/sgoblin/89034c14e8426f400b68 Output of command: Downloading rubinius-2.5.2.tar.bz2... -> http://dqw8nmjcqpjn7.cloudfront.net/1b077537224d4ff1f8c628e5bbe0621dc6f833bc2d67a03aa10173b72299a1a8 Installing rubinius-2.5.2... BUILD FAILED (Ubuntu 14.10 using ruby-build 20150130-2-g8106d8f) Inspect or clean up the working tree at /tmp/ruby-build.20150213212239.19770 Results logged to /tmp/ruby-build.20150213212239.19770.log Last 10 log lines: 1: LD vm/vm /usr/bin/ld: cannot find -ledit collect2: error: ld returned 1 exit status Error: g++ -o vm/vm vm/artifacts/accessor_primitives.cpp.o vm/artifacts/arguments.cpp.o vm/artifacts/auxiliary_threads.cpp.o vm/artifacts/bytecode_verification.cpp.o vm/artifacts/call_frame.cpp.o vm/artifacts/compiled_file.cpp.o vm/artifacts/config_parser.cpp.o vm/artifacts/console.cpp.o vm/artifacts/dispatch.cpp.o vm/artifacts/environment.cpp.o vm/artifacts/exception.cpp.o vm/artifacts/exception_point.cpp.o vm/artifacts/ffi.cpp.o vm/artifacts/ffi_util.cpp.o vm/artifacts/fiber_data.cpp.o vm/artifacts/fiber_stack.cpp.o vm/artifacts/global_cache.cpp.o vm/artifacts/helpers.cpp.o vm/artifacts/instructions.cpp.o vm/artifacts/invoke_primitives.cpp.o vm/artifacts/jit_primitives.cpp.o vm/artifacts/linkedlist.cpp.o vm/artifacts/lock.cpp.o vm/artifacts/machine_code.cpp.o vm/artifacts/marshal.cpp.o vm/artifacts/method_primitives.cpp.o vm/artifacts/metrics.cpp.o vm/artifacts/object_memory.cpp.o vm/artifacts/ontology.cpp.o vm/artifacts/oop.cpp.o vm/artifacts/park.cpp.o vm/artifacts/shared_state.cpp.o vm/artifacts/signal.cpp.o vm/artifacts/stack_variables.cpp.o vm/artifacts/state.cpp.o vm/artifacts/symbol_table.cpp.o vm/artifacts/type_info.cpp.o vm/artifacts/unwind_info.cpp.o vm/artifacts/vm.cpp.o vm/artifacts/vm_thread_state.cpp.o vm/builtin/artifacts/access_variable.cpp.o vm/builtin/artifacts/alias.cpp.o vm/builtin/artifacts/array.cpp.o vm/builtin/artifacts/atomic.cpp.o vm/builtin/artifacts/autoload.cpp.o vm/builtin/artifacts/basic_object.cpp.o vm/builtin/artifacts/bignum.cpp.o vm/builtin/artifacts/block_as_method.cpp.o vm/builtin/artifacts/block_environment.cpp.o vm/builtin/artifacts/byte_array.cpp.o vm/builtin/artifacts/call_custom_cache.cpp.o vm/builtin/artifacts/call_site.cpp.o vm/builtin/artifacts/call_unit.cpp.o vm/builtin/artifacts/call_unit_adapter.cpp.o vm/builtin/artifacts/channel.cpp.o vm/builtin/artifacts/character.cpp.o vm/builtin/artifacts/class.cpp.o vm/builtin/artifacts/compact_lookup_table.cpp.o vm/builtin/artifacts/compiled_code.cpp.o vm/builtin/artifacts/constant_cache.cpp.o vm/builtin/artifacts/constant_scope.cpp.o vm/builtin/artifacts/constant_table.cpp.o vm/builtin/artifacts/data.cpp.o vm/builtin/artifacts/dir.cpp.o vm/builtin/artifacts/encoding.cpp.o vm/builtin/artifacts/exception.cpp.o vm/builtin/artifacts/executable.cpp.o vm/builtin/artifacts/ffi_pointer.cpp.o vm/builtin/artifacts/fiber.cpp.o vm/builtin/artifacts/find_object.cpp.o vm/builtin/artifacts/fixnum.cpp.o vm/builtin/artifacts/float.cpp.o vm/builtin/artifacts/fsevent.cpp.o vm/builtin/artifacts/heap_dump.cpp.o vm/builtin/artifacts/immediates.cpp.o vm/builtin/artifacts/integer.cpp.o vm/builtin/artifacts/io.cpp.o vm/builtin/artifacts/iseq.cpp.o vm/builtin/artifacts/jit.cpp.o vm/builtin/artifacts/list.cpp.o vm/builtin/artifacts/location.cpp.o vm/builtin/artifacts/logger.cpp.o vm/builtin/artifacts/lookup_table.cpp.o vm/builtin/artifacts/method_table.cpp.o vm/builtin/artifacts/module.cpp.o vm/builtin/artifacts/mono_inline_cache.cpp.o vm/builtin/artifacts/native_function.cpp.o vm/builtin/artifacts/native_method.cpp.o vm/builtin/artifacts/object.cpp.o vm/builtin/artifacts/pack.cpp.o vm/builtin/artifacts/packed_object.cpp.o vm/builtin/artifacts/poly_inline_cache.cpp.o vm/builtin/artifacts/proc.cpp.o vm/builtin/artifacts/randomizer.cpp.o vm/builtin/artifacts/regexp.cpp.o vm/builtin/artifacts/respond_to_cache.cpp.o vm/builtin/artifacts/stat.cpp.o vm/builtin/artifacts/string.cpp.o vm/builtin/artifacts/symbol.cpp.o vm/builtin/artifacts/system.cpp.o vm/builtin/artifacts/thread.cpp.o vm/builtin/artifacts/thread_state.cpp.o vm/builtin/artifacts/thunk.cpp.o vm/builtin/artifacts/time.cpp.o vm/builtin/artifacts/tuple.cpp.o vm/builtin/artifacts/unpack.cpp.o vm/builtin/artifacts/variable_scope.cpp.o vm/builtin/artifacts/weakref.cpp.o vm/capi/artifacts/array.cpp.o vm/capi/artifacts/bignum.cpp.o vm/capi/artifacts/capi.cpp.o vm/capi/artifacts/class.cpp.o vm/capi/artifacts/complex.cpp.o vm/capi/artifacts/data.cpp.o vm/capi/artifacts/encoding.cpp.o vm/capi/artifacts/enumerator.cpp.o vm/capi/artifacts/exception.cpp.o vm/capi/artifacts/file.cpp.o vm/capi/artifacts/fixnum.cpp.o vm/capi/artifacts/float.cpp.o vm/capi/artifacts/gc.cpp.o vm/capi/artifacts/globals.cpp.o vm/capi/artifacts/handle.cpp.o vm/capi/artifacts/handles.cpp.o vm/capi/artifacts/hash.cpp.o vm/capi/artifacts/integer.cpp.o vm/capi/artifacts/io.cpp.o vm/capi/artifacts/kernel.cpp.o vm/capi/artifacts/marshal.cpp.o vm/capi/artifacts/module.cpp.o vm/capi/artifacts/mutex.cpp.o vm/capi/artifacts/numeric.cpp.o vm/capi/artifacts/object.cpp.o vm/capi/artifacts/proc.cpp.o vm/capi/artifacts/range.cpp.o vm/capi/artifacts/rational.cpp.o vm/capi/artifacts/regexp.cpp.o vm/capi/artifacts/string.cpp.o vm/capi/artifacts/struct.cpp.o vm/capi/artifacts/symbol.cpp.o vm/capi/artifacts/thread.cpp.o vm/capi/artifacts/time.cpp.o vm/capi/artifacts/util.cpp.o vm/drivers/artifacts/cli.cpp.o vm/gc/artifacts/baker.cpp.o vm/gc/artifacts/code_manager.cpp.o vm/gc/artifacts/debug.cpp.o vm/gc/artifacts/finalize.cpp.o vm/gc/artifacts/gc.cpp.o vm/gc/artifacts/heap.cpp.o vm/gc/artifacts/immix.cpp.o vm/gc/artifacts/immix_marker.cpp.o vm/gc/artifacts/inflated_headers.cpp.o vm/gc/artifacts/managed.cpp.o vm/gc/artifacts/mark_sweep.cpp.o vm/gc/artifacts/object_mark.cpp.o vm/gc/artifacts/root.cpp.o vm/gc/artifacts/walker.cpp.o vm/gc/artifacts/write_barrier.cpp.o vm/instruments/artifacts/rbxti.cpp.o vm/instruments/artifacts/tooling.cpp.o vm/llvm/artifacts/autotypes.cpp.o vm/llvm/artifacts/detection.cpp.o vm/llvm/artifacts/disassembler.cpp.o vm/llvm/artifacts/inline.cpp.o vm/llvm/artifacts/inline_block.cpp.o vm/llvm/artifacts/inline_primitive.cpp.o vm/llvm/artifacts/jit_block.cpp.o vm/llvm/artifacts/jit_builder.cpp.o vm/llvm/artifacts/jit_compiler.cpp.o vm/llvm/artifacts/jit_context.cpp.o vm/llvm/artifacts/jit_inline_block.cpp.o vm/llvm/artifacts/jit_inline_method.cpp.o vm/llvm/artifacts/jit_memory_manager.cpp.o vm/llvm/artifacts/jit_method.cpp.o vm/llvm/artifacts/jit_runtime.cpp.o vm/llvm/artifacts/jit_util.cpp.o vm/llvm/artifacts/method_info.cpp.o vm/llvm/artifacts/passes.cpp.o vm/llvm/artifacts/state.cpp.o vm/llvm/artifacts/types.cpp.o vm/missing/artifacts/crypt.c.o vm/missing/artifacts/setproctitle.c.o vm/missing/artifacts/string.cpp.o vm/missing/artifacts/windows.cpp.o vm/util/artifacts/file.cpp.o vm/util/artifacts/logger.cpp.o vm/util/artifacts/murmur_hash3.cpp.o vm/util/artifacts/random.c.o vm/util/artifacts/sha1.c.o vm/util/artifacts/siphash.c.o vm/util/artifacts/spinlock.cpp.o vm/util/artifacts/strftime.c.o vm/util/artifacts/time64.c.o vm/util/artifacts/timer.cpp.o vm/util/artifacts/timing.c.o vm/util/artifacts/utf8.c.o vm/util/artifacts/vsnprintf.c.o vendor/double-conversion/libdoubleconversion.a vendor/libffi/.libs/libffi.a vendor/libtommath/libtommath.a vendor/oniguruma/./libonig.a vendor/udis86/libudis86/.libs/libudis86.a -lm -Wl,--export-dynamic -lrt -lcrypt -ldl -lpthread -L/home/ryan/.rbenv/versions/rbx-2.5.2/lib /usr/lib/llvm-3.5/lib/libLLVMLTO.a /usr/lib/llvm-3.5/lib/libLLVMObjCARCOpts.a /usr/lib/llvm-3.5/lib/libLLVMLinker.a /usr/lib/llvm-3.5/lib/libLLVMipo.a /usr/lib/llvm-3.5/lib/libLLVMVectorize.a /usr/lib/llvm-3.5/lib/libLLVMBitWriter.a /usr/lib/llvm-3.5/lib/libLLVMIRReader.a /usr/lib/llvm-3.5/lib/libLLVMAsmParser.a /usr/lib/llvm-3.5/lib/libLLVMR600CodeGen.a /usr/lib/llvm-3.5/lib/libLLVMR600Desc.a /usr/lib/llvm-3.5/lib/libLLVMR600Info.a /usr/lib/llvm-3.5/lib/libLLVMR600AsmPrinter.a /usr/lib/llvm-3.5/lib/libLLVMSystemZDisassembler.a /usr/lib/llvm-3.5/lib/libLLVMSystemZCodeGen.a /usr/lib/llvm-3.5/lib/libLLVMSystemZAsmParser.a /usr/lib/llvm-3.5/lib/libLLVMSystemZDesc.a /usr/lib/llvm-3.5/lib/libLLVMSystemZInfo.a /usr/lib/llvm-3.5/lib/libLLVMSystemZAsmPrinter.a /usr/lib/llvm-3.5/lib/libLLVMHexagonCodeGen.a /usr/lib/llvm-3.5/lib/libLLVMHexagonAsmPrinter.a /usr/lib/llvm-3.5/lib/libLLVMHexagonDesc.a /usr/lib/llvm-3.5/lib/libLLVMHexagonInfo.a /usr/lib/llvm-3.5/lib/libLLVMNVPTXCodeGen.a /usr/lib/llvm-3.5/lib/libLLVMNVPTXDesc.a /usr/lib/llvm-3.5/lib/libLLVMNVPTXInfo.a /usr/lib/llvm-3.5/lib/libLLVMNVPTXAsmPrinter.a /usr/lib/llvm-3.5/lib/libLLVMCppBackendCodeGen.a /usr/lib/llvm-3.5/lib/libLLVMCppBackendInfo.a /usr/lib/llvm-3.5/lib/libLLVMMSP430CodeGen.a /usr/lib/llvm-3.5/lib/libLLVMMSP430Desc.a /usr/lib/llvm-3.5/lib/libLLVMMSP430Info.a /usr/lib/llvm-3.5/lib/libLLVMMSP430AsmPrinter.a /usr/lib/llvm-3.5/lib/libLLVMXCoreDisassembler.a /usr/lib/llvm-3.5/lib/libLLVMXCoreCodeGen.a /usr/lib/llvm-3.5/lib/libLLVMXCoreDesc.a /usr/lib/llvm-3.5/lib/libLLVMXCoreInfo.a /usr/lib/llvm-3.5/lib/libLLVMXCoreAsmPrinter.a /usr/lib/llvm-3.5/lib/libLLVMMipsDisassembler.a /usr/lib/llvm-3.5/lib/libLLVMMipsCodeGen.a /usr/lib/llvm-3.5/lib/libLLVMMipsAsmParser.a /usr/lib/llvm-3.5/lib/libLLVMMipsDesc.a /usr/lib/llvm-3.5/lib/libLLVMMipsInfo.a /usr/lib/llvm-3.5/lib/libLLVMMipsAsmPrinter.a /usr/lib/llvm-3.5/lib/libLLVMAArch64Disassembler.a /usr/lib/llvm-3.5/lib/libLLVMAArch64CodeGen.a /usr/lib/llvm-3.5/lib/libLLVMAArch64AsmParser.a /usr/lib/llvm-3.5/lib/libLLVMAArch64Desc.a /usr/lib/llvm-3.5/lib/libLLVMAArch64Info.a /usr/lib/llvm-3.5/lib/libLLVMAArch64AsmPrinter.a /usr/lib/llvm-3.5/lib/libLLVMAArch64Utils.a /usr/lib/llvm-3.5/lib/libLLVMARMDisassembler.a /usr/lib/llvm-3.5/lib/libLLVMARMCodeGen.a /usr/lib/llvm-3.5/lib/libLLVMARMAsmParser.a /usr/lib/llvm-3.5/lib/libLLVMARMDesc.a /usr/lib/llvm-3.5/lib/libLLVMARMInfo.a /usr/lib/llvm-3.5/lib/libLLVMARMAsmPrinter.a /usr/lib/llvm-3.5/lib/libLLVMPowerPCDisassembler.a /usr/lib/llvm-3.5/lib/libLLVMPowerPCCodeGen.a /usr/lib/llvm-3.5/lib/libLLVMPowerPCAsmParser.a /usr/lib/llvm-3.5/lib/libLLVMPowerPCDesc.a /usr/lib/llvm-3.5/lib/libLLVMPowerPCInfo.a /usr/lib/llvm-3.5/lib/libLLVMPowerPCAsmPrinter.a /usr/lib/llvm-3.5/lib/libLLVMSparcDisassembler.a /usr/lib/llvm-3.5/lib/libLLVMSparcCodeGen.a /usr/lib/llvm-3.5/lib/libLLVMSparcAsmParser.a /usr/lib/llvm-3.5/lib/libLLVMSparcDesc.a /usr/lib/llvm-3.5/lib/libLLVMSparcInfo.a /usr/lib/llvm-3.5/lib/libLLVMSparcAsmPrinter.a /usr/lib/llvm-3.5/lib/libLLVMTableGen.a /usr/lib/llvm-3.5/lib/libLLVMDebugInfo.a /usr/lib/llvm-3.5/lib/libLLVMOption.a /usr/lib/llvm-3.5/lib/libLLVMX86Disassembler.a /usr/lib/llvm-3.5/lib/libLLVMX86AsmParser.a /usr/lib/llvm-3.5/lib/libLLVMX86CodeGen.a /usr/lib/llvm-3.5/lib/libLLVMSelectionDAG.a /usr/lib/llvm-3.5/lib/libLLVMAsmPrinter.a /usr/lib/llvm-3.5/lib/libLLVMX86Desc.a /usr/lib/llvm-3.5/lib/libLLVMX86Info.a /usr/lib/llvm-3.5/lib/libLLVMX86AsmPrinter.a /usr/lib/llvm-3.5/lib/libLLVMX86Utils.a /usr/lib/llvm-3.5/lib/libLLVMJIT.a /usr/lib/llvm-3.5/lib/libLLVMLineEditor.a /usr/lib/llvm-3.5/lib/libLLVMMCAnalysis.a /usr/lib/llvm-3.5/lib/libLLVMMCDisassembler.a /usr/lib/llvm-3.5/lib/libLLVMInstrumentation.a /usr/lib/llvm-3.5/lib/libLLVMInterpreter.a /usr/lib/llvm-3.5/lib/libLLVMCodeGen.a /usr/lib/llvm-3.5/lib/libLLVMScalarOpts.a /usr/lib/llvm-3.5/lib/libLLVMInstCombine.a /usr/lib/llvm-3.5/lib/libLLVMTransformUtils.a /usr/lib/llvm-3.5/lib/libLLVMipa.a /usr/lib/llvm-3.5/lib/libLLVMAnalysis.a /usr/lib/llvm-3.5/lib/libLLVMProfileData.a /usr/lib/llvm-3.5/lib/libLLVMMCJIT.a /usr/lib/llvm-3.5/lib/libLLVMTarget.a /usr/lib/llvm-3.5/lib/libLLVMRuntimeDyld.a /usr/lib/llvm-3.5/lib/libLLVMObject.a /usr/lib/llvm-3.5/lib/libLLVMMCParser.a /usr/lib/llvm-3.5/lib/libLLVMBitReader.a /usr/lib/llvm-3.5/lib/libLLVMExecutionEngine.a /usr/lib/llvm-3.5/lib/libLLVMMC.a /usr/lib/llvm-3.5/lib/libLLVMCore.a /usr/lib/llvm-3.5/lib/libLLVMSupport.a -L/usr/lib/llvm-3.5/lib -lz -lpthread -lffi -ledit -ltinfo -ldl -lmrake aborted! Error compiling /tmp/ruby-build.20150213212239.19770/rubinius-2.5.2/vendor/bundle/ruby/2.2.0/gems/daedalus-core-0.2.0/lib/daedalus.rb:68:in `command' /tmp/ruby-build.20150213212239.19770/rubinius-2.5.2/vendor/bundle/ruby/2.2.0/gems/daedalus-core-0.2.0/lib/daedalus.rb:254:in `link' /tmp/ruby-build.20150213212239.19770/rubinius-2.5.2/vendor/bundle/ruby/2.2.0/gems/daedalus-core-0.2.0/lib/daedalus.rb:774:in `build' /tmp/ruby-build.20150213212239.19770/rubinius-2.5.2/vendor/bundle/ruby/2.2.0/gems/daedalus-core-0.2.0/lib/daedalus.rb:877:in `block in linear_tasks' /tmp/ruby-build.20150213212239.19770/rubinius-2.5.2/vendor/bundle/ruby/2.2.0/gems/daedalus-core-0.2.0/lib/daedalus.rb:876:in `each' /tmp/ruby-build.20150213212239.19770/rubinius-2.5.2/vendor/bundle/ruby/2.2.0/gems/daedalus-core-0.2.0/lib/daedalus.rb:876:in `linear_tasks' /tmp/ruby-build.20150213212239.19770/rubinius-2.5.2/vendor/bundle/ruby/2.2.0/gems/daedalus-core-0.2.0/lib/daedalus.rb:872:in `start' /tmp/ruby-build.20150213212239.19770/rubinius-2.5.2/vendor/bundle/ruby/2.2.0/gems/daedalus-core-0.2.0/lib/daedalus.rb:989:in `block in build' /tmp/ruby-build.20150213212239.19770/rubinius-2.5.2/vendor/bundle/ruby/2.2.0/gems/daedalus-core-0.2.0/lib/daedalus.rb:980:in `each' /tmp/ruby-build.20150213212239.19770/rubinius-2.5.2/vendor/bundle/ruby/2.2.0/gems/daedalus-core-0.2.0/lib/daedalus.rb:980:in `build' /tmp/ruby-build.20150213212239.19770/rubinius-2.5.2/rakelib/vm.rake:240:in `block in <top (required)>' Tasks: TOP => install => build:build => vm/vm (See full trace by running task with --trace) Why is it doing this, and how can it be fixed? Thanks!
Rubinius has a dependency to libedit and thus requires the library itself as well as its development headers to be installed. This is indicated inside the log where it states: /usr/bin/ld: cannot find -ledit and thus indicates that the library could not be found on your system. On Debian and Ubuntu, you can install the library with apt-get install libedit-dev
Try installing with the following command: CXXFLAGS=-Wno-undefined-bool-conversion bash -c 'rvm install rbx'
Chef-solo and cookbook_path: multiple paths are not woking
Contrary to the docs...in my solo.rb file the below does not work: root = File.absolute_path(File.dirname(__FILE__)) cookbook_path [ root + "/cookbooks",root + "/site-cookbooks", root + "/berks-cookbooks" ] This works but defeats the purpose because I need to add the other two dirs in the cookbook paths: root = File.absolute_path(File.dirname(__FILE__)) cookbook_path root + "/cookbooks" Below is a sample role { "name": "coordinator_do_server", "environment":{"git_repos":[]}, "java":{ "install_flavor":"oracle","jdk_version":"7"}, "run_list": ["recipe[build-essential]" ] } Error I get is the below: Starting Chef Client, version 11.14.2 ================================================================================ Error expanding the run_list: ================================================================================ Unexpected Error: ----------------- TypeError: can't convert Array into String [2014-12-07T18:22:07+08:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out Chef Client failed. 0 resources updated in 2.259210544 seconds [2014-12-07T18:22:07+08:00] ERROR: can't convert Array into String [2014-12-07T18:22:07+08:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) How do I resolve? Generated at 2014-12-08 00:12:42 +0800 TypeError: can't convert Array into String /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/environment.rb:248:in `directory?' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/environment.rb:248:in `load_from_file' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/environment.rb:241:in `load' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/node.rb:380:in `apply_expansion_attributes' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/node.rb:369:in `expand!' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/policy_builder/expand_node_object.rb:135:in `expand_run_list' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/policy_builder/expand_node_object.rb:122:in `build_node' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/client.rb:259:in `build_node' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/client.rb:420:in `do_run' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/client.rb:213:in `block in run' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/client.rb:207:in `fork' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/client.rb:207:in `run' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/application.rb:237:in `run_chef_client' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/application/solo.rb:226:in `block in run_application' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/application/solo.rb:218:in `loop' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/application/solo.rb:218:in `run_application' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/lib/chef/application.rb:55:in `run' /usr/local/lib/ruby/gems/1.9.1/gems/chef-11.14.2/bin/chef-solo:25:in `<top (required)>' /usr/local/bin/chef-solo:23:in `load' /usr/local/bin/chef-solo:23:in `<main>'
The problem is that the chef_repo_path derives its default value from that of cookbook_path, and then the default environment_path is based on chef_repo_path. To fix this add chef_repo_path root to your config.
peatio: what is default password for database.yml?
I just tried to install peatio and I see that password is empty in peatio/config/database.yml what should be written there? here is screenshot: http://s14.postimg.org/4ijmxjwtt/untitled.png here is my error from terminal when I tried to start server: bundle exec rails server /usr/local/lib/ruby/2.1.0/psych.rb:370:in `parse': (): did not find expected key while parsing a block mapping at line 6 column 3 (Psych::SyntaxError) edited, here is full error: from /usr/local/lib/ruby/2.1.0/psych.rb:370:in parse_stream' from /usr/local/lib/ruby/2.1.0/psych.rb:318:inparse' from /usr/local/lib/ruby/2.1.0/psych.rb:245:in load' from /usr/local/lib/ruby/gems/2.1.0/gems/figaro-0.7.0/lib/figaro.rb:21:i from /usr/local/lib/ruby/gems/2.1.0/gems/figaro-0.7.0/lib/figaro.rb:17:i from /usr/local/lib/ruby/gems/2.1.0/gems/figaro-0.7.0/lib/figaro/railtie from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.0.2/lib/active_ from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.0.2/lib/active_ from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.0.2/lib/active_ from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.0.2/lib/active_ from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.0.2/lib/active_ from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/applic from /peatio/config/application.rb:16:in' from /peatio/config/application.rb:15:in <top (required)>' from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/comman from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/comman from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/comman from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/comman from bin/rails:4:inrequire' from bin/rails:4:in `'
Peatio default password for user admin#barong.io is Qwerty123 or Chah5YohWm
I get these errors trying to build a web service client in Ruby
I am trying to build a web service client in Ruby. When I try to invoke the following soap4r ruby script to generate web service client code: wsdl2ruby.rb --wsdl *[web_service_url]* --type client I get the following error: ignored attr: {http://www.w3.org/2006/05/addressing/wsdl}Action I, [2011-06-09T17:16:01.012268 #10104] INFO -- app: Creating class definition. I, [2011-06-09T17:16:01.012268 #10104] INFO -- app: Creates file 'SessionServic e.rb'. F, [2011-06-09T17:16:01.014268 #10104] FATAL -- app: Detected an exception. Stop ping ... undefined method collect' for #<String:0x32260c8> (NoMethodError) C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/xsd/codegen/gensupport.rb:2 39:intrim_eol' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/xsd/codegen/gensupport.rb:2 27:in format' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/xsd/codegen/commentdef.rb:2 7:indump_comment' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/xsd/codegen/classdef.rb:51: in dump' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreator.r b:118:inblock in dump_complextype' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreator.r b:116:in collect' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreator.r b:116:indump_complextype' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/soap/classDefCreator.r b:60:in dump' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:77:i nblock in create_classdef' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:171: in block in write_file' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:170: inopen' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:170: in write_file' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:76:i ncreate_classdef' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:62:i n create_file' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:42:i nrun' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/bin/wsdl2ruby.rb:46:in run' C:/Ruby192/lib/ruby/1.9.1/logger.rb:691:instart' C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/bin/wsdl2ruby.rb:137:in <top ( required)>' C:/Ruby192/bin/wsdl2ruby.rb:19:inload' C:/Ruby192/bin/wsdl2ruby.rb:19:in `' I, [2011-06-09T17:16:01.016268 #10104] INFO -- app: End of app. (status: -1) When, I try to invoke the following code to dynamically generate the web service client: require 'soap/wsdlDriver' WSDL_URL = "http://*[web_service_url]*" factory = SOAP::WSDLDriverFactory.new(WSDL_URL) driver = factory.create_rpc_driver I get the following error: C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:748:in initialize': The requested service provider could not be loaded or initialized. - socket(2) (http://*web_service_url*) (Errno::E10106) from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:748:innew' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:748:in create_socket' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:705:inblock in connect' from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:57:in timeout' from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:87:in timeout' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:704:in connect' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:568:inquery' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:158:in query' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient.rb:1057:in do_get_block' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient.rb:866:in block in do_request' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient.rb:953:in protect_keep_alive_disconnected' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient.rb:865:in do_request' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient.rb:938:in follow_redirect' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient.rb:577:in get_content' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/importer.rb:73:in fetch' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/importer.rb:36:in import' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/importer.rb:18:in import' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/soap/wsdlDriver.rb:146:in import' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/soap/wsdlDriver.rb:32:in initialize' from C:/DevProjects/application-development-environment/UwsSampleRuby/blah.rb:6:in new' from C:/DevProjects/application-development-environment/UwsSampleRuby/blah.rb:6:in ' When I try to invoke the same code above, but with the a different URL (the production URL instead of the test environment URL), I get a different error: C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:748:in initialize': getaddrinfo: A non-recoverable error occurred during a database lookup. (https://[prod_url]:443) (SocketError) from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:748:innew' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:748:in create_socket' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:705:inblock in connect' from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:57:in timeout' from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:87:intimeout' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:704:in connect' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:568:inquery' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient/session.rb:158:in query' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient.rb:1057:indo_get_block' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient.rb:866:in block in do_request' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient.rb:953:inprotect_keep_alive_disconnected' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient.rb:865:in do_request' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient.rb:938:infollow_redirect' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.2.1/lib/httpclient.rb:577:in get_content' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/importer.rb:73:infetch' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/importer.rb:36:in import' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/importer.rb:18:inimport' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/soap/wsdlDriver.rb:146:in import' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/soap/wsdlDriver.rb:32:ininitialize' from C:/DevProjects/application-development-environment/UwsSampleRuby/blah.rb:6:in new' from C:/DevProjects/application-development-environment/UwsSampleRuby/blah.rb:6:in' Why am I getting these errors, and how do I work around them? I know the web services are up and working, since I'm able to build web service clients in C# .Net just fine.
soap4r has a number of known issues with Ruby 1.9. You should consider using one of the newer SOAP toolkits, such as savon or handsoap.