Giter Club home page Giter Club logo

Comments (6)

jbcpollak avatar jbcpollak commented on July 28, 2024

If I remove this line:

include ::nginx

I get a seemingly never ending cycle of different errors, like this:

First run:

Error: Failed to apply catalog: Could not find dependent Class[Nginx::Service] for File[/etc/nginx/conf.d/local_app-upstream.conf] at /var/lib/puppetdata/staging/modules/nginx/manifests/resource/upstream.pp:57

Second run (no change):

Error: Failed to apply catalog: Could not find dependent Class[Nginx::Service] for File[/var/lib/puppet/concat/sites-available{hostname}.conf/fragments.concat.out] at /var/lib/puppetdata/staging/modules/concat/manifests/init.pp:218

Third run (no change):

Error: Failed to apply catalog: Could not find dependent Class[Nginx::Service] for File[/sites-available/{hostname}.conf] at /var/lib/puppetdata/staging/modules/concat/manifests/init.pp:228

Fourth Run (no change):

Error: Failed to apply catalog: Could not find dependency Class[Nginx] for Nginx::Resource::Upstream[local_app] at /var/lib/puppetdata/staging/modules/localproxy/manifests/init.pp:16

from puppet-nginx.

jbcpollak avatar jbcpollak commented on July 28, 2024

Hi, I believe I solved this problem by replacing this line:

include ::nginx

With these lines:

include ::nginx::config
include ::nginx::service
include ::nginx::package

I'm not sure if that is considered a bug or expected behavior, but it seems to work. I hope this note is useful for others too.

from puppet-nginx.

bluecurio avatar bluecurio commented on July 28, 2024

I am having the same problem (unrolled below for easier reading)...

err: Could not apply complete catalog: Found 1 dependency cycle:
( Anchor[nginx::end] 
  => Class[Nginx] 
  => Nginx::Resource::Vhost[vhost-searchhub] 
  => File[vhost-searchhub.conf symlink] 
  => Service[nginx]
  => Class[Nginx::Service] 
  => Anchor[nginx::end] )

Seems like nothing I do breaks this dependency cycle. Even unrolling the include nginx into it's constituent parts (as @jbcpollak above mentioned) will work. Not sure what to do here...

from puppet-nginx.

shadone avatar shadone commented on July 28, 2024

I am hitting the same issue since recently, after experimenting a bit with different versions it seems 0.2.2 works fine for me but 0.2.3 triggers this.

from puppet-nginx.

3flex avatar 3flex commented on July 28, 2024

@shadone @bluecurio I've opened #609 to track your issue, which isn't the same as the one originally reported.

@jbcpollak are you still having problems here? I saw you have a workaround and the work to fix #609 is likely to improve the situation as well so if I don't hear back in a few days I'll close this.

from puppet-nginx.

3flex avatar 3flex commented on July 28, 2024

I'm closing this for now. @jbcpollak please comment if you have any information to add and I'll reopen. Thanks!

from puppet-nginx.

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.