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

Build with ubi-8 baseline #14

Open
jameshcovington opened this issue Aug 8, 2022 · 0 comments
Open

Build with ubi-8 baseline #14

jameshcovington opened this issue Aug 8, 2022 · 0 comments

Comments

@jameshcovington
Copy link

I've checked out this project, attempting to modify it to build on a ubi-8 kernel base vice ubuntu 16.04
Attaching the modified Dockerfile and install.sh. The build succeeds but I get an error during startup:

Starting Chef Infra Client, version 16.17.51
Patents: https://www.chef.io/patents
resolving cookbooks for run list: ["infra-server::default"]
Synchronizing Cookbooks:
  - infra-server (0.1.2)
  - runit (5.1.7)
  - packagecloud (1.0.1)
  - yum-epel (4.5.0)
  - enterprise (1.2.0)
Installing Cookbook Gems:
Compiling Cookbooks...

================================================================================
Recipe Compile Error in /var/opt/opscode/local-mode-cache/cookbooks/infra-server/attributes/default.rb
================================================================================

NoMethodError
-------------
undefined method `[]' for nil:NilClass

Cookbook Trace: (most recent call first)
----------------------------------------
  /var/opt/opscode/local-mode-cache/cookbooks/infra-server/attributes/default.rb:590:in `from_file'

Relevant File Content:
----------------------
/var/opt/opscode/local-mode-cache/cookbooks/infra-server/attributes/default.rb:

583:  default['private_chef']['postgresql']['db_connection_superuser'] = nil
584:  default['private_chef']['postgresql']['shell'] = '/bin/sh'
585:  default['private_chef']['postgresql']['home'] = "#{var_base}/postgresql"
586:  default['private_chef']['postgresql']['user_path'] = "/opt/#{ChefUtils::Dist::Org::LEGACY_CONF_DIR}/embedded/bin:/opt/#{ChefUtils::Dist::Org::LEGACY_CONF_DIR}/bin:$PATH"
587:  default['private_chef']['postgresql']['vip'] = '127.0.0.1'
588:  default['private_chef']['postgresql']['port'] = 5432
589:  # We want to listen on all the loopback addresses, because we can't control which one localhost resolves to.
590>> default['private_chef']['postgresql']['listen_address'] = node['network']['interfaces']['lo']['addresses'].keys.join(',')
591:  default['private_chef']['postgresql']['max_connections'] = 350
592:  default['private_chef']['postgresql']['keepalives_idle'] = 60
593:  default['private_chef']['postgresql']['keepalives_interval'] = 15
594:  default['private_chef']['postgresql']['keepalives_count'] = 2
595:  default['private_chef']['postgresql']['md5_auth_cidr_addresses'] = [ '127.0.0.1/32', '::1/128' ]
596:  default['private_chef']['postgresql']['wal_level'] = 'minimal'
597:  default['private_chef']['postgresql']['archive_mode'] = 'off' # "cannot be enabled when wal_level is set to minimal"
598:  default['private_chef']['postgresql']['archive_command'] = ''
599:  default['private_chef']['postgresql']['archive_timeout'] = 0 # 0 is disabled.

System Info:
------------
chef_version=16.17.51
platform=redhat
platform_version=8.6
ruby=ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-linux]
program_name=/opt/opscode/embedded/bin/chef-client
executable=/opt/opscode/embedded/bin/chef-client


Running handlers:
Running handlers complete
Chef Infra Client failed. 0 resources updated in 01 seconds
[2022-08-08T19:56:52+00:00] FATAL: Stacktrace dumped to /var/opt/opscode/local-mode-cache/chef-stacktrace.out
[2022-08-08T19:56:52+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2022-08-08T19:56:52+00:00] FATAL: NoMethodError: undefined method `[]' for nil:NilClass
/init.rb:135:in `block (2 levels) in <main>': chef-server-ctl upgrade: pid 19 exit 1 (RuntimeError)
        from /init.rb:151:in `block in <main>'
        from /init.rb:148:in `loop'
        from /init.rb:148:in `<main>'

Have you had any experience in building this in a rhel/centos environment? Any suggestions?
Dockerfile.txt
install-rh.sh.txt

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

No branches or pull requests

1 participant