[GH-ISSUE #85] Lacks clear error / debug messaging when failure is due to /tmp not being exported #53

Closed
opened 2026-03-01 21:39:30 +03:00 by kerem · 2 comments
Owner

Originally created by @davidalger on GitHub (Feb 18, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/85

Tried running the new v0.2.0 build from #74 against a workflow this morning and was greeted with an error:

$ act -j phpcs
[Magento CI/MCS Check] ⭐  Run actions/checkout@v1
[Magento CI/MCS Check]   ✅  Success - actions/checkout@v1
[Magento CI/MCS Check] ⭐  Run composer global require hirak/prestissimo
[Magento CI/MCS Check]   🐳  docker pull davidalger/php:7.3
[Magento CI/MCS Check]   🐳  docker run image=davidalger/php:7.3 entrypoint=[] cmd=["bash" "--noprofile" "--norc" "-eo" "pipefail" "/github/home/.temp-script-115317879"]
[Magento CI/MCS Check]   ❌  Failure - composer global require hirak/prestissimo
Error: exit with `FAILURE`: 1

Tail end of the debug output from repeat run including -v flag was following:

[Magento CI/MCS Check]   🐳  docker pull davidalger/php:7.3
DEBU[0000] Image exists? true                           
DEBU[0000] Writing entry to tarball workflow/event.json len:2 
[Magento CI/MCS Check]   🐳  docker run image=davidalger/php:7.3 entrypoint=[] cmd=["bash" "--noprofile" "--norc" "-eo" "pipefail" "/github/home/.temp-script-526965623"]
[Magento CI/MCS Check] Created container name=<redacted>-1--tmp-act-998051960 id=123778203a36f139d618bd56f4cdf12feb18d5ff4b5ae26660d4f8ba4434cc12 from image davidalger/php:7.3
[Magento CI/MCS Check] ENV ==> [GITHUB_WORKSPACE=/github/workspace GITHUB_REF=<redacted> HOME=/github/home GITHUB_RUN_NUMBER=1 GITHUB_ACTION=1 GITHUB_ACTOR=nektos/act GITHUB_REPOSITORY=<redacted>/<redacted> GITHUB_WORKFLOW=Magento CI GITHUB_RUN_ID=1 GITHUB_EVENT_NAME=pull_request GITHUB_EVENT_PATH=/github/workflow/event.json GITHUB_SHA=<redacted>]
[Magento CI/MCS Check] Extracting content to '/github'
[Magento CI/MCS Check] STARTING image=davidalger/php:7.3 entrypoint=[] cmd=[bash --noprofile --norc -eo pipefail /github/home/.temp-script-526965623]
| bash: /github/home/.temp-script-526965623: No such file or directory
[Magento CI/MCS Check] Started container: 123778203a36f139d618bd56f4cdf12feb18d5ff4b5ae26660d4f8ba4434cc12
[Magento CI/MCS Check] Return status: 1
[Magento CI/MCS Check] Removed container: 
[Magento CI/MCS Check]   ❌  Failure - composer global require hirak/prestissimo
DEBU[0000] exit with `FAILURE`: 1                       
DEBU[0000] exit with `FAILURE`: 1                       
DEBU[0000] exit with `FAILURE`: 1                       
Error: exit with `FAILURE`: 1

There is no indication of what caused the failure. I've got a good bit of experience with Docker and deduced that given it's writing the file to /tmp and the trying to execute from /github it was likely trying to mount the file into the container and failing.

On my Docker Desktop setup running on macOS I had removed /tmp and /private from the list of paths in File Sharing. I reset Docker Desktop to get these paths restored to the list of shared paths, and the tool is now working. Very nice work btw! 🎉

It seems to me there is probably an error message coming from the docker engine which is not bubbling up as it should in the debug/verbose output. Would consider it low priority issue as most will likely not encounter this, but figured it'd be worth mentioning at least in case someone else does.

Originally created by @davidalger on GitHub (Feb 18, 2020). Original GitHub issue: https://github.com/nektos/act/issues/85 Tried running the new v0.2.0 build from #74 against a workflow this morning and was greeted with an error: ``` $ act -j phpcs [Magento CI/MCS Check] ⭐ Run actions/checkout@v1 [Magento CI/MCS Check] ✅ Success - actions/checkout@v1 [Magento CI/MCS Check] ⭐ Run composer global require hirak/prestissimo [Magento CI/MCS Check] 🐳 docker pull davidalger/php:7.3 [Magento CI/MCS Check] 🐳 docker run image=davidalger/php:7.3 entrypoint=[] cmd=["bash" "--noprofile" "--norc" "-eo" "pipefail" "/github/home/.temp-script-115317879"] [Magento CI/MCS Check] ❌ Failure - composer global require hirak/prestissimo Error: exit with `FAILURE`: 1 ``` Tail end of the debug output from repeat run including `-v` flag was following: ``` [Magento CI/MCS Check] 🐳 docker pull davidalger/php:7.3 DEBU[0000] Image exists? true DEBU[0000] Writing entry to tarball workflow/event.json len:2 [Magento CI/MCS Check] 🐳 docker run image=davidalger/php:7.3 entrypoint=[] cmd=["bash" "--noprofile" "--norc" "-eo" "pipefail" "/github/home/.temp-script-526965623"] [Magento CI/MCS Check] Created container name=<redacted>-1--tmp-act-998051960 id=123778203a36f139d618bd56f4cdf12feb18d5ff4b5ae26660d4f8ba4434cc12 from image davidalger/php:7.3 [Magento CI/MCS Check] ENV ==> [GITHUB_WORKSPACE=/github/workspace GITHUB_REF=<redacted> HOME=/github/home GITHUB_RUN_NUMBER=1 GITHUB_ACTION=1 GITHUB_ACTOR=nektos/act GITHUB_REPOSITORY=<redacted>/<redacted> GITHUB_WORKFLOW=Magento CI GITHUB_RUN_ID=1 GITHUB_EVENT_NAME=pull_request GITHUB_EVENT_PATH=/github/workflow/event.json GITHUB_SHA=<redacted>] [Magento CI/MCS Check] Extracting content to '/github' [Magento CI/MCS Check] STARTING image=davidalger/php:7.3 entrypoint=[] cmd=[bash --noprofile --norc -eo pipefail /github/home/.temp-script-526965623] | bash: /github/home/.temp-script-526965623: No such file or directory [Magento CI/MCS Check] Started container: 123778203a36f139d618bd56f4cdf12feb18d5ff4b5ae26660d4f8ba4434cc12 [Magento CI/MCS Check] Return status: 1 [Magento CI/MCS Check] Removed container: [Magento CI/MCS Check] ❌ Failure - composer global require hirak/prestissimo DEBU[0000] exit with `FAILURE`: 1 DEBU[0000] exit with `FAILURE`: 1 DEBU[0000] exit with `FAILURE`: 1 Error: exit with `FAILURE`: 1 ``` There is no indication of what caused the failure. I've got a good bit of experience with Docker and deduced that given it's writing the file to /tmp and the trying to execute from /github it was likely trying to mount the file into the container and failing. On my Docker Desktop setup running on macOS I had removed `/tmp` and `/private` from the list of paths in File Sharing. I reset Docker Desktop to get these paths restored to the list of shared paths, and the tool is now working. Very nice work btw! 🎉 It seems to me there is probably an error message coming from the docker engine which is not bubbling up as it should in the debug/verbose output. Would consider it low priority issue as most will likely not encounter this, but figured it'd be worth mentioning at least in case someone else does.
kerem closed this issue 2026-03-01 21:39:30 +03:00
Author
Owner

@cplee commented on GitHub (Feb 18, 2020):

Wow, great detective work @davidalger!

<!-- gh-comment-id:587538565 --> @cplee commented on GitHub (Feb 18, 2020): Wow, great detective work @davidalger!
Author
Owner

@cplee commented on GitHub (Feb 25, 2020):

No longer using /tmp bindings...everything is now managed as docker volumes

<!-- gh-comment-id:590708785 --> @cplee commented on GitHub (Feb 25, 2020): No longer using `/tmp` bindings...everything is now managed as docker volumes
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#53
No description provided.