uninitialized constant #<Class:0x00007f3d9ecc4e70>::PostgresqlCookbook
krisdigital opened this issue Β· comments
π£οΈ Foreword
Hello! I am having a hard time finding the reason for this error when converging, without even using a postgresql resource!
Other cookbooks are working normally.
I tried with my virtual server running Ubuntu 22.04 and also with a vagrant box to be sure, then again with Ubuntu 20.04
uninitialized constant #<Class:0x00007f3d9ecc4e70>::PostgresqlCookbook
π» Brief Description
It seems to me that there is something wrong with generating the class name?
Cookbook Trace: (most recent call first)
----------------------------------------
/var/chef/cache/cookbooks/postgresql/resources/repository.rb:89:in `block in class_from_file'
/var/chef/cache/cookbooks/postgresql/resources/repository.rb:88:in `class_from_file'
Relevant File Content:
----------------------
/var/chef/cache/cookbooks/postgresql/resources/repository.rb:
82: end
83: else
84: raise "The platform_family '#{node['platform_family']}' or platform '#{node['platform']}' is not supported by the postgresql_repository resource. If you believe this platform can/should be supported by this resource please file and issue or open a pull request at https://github.com/sous-chefs/postgresql"
85: end
86: end
87:
88: action_class do
89>> include PostgresqlCookbook::Helpers
90: end
91:
π₯ Cookbook version
11.2.8
π©βπ³ Chef-Infra Version
18.2.7
π© Platform details
Ubuntu 22.04 or 20.04
Steps To Reproduce
Steps to reproduce the behavior:
- Add
cookbook 'postgresql', '~> 11.2.8'
to berksfile - Add
depends 'postgresql'
tometadata.rb
- Converge any receipt, does not need to use postgres
knife zero converge "name:dev.vagrantbox.com" -U vagrant --override-runlist random
- See error
π Expected behavior
Error should not occur...
β Additional context
I am using knife zero
Not sure what it was, but I started from scratch and it works π€·ββοΈπ₯³