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

setting the encoding parameter causes a dependency cycle #1543

Open
KoenDierckx opened this issue Oct 25, 2023 · 4 comments · May be fixed by #1547 or #1564
Open

setting the encoding parameter causes a dependency cycle #1543

KoenDierckx opened this issue Oct 25, 2023 · 4 comments · May be fixed by #1547 or #1564

Comments

@KoenDierckx
Copy link

Describe the Bug

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[port_for_instance_main] => Class[Postgresql::Server::Service] => Postgresql::Server::Instance::Service[main] => Anchor[postgresql::server::service::begin::main])

Expected Behavior

No dependency cycle error

Steps to Reproduce

class { 'postgresql::server':
encoding => 'UTF8',
}

Environment

  • Version 10.0.1
  • Platform [Ubuntu 20.04
@ekohl ekohl linked a pull request Oct 26, 2023 that will close this issue
5 tasks
@ekohl ekohl linked a pull request Oct 26, 2023 that will close this issue
5 tasks
@bastelfreak
Copy link
Collaborator

Hi,
thanks for raising the ticket. We're able to reproduce it in #1547

@KoenDierckx
Copy link
Author

Thanks, looking forward to the fix. This blocks our upgrade to the latest module version

@promarcel
Copy link

I was also able to reproduce the problem in an environment or came across it.

I was able to determine that the dependency cycle only occurs if manage_package_repo from the globals is set to false.
If the value is set to true, the dependency cycle does not occur for me and the module works as expected.

@olevole
Copy link
Contributor

olevole commented Feb 5, 2024

I'm experiencing a similar problem, but with listen_address parameter. Only relevant when manage_package_repo is set to false

Error: Found 1 dependency cycle:
(Anchor[postgresql::server::service::begin::main] => Postgresql_psql[Set template1 encoding to UTF-8] => Postgresql::Server::Instance::Late_initdb[main] => Postgresql::Server::Instance::Initdb[main] => Class[Postgresql::Server::Initdb] => Postgresql_conf[listen_addresses] => Class[Postgresql::Server::Service] => Postgresql::Server::Instance::Service[main] => Anchor[postgresql::server::service::begin::main])\nTry the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
Error: Failed to apply catalog: One or more resource dependency cycles detected in graph

@ekohl ekohl linked a pull request Apr 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants