Giter Club home page Giter Club logo

Comments (11)

kohenkatz avatar kohenkatz commented on July 30, 2024

Note that this is not an issue with building the pg gem like #165 is. It's not even trying to build the gem - and when I try to build the gem manually (as I mentioned), that works just fine.

from postgresql.

ChrisPetr0 avatar ChrisPetr0 commented on July 30, 2024

Any resolution to this? I'm having the exact same problem. I've tried different versions of Chef-Solo and a different version of the Postgresql cookbook to no avail.

from postgresql.

hulu1522 avatar hulu1522 commented on July 30, 2024

Solution is with Issue #168 and the repository to use is found in PR #169

from postgresql.

ChrisPetr0 avatar ChrisPetr0 commented on July 30, 2024

Thanks Hulu, I tried that repo with the wait modification as well. That didn't work for me. I'm exploring other avenues.

from postgresql.

hulu1522 avatar hulu1522 commented on July 30, 2024

Just a note, the chef_gem resource uses the embedded chef-client ruby. I could be wrong but I think that the database cookbook (which depends on the postgresql::ruby recipe) uses the embedded gems. If you install it correctly to the system it will fail with this LoadError because it doesn't exist in the chef embedded environment. I could be wrong but that is what I have seen from experience. Put this repo in your Berksfile or whatever you use for cookbook management.
cookbook 'postgresql', git: 'https://github.com/SimonKaluza/postgresql.git'

Try on a fresh converge also.

from postgresql.

ChrisPetr0 avatar ChrisPetr0 commented on July 30, 2024

Hey Hulu - Thanks for the followup. I think you described my situation exactly as I'm calling postgresql::ruby from the database cookbook. I've spent some time on this and am using a different method to create a postgres db and user but hopefully this will help someone else. I'll post back if I attempt above. Thanks!

from postgresql.

alovak avatar alovak commented on July 30, 2024

you can add

execute 'apt-get update' do
  action :run
end

before: include_recipe "postgresql::ruby"

does it help?

from postgresql.

rhass-r7 avatar rhass-r7 commented on July 30, 2024

@alovak It looks like the current version of the cookbook already does this in the ruby recipe:
https://github.com/hw-cookbooks/postgresql/blob/develop/recipes/ruby.rb#L25-L30

Additionally, I attempted to include_recipe 'apt::default' in my wrapper, which does this as well. Unfortunately, this yielded the same result in my case.

@hulu1522 It looks like the patch in the referenced fork has already been landed... Unfortunately for me, this issue is still present.

@kohenkatz
I was hoping to provide a solution here, but I am still digging around to find the root cause of the issue. I tried installing the package postgresql-server-dev-9.3 to see if somehow there were excluded and required headers, but that did not seem to resolve the issue.

I will post an update if I find a fix... but let me know if you have had better luck since. Thanks!

from postgresql.

kohenkatz avatar kohenkatz commented on July 30, 2024

It appears that this issue only happens when Chef is installed as a gem, as far as I can tell.

I switched from using the Chef Gem to using Omnibus, and I was able to get it working correctly once. After that one time, instead of this issue, I see the COOK-1406 issue. I can't figure out the difference between that one time that worked and all the other times that didn't though.

from postgresql.

kohenkatz avatar kohenkatz commented on July 30, 2024

Actually, scratch the second part of my last update. It still shows the error message, but then it actually does build the gem properly. According to this site, this is the expected behavior now.

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.