Comments (11)
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.
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.
Solution is with Issue #168 and the repository to use is found in PR #169
from postgresql.
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.
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.
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.
you can add
execute 'apt-get update' do
action :run
end
before: include_recipe "postgresql::ruby"
does it help?
from postgresql.
@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.
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.
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.
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.