Comments (15)
same problem
from postgresql.
Same here
from postgresql.
Same here, in fact the postgres cookbook also blows up on chef/centos-6.5 or chef/centos-6.4 boxes from Vagrant cloud when I run my test-kitchen suite.
from postgresql.
@themasterchef , hmm, i have 6.5 in my test-kitchen, this is my primary OS. works well.
from postgresql.
@merqlove On chef/centos-6.5 it fails with a slightly different error, in that while it actually manages to install Postgres, it cannot start or restart the 'postgresql' service afterwards:
==> default: Error executing action `restart` on resource 'service[postgresql]'
==> default: =====================
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '1'
from postgresql.
also related to issue #186
Possibly Centos and systemd work needed.
from postgresql.
This run list works on Centos 7
- recipe[postgresql::ruby]
- recipe[postgresql::server]
Works for me. Is there a separate run_list that still fails? This original issue with Mixlib was resolved recently in a separate PR.
I've added the Centos 7 Platform to the test kitchen suites.
from postgresql.
CentOS still failing with PGDG releases, because the cluster init call is using "service". IMHO the code at https://github.com/hw-cookbooks/postgresql/blob/develop/recipes/server_redhat.rb#L74 needs to cover CentOS >= 7, too.
Also there are some nasty "unless" calls and wierd things like https://github.com/hw-cookbooks/postgresql/blob/develop/recipes/server_redhat.rb#L80
I'm happy to provide a PR and fix this, however I already see related PR queued up (for example #230 and #229 #220 #221 ).
from postgresql.
I am seeing the same error as described by themasterchef
above at #167 (comment) on CentOS 6.5
See #245
from postgresql.
I think main mistake here:
recipes/server_redhat.rb
I'm added this to develop branch. Seems that it works well.
- Primary here platform check problem (on CentOS it is
centos
instead ofredhat
). - Secondary here postgres PATH problem.
elsif platform?("centos") and node['platform_version'].to_i >= 7
execute "/usr/pgsql-#{node['postgresql']['version']}/bin/postgresql#{node['postgresql']['version'].split('.').join}-setup initdb #{svc_name}" do
not_if { ::FileTest.exist?(File.join(dir, "PG_VERSION")) }
end
from postgresql.
Any updates on the status of this? Is this going to be fixed? Are one of the aforementioned PRs going to be merged, or should I just fork it and try and fix it myself at this point? Still broken as of 3.4.19.
from postgresql.
from postgresql.
Coming soon. #314
from postgresql.
Resolved as of release 4.0.0 - https://github.com/hw-cookbooks/postgresql/releases/tag/v4.0.0
from postgresql.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from postgresql.
Related Issues (20)
- Unable to connect to an RDS instance from AWS because of lack of password HOT 1
- external_pid_file and stats_temp_directory set incorrectly when installing different version than 12 (default)
- postgresql_extension install fails - NoMethodError: undefined method `[]' for nil:NilClass
- certificate verify failed (certificate has expired) - https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG HOT 2
- Cannot install with a different data directory
- Permit yum options to be passed via recipes
- Readme needs required Chef version bumping to 16.0+
- SCRAM-SHA-256 documentation
- Unable to create PostgreSQL users
- Unable to use the distribution packages HOT 3
- Converge fails in `postgresql_access`-resource HOT 1
- postgresql_access raises `NoMethodError: undefined method `named_captures' for nil:NilClass` HOT 2
- Skip YUM repository configuration in postgres_install resource
- Dependency Dashboard
- invalid pg_hba.conf when the values are longer than the defined width's HOT 1
- uninitialized constant #<Class:0x00007f3d9ecc4e70>::PostgresqlCookbook HOT 1
- Wrong PG version detected
- `pg_hba.conf` doesn't reach a stable state
- postgresql_access Resource fails when multiple databases or users are specified
- Add tests for PG 15 and 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postgresql.