Comments (6)
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.
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.
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.
@ljurk Hmm, does the --health-timeout
argument also work when a service or the underlying image does not have healthchecks defined?
from shepherd.
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.
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)
- Switch default branch from `master` to `main`
- Can't update some services: no such manifest HOT 9
- This seems like a perfectly valid way to deploy this seeing as it seems a bit inconsistent documentation wise HOT 2
- armhf support HOT 2
- Update containers in other DockerSwarm stacks HOT 1
- Shepherd updates back and forth between sha version and latest HOT 16
- How does it determine if there is an update or not? HOT 5
- latest does not exist or it is not available HOT 10
- Latest not available or does not exist HOT 10
- Auto Image delete HOT 6
- Multiple Registries HOT 1
- Crazymax cron cotainer not starting HOT 1
- Excessive amount of image pulls HOT 7
- Allow insecure-registries HOT 5
- Cannot access to INSECURE registry while adding WITH_INSECURE_REGISTRY to true HOT 1
- [Question] Default docker auth for private registry HOT 4
- Docker Swarm - cannot service with update multiple replicas HOT 3
- Request: Notification on completion HOT 5
- Looking for a new maintainer HOT 25
- Service gets stuck when calling "docker service update" and won't progress HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shepherd.