Skip to content

chef oss build fails #4090

@othman-essabir

Description

@othman-essabir

Chef Server Version

15.10.61+

Platform Details

Debian 12

Configuration

Standalone

Scenario

Since chef-server version 15.10.61, chef-server oss fails to build. This seems to come from here

Since the ARTIFACTORY_REPO_URL env variable is not set by oss users the build fails with

`/opt/omnibus-toolchain/embedded/lib/ruby/3.1.0/open-uri.rb:31:in initialize': no implicit conversion of Hash into String (TypeError)`

Setting

  source url: "https://artifacts.opensearch.org/releases/bundle/opensearch/#{version}/opensearch-#{version}-linux-x64.tar.gz",
         sha256: "a786fe52b4d25db85cc49f34df6118f19c434b25935f28bd98c0f874ae77ccc3"

instead of

  source url: "#{ENV['ARTIFACTORY_REPO_URL']}/opensearch-2/#{name}-#{version}.tuxcare.1-linux-x64.tar.gz",
                  authorization: "X-JFrog-Art-Api:#{ENV['ARTIFACTORY_TOKEN']}",
                  sha256: "42028f94ac743959385f58a4527dc01966a98b7551b20bde0be022d5ba543da4"

fixes the problem

Steps to Reproduce

cd omnibus
bundle install --binstubs
bin/omnibus build chef-server

Expected Result

expects chef-server to build correctly

Actual Result

/opt/omnibus-toolchain/embedded/lib/ruby/3.1.0/open-uri.rb:31:in initialize': no implicit conversion of Hash into String (TypeError)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UntriagedAn issue that has yet to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions