Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOENT: no such file or directory on cache cleanup #858

Closed
yogurtearl opened this issue Aug 21, 2023 · 0 comments
Closed

ENOENT: no such file or directory on cache cleanup #858

yogurtearl opened this issue Aug 21, 2023 · 0 comments
Milestone

Comments

@yogurtearl
Copy link

Cache cleanup warning seems to prevent the gradle action from continuing to create new cache entries.

It should continue on and still create the new entries, even when it hits this issue.

Using v2.7.0 got this error on the main branch.

In final post-action step, saving state and writing summary
Stopping all Gradle daemons before saving Gradle User Home state
Stopping Gradle daemons for /root/.gradle/wrapper/dists/gradle-8.3-bin/af8iysnup3ojrl35q121b37/gradle-8.3
/root/.gradle/wrapper/dists/gradle-8.3-bin/af8iys5nup3ojrl35q121b376/gradle-8.3/bin/gradle --stop
Stopping Daemon(s)
1 Daemon stopped
Forcing cache cleanup.
Warning: Unhandled error in Gradle post-action - job will continue: Error: ENOENT: no such file or directory, realpath '/root/.gradle/caches/8.2.1/kotlin-dsl/accessors/862...5-PS/classes/org/gradle/kotlin'
Error: ENOENT: no such file or directory, realpath '/root/.gradle/caches/8.2.1/kotlin-dsl/accessors/862...5-PS/classes/org/gradle/kotlin'
@bigdaz bigdaz added this to the 2.11.0 milestone Dec 12, 2023
@bigdaz bigdaz modified the milestones: 2.11.0, 3.0.0 Dec 12, 2023
@bigdaz bigdaz closed this as completed in a71aff6 Dec 12, 2023
bigdaz added a commit that referenced this issue Dec 23, 2023
Do not abort the remainder of the post-action on failure in cache-cleanup.
Instead, just log a warning and continue.

Fixes #858
Fixes #990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants