Chef Server 12.4.1 Install Fails with Sudo
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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