Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgresql::server::config_entry - dependency cycles detected (after upgrade to 10.0.0) #1541

Open
augustocarvalho opened this issue Oct 20, 2023 · 3 comments

Comments

@augustocarvalho
Copy link

Describe the Bug

After upgrade from 9.2.0 to 10.0.0 or 10.0.1 puppet fails with dependency cycle error:
Error: Found 1 dependency cycle: (Anchor[postgresql::server::service::begin::main] => Postgresql_psql[Set template1 encoding to UTF8] => Postgresql::Server::Instance::Late_initdb[main] => Postgresql::Server::Instance::Initdb[main] => Class[Postgresql::Server::Initdb] => Postgresql_conf[wal_level] => Class[Postgresql::Server::Service] => Postgresql::Server::Instance::Service[main] => Anchor[postgresql::server::service::begin::main])\nCycle graph written to /opt/puppetlabs/puppet/cache/state/graphs/cycles.dot. Error: Failed to apply catalog: One or more resource dependency cycles detected in graph

Expected Behavior

Update the config entry to postgresql.conf

Steps to Reproduce

Steps to reproduce the behavior:

For example change the wal_level

postgresql::server::config_entry { 'wal_level':
value => 'archive',
}

Apply puppet and it fails.

Environment

  • Version [Puppet 7]
  • Platform [Ubuntu 20.04]
  • Postgresql-14
  • puppetlab-postgresql (since 10.0.0)
@bastelfreak
Copy link
Collaborator

Hi,
thanks for the Ticket, we're able to reproduce it in #1547

@ShadNex
Copy link

ShadNex commented Jul 12, 2024

Any updates on this? We're experiencing the same issue after upgrading the module and had to revert to 9.2.0

@bastelfreak
Copy link
Collaborator

@ShadNex this should be fixed in #1564 . Can you try that branch and comment in the PR please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants