GithubHelp home page GithubHelp logo

Comments (6)

geerlingguy avatar geerlingguy commented on June 2, 2024

Which OS was this occurring on, and with what version of Varnish? Usually this indicates a problem with the service's init script, and in Varnish's case, that init script is installed as part of the package. If the init script always returns a 0 (success), then there might not be much Ansible or this role can do...

from ansible-role-varnish.

swoodford avatar swoodford commented on June 2, 2024

I just spent 3 hours debugging this same issue using Amazon AMI Linux. The issue was the deprecated -w flag in DAEMON_OPTS under templates/varnish.j2, as soon as that flag was changed from

-w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \

to

-p thread_pool_min=${VARNISH_MIN_THREADS} \
-p thread_pool_max=${VARNISH_MAX_THREADS} \
-p thread_pool_timeout=${VARNISH_THREAD_TIMEOUT} \

it was working.

Also FYI the Ansible Galaxy role has not been updated with the fixes from this GitHub repo. That would have saved me the 3 hours if the fixes were sync'd back to Ansible Galaxy.

from ansible-role-varnish.

geerlingguy avatar geerlingguy commented on June 2, 2024

@swoodford - The latest tag in Galaxy is 1.3.0, which corresponds with the same tag here (commit 0a0a5a9). There's no newer code I can send to Galaxy at this point...

See also: #17 — were you installing 4.1, or 4.0?

from ansible-role-varnish.

swoodford avatar swoodford commented on June 2, 2024

@geerlingguy Sorry, you are correct sir. After some research I discovered a colleague inserted that -w flag after copying an old Varnish 3 config.

But hopefully @CashWilliams has a similar problem which is causing the service to fail to start without a helpful error message or log output.

from ansible-role-varnish.

geerlingguy avatar geerlingguy commented on June 2, 2024

@swoodford - Thanks for the update!

from ansible-role-varnish.

geerlingguy avatar geerlingguy commented on June 2, 2024

So it's likely a config/VCL issue outside this role's purview—I'm going to mark this as closed, but feel free to follow up if any other issues are found!

from ansible-role-varnish.

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.