chef / chef/chef-server

Chef Server 12.4.1 Install Fails with Sudo

Open
#793 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: omnibus packaging Status: Good First Issue Triage: Try Reproducing Type: Bug
Dominant language
Erlang
Stars
303
Forks
211
Avg merge
1d 8h
Merged PRs (30d)
5

Description

I'm attempting a fresh install with the following version

Ubuntu 14.04, no selinux or other prereq stuff
Chef Server 12.4.1 Standalone

I have a fresh system with a newly installed Chef Server 12.4.1 package.
I will use an embedded postgres database on this system.
When I do the initial reconfigure using sudo, it fails right here https://github.com/chef/chef-server/blob/12.4.1/omnibus/files/private-chef-cookbooks/private-chef/recipes/postgresql.rb#L132

sudo chef-server-ctl reconfigure

--Solution--

To fix, replace the su - in the recipe above with su

For example

su opscode-pgsql

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at omnibus/files/private-chef-cookbooks/private-chef/recipes/postgresql.rb around line 132 and reproduce the failure with sudo chef-server-ctl reconfigure on the stated Ubuntu 14.04 and Chef Server 12.4.1 setup. Verify that the PostgreSQL reconfiguration completes successfully after correcting the su invocation.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, shell, ubuntu
Domain
databases, devops, infrastructure
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.