Comments (8)
@stevecrozz Did you found a solution to this issue? How do you know the agent received the message?
I saw than the payload of the DELETE request send to the server say than the process is killed but it isn't.
from drone-runtime.
I tried to do something similar, with curl, to what's drone is supposed to do :
docker-compose exec drone-agent curl --unix-socket /var/run/docker.sock -X POST http://v.1.24/containers/af0c5571da00/kill
It killed the container correctly so the problem doesn't comes from the communication the agent and the socket.
from drone-runtime.
I confirm the signal is received by the agent. There is a "done listening for cancel signals". It probably comes from this line. It should goes in the first condition of the if
and trigger the cancel
method.
from drone-runtime.
fwiw: I did not find an answer and developed a terrible system of hacks using shell scripts and cron jobs to work around this problem
from drone-runtime.
Can you share your hack?
from drone-runtime.
I don't mind, but it is very specific to my own implementation. I use an ec2 instance per pipeline in my environment and the hack involves shutting down the instance when it gets into this state. If you're still interested, I can dig up the cron job...
from drone-runtime.
I still can check what it is. I can give me some ideas.
The solution I think at the moment is to watch logs and do a docker-compose restart
when there is "done listening for cancel signals" in it.
from drone-runtime.
this is no longer an issue in the newer drone/drone-runner-*
images which replace the drone/agent
containers.
from drone-runtime.
Related Issues (20)
- gcr: handle config.json with both https://gcr.io and gcr.io
- driver: firecracker
- driver: podman HOT 3
- trim docker for windows errors HOT 1
- kubernetes: support named ports HOT 6
- Allow custom pod annotations (per job) HOT 1
- Allow to set DRONE_RUNNER_LABELS on kubernetes jobs HOT 6
- driver: knative / tekton HOT 18
- kubernetes: support resource qutoas HOT 2
- Empty secret places ******** between every character HOT 1
- [Kubernetes] - missing architecture for amd64 jobs HOT 4
- Kubernetes: Planned Changes / Deprecation / Replacement HOT 10
- Pipeline pods cannot be scheduled in Drone for Kubernetes HOT 7
- Pipeline shared volume is mounted with `noexec` flag, preventing execution of scripts in source code / local dependencies HOT 3
- failed to create fsnotify watcher: too many open files HOT 1
- DRONE_KUBERNETES_TTL_AFTER_FINISHED HOT 2
- driver: compose HOT 2
- emulate 0.8 networking and bridge network HOT 1
- [feature] support custom volume to mapping source-code when use k8s mode HOT 3
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 drone-runtime.