Giter Club home page Giter Club logo

Comments (6)

djmaze avatar djmaze commented on May 23, 2024

Yes, we can probably have a better failure handling. I currently don't have the time to implement this though. Pull requests are always welcome!

from shepherd.

stale avatar stale commented on May 23, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from shepherd.

ljurk avatar ljurk commented on May 23, 2024

Hey djmaze, I'd like to help you with this one, one of my services also fails to restart. The reason: In a swarm with 1 worker and 1 master I bind a local folder to the service, and only the master can access the local folder. The worker fails with invalid mount config for type "bind": bind source path does not exist: .... So its definitely an error with my deployment, but i think we can use this one to test error handling.

Here my docker-compose.yml:

---
version: '3.3'

services:
  links:
    image: selmatud/links:latest

    volumes:
      - ./urls.yaml:/opt/links/urls.yaml
    deploy:
      mode: global

the command docker service update links_links --image=selmatud/links:latest(which also will be executed from shephard) never finishes. If i add the argument --health-timeout 20s the command finishes. What do you think? Would this be an solution for this problem?

from shepherd.

djmaze avatar djmaze commented on May 23, 2024

@ljurk Hmm, does the --health-timeout argument also work when a service or the underlying image does not have healthchecks defined?

from shepherd.

ljurk avatar ljurk commented on May 23, 2024

Yes indeed, the image in the example above doesn't have healthchecks configured. But the task-state on the worker is rejected. I think the command docker service update tries to update the task while the desired state is not same to the current state. The argument health-timeout only limits this to certain time.

from shepherd.

shizunge avatar shizunge commented on May 23, 2024

I have recently opened source of my service updating scripts:
https://github.com/shizunge/gantry

It should not exit on errors.

Would you like to give it a try?

from shepherd.

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.