Act: if one job fails, the next run complains about volume is still in use

Created on 2 Jul 2020  路  10Comments  路  Source: nektos/act

Version: 0.2.10

its about this workflow file. the tests are failing right now and thats ok so far. but if i run act again it complains about the docker volume is still in use.

$ act -v push
DEBU[0000] Loading environment from /home/marv/wip/carson/.env
DEBU[0000] Loading secrets from
DEBU[0000] Loading workflows from '/home/marv/wip/carson/.github/workflows'
DEBU[0000] Reading workflow '/home/marv/wip/carson/.github/workflows/push.yml'
DEBU[0000] Planning event: push
DEBU[0000] Loading slug from git directory '/home/marv/wip/carson/.git'
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] Loading revision from git directory '/home/marv/wip/carson/.git'
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] HEAD points to 'c2721305e3b61c33ec3f8f9420c3837c0cab8d37'
DEBU[0000] HEAD matches refs/heads/dev
DEBU[0000] using github ref: refs/heads/dev
DEBU[0000] context env => map[]
DEBU[0000] Loading slug from git directory '/home/marv/wip/carson/.git'
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] Loading revision from git directory '/home/marv/wip/carson/.git'
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] HEAD points to 'c2721305e3b61c33ec3f8f9420c3837c0cab8d37'
DEBU[0000] HEAD matches refs/heads/dev
DEBU[0000] using github ref: refs/heads/dev
DEBU[0000] context env => map[]
[push/test] 馃殌  Start image=node:12.6-buster-slim
DEBU[0000] Loading slug from git directory '/home/marv/wip/carson/.git'
[push/lint] 馃殌  Start image=node:12.6-buster-slim
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] Loading revision from git directory '/home/marv/wip/carson/.git'
DEBU[0000] Loading slug from git directory '/home/marv/wip/carson/.git'
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] HEAD points to 'c2721305e3b61c33ec3f8f9420c3837c0cab8d37'
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] HEAD matches refs/heads/dev
DEBU[0000] Loading revision from git directory '/home/marv/wip/carson/.git'
DEBU[0000] using github ref: refs/heads/dev
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] HEAD points to 'c2721305e3b61c33ec3f8f9420c3837c0cab8d37'
[push/test]   馃惓  docker pull node:12.6-buster-slim
DEBU[0000] HEAD matches refs/heads/dev
DEBU[0000] using github ref: refs/heads/dev
[push/lint]   馃惓  docker pull node:12.6-buster-slim
DEBU[0000] Image exists? true
DEBU[0000] Image exists? true
[push/lint]   馃惓  docker volume rm act-push-lint
[push/test]   馃惓  docker create image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
Error: Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
$ docker ps -a
CONTAINER ID        IMAGE                            COMMAND             CREATED             STATUS                      PORTS               NAMES
e5a5d94510a0        golangci/golangci-lint:v1.27.0   "make lint"         20 minutes ago      Exited (0) 19 minutes ago                       act-push-lint-1
metstale

All 10 comments

i installed the master version and i have the feeling it works. maybe i stepped into #186.

nope... just got the volume is in use error again.

another discovery:

when running two jobs... one is failing there is no cleanup or something of the one good job still running. maybe act should wait for all jobs finishing and after that complaining about a failed jobs. now it looks like its just stops the act process... no matter what.

Issue is stale and will be closed in 7 days unless there is new activity

I had to remove the container listed in docker ps -a

thats the point... i have to do this always when a job fails!

docker -rm ...

yeah... whats the point to have to do this on every failed step? am i holding it wrong?

Reporting that this issue still exists in version 0.2.17

Can someone please reopen this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ovitente picture ovitente  路  6Comments

patoroco picture patoroco  路  4Comments

jclem picture jclem  路  6Comments

helaili picture helaili  路  3Comments

Sygmei picture Sygmei  路  3Comments