Giter Club home page Giter Club logo

Comments (15)

ShX avatar ShX commented on July 30, 2024

same problem

from postgresql.

merqlove avatar merqlove commented on July 30, 2024

Same here

from postgresql.

chriskilding avatar chriskilding commented on July 30, 2024

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.

merqlove avatar merqlove commented on July 30, 2024

@themasterchef , hmm, i have 6.5 in my test-kitchen, this is my primary OS. works well.

from postgresql.

chriskilding avatar chriskilding commented on July 30, 2024

@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.

slyness avatar slyness commented on July 30, 2024

also related to issue #186

Possibly Centos and systemd work needed.

from postgresql.

slyness avatar slyness commented on July 30, 2024

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.

rmoriz avatar rmoriz commented on July 30, 2024

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.

ozzyogkush avatar ozzyogkush commented on July 30, 2024

I am seeing the same error as described by themasterchef above at #167 (comment) on CentOS 6.5

See #245

from postgresql.

merqlove avatar merqlove commented on July 30, 2024

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 of redhat).
  • 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.

ozzyogkush avatar ozzyogkush commented on July 30, 2024

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.

merqlove avatar merqlove commented on July 30, 2024

#269

from postgresql.

slyness avatar slyness commented on July 30, 2024

Coming soon. #314

from postgresql.

slyness avatar slyness commented on July 30, 2024

Resolved as of release 4.0.0 - https://github.com/hw-cookbooks/postgresql/releases/tag/v4.0.0

from postgresql.

lock avatar lock commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.