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

Failed to create dir error #24

Closed
ice1000 opened this issue Jun 27, 2020 · 6 comments
Closed

Failed to create dir error #24

ice1000 opened this issue Jun 27, 2020 · 6 comments

Comments

@ice1000
Copy link

ice1000 commented Jun 27, 2020

Env:

I got this error when using gradle-command-action:

(node:1029) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Cache Size: ~194 MB (203918722 B)
/usr/bin/tar --use-compress-program zstd -d -xf /Users/runner/work/_temp/0b7c03b1-56b8-4584-85ef-1e47171003b9/cache.tzst -P -C /Users/runner/work/Arend/Arend
../../../../../.gradle/wrapper/dists/gradle-6.5-bin/: Failed to create dir '../../../../../.gradle'
../../../../../.gradle/wrapper/dists/gradle-6.5-bin/6nifqtx7604sqp1q6g8wikw7p/: Failed to create dir '../../../../../.gradle'
../../../../../.gradle/wrapper/dists/gradle-6.5-bin/6nifqtx7604sqp1q6g8wikw7p/gradle-6.5-bin.zip.ok: Failed to create dir '../../../../../.gradle'
../../../../../.gradle/wrapper/dists/gradle-6.5-bin/6nifqtx7604sqp1q6g8wikw7p/gradle-6.5-bin.zip.lck: Failed to create dir '../../../../../.gradle'
../../../../../.gradle/wrapper/dists/gradle-6.5-bin/6nifqtx7604sqp1q6g8wikw7p/gradle-6.5-bin.zip: Failed to create dir '../../../../../.gradle'
../../../../../.gradle/wrapper/dists/gradle-6.5-bin/6nifqtx7604sqp1q6g8wikw7p/gradle-6.5/: Failed to create dir '../../../../../.gradle'
../../../../../.gradle/wrapper/dists/gradle-6.5-bin/6nifqtx7604sqp1q6g8wikw7p/gradle-6.5/LICENSE: Failed to create dir '../../../../../.gradle'
../../../../../.gradle/wrapper/dists/gradle-6.5-bin/6nifqtx7604sqp1q6g8wikw7p/gradle-6.5/bin/: Failed to create dir '../../../../../.gradle'
../../../../../.gradle/wrapper/dists/gradle-6.5-bin/6nifqtx7604sqp1q6g8wikw7p/gradle-6.5/init.d/: Failed to create dir '../../../../../.gradle'
../../../../../.gradle/wrapper/dists/gradle-6.5-bin/6nifqtx7604sqp1q6g8wikw7p/gradle-6.5/README: Failed to create dir '../../../../../.gradle'
../../../../../.gradle/wrapper/dists/gradle-6.5-bin/6nifqtx7604sqp1q6g8wikw7p/gradle-6.5/NOTICE: Failed to create dir '../../../../../.gradle'
../../../../../.gradle/wrapper/dists/gradle-6.5-bin/6nifqtx7604sqp1q6g8wikw7p/gradle-6.5/lib/: Failed to create dir '../../../../../.gradle'

Hope we can have a fix

ice1000 added a commit to JetBrains/Arend that referenced this issue Jun 27, 2020
ice1000 added a commit to JetBrains/Arend that referenced this issue Jun 27, 2020
ice1000 added a commit to JetBrains/Arend that referenced this issue Jun 27, 2020
@ice1000
Copy link
Author

ice1000 commented Jun 27, 2020

Regression doesn't work, why?

@splix
Copy link

splix commented Jun 29, 2020

Having the same problem

@JasonBristol
Copy link

Also experiencing this

@beatngu13
Copy link

JUnit Pioneer has the same issues (see junit-pioneer/junit-pioneer#290). As a workaround, one can disable the Gradle wrapper caching:

- uses: eskatos/gradle-command-action@v1
  with:
    wrapper-cache-enabled: false

@splix
Copy link

splix commented Jul 3, 2020

@beatngu13 thank you, it helped

SalomonBrys pushed a commit to ACINQ/secp256k1-kmp that referenced this issue Jul 6, 2020
SalomonBrys pushed a commit to ACINQ/secp256k1-kmp that referenced this issue Jul 6, 2020
Dominaezzz added a commit to Dominaezzz/kotlin-imgui that referenced this issue Jul 6, 2020
sstone pushed a commit to ACINQ/secp256k1-kmp that referenced this issue Jul 6, 2020
* Kotlin 1.4-M3, fixed CI glitches & fixed build on Mac

* Fixes gradle/gradle-build-action#24

* Explicit mode requirements in Android tests

Co-authored-by: Salomon BRYS <salomon@kodein.net>
@eskatos
Copy link
Member

eskatos commented Sep 13, 2020

Thank you for the reports. The GitHub cache library fails to unpack the cached tar.
I upgraded the action/cache library, protected the code from such errors and added extra logging.
Please try again and report back if you encounter any problem, we'll reopen this issue if needed.

@eskatos eskatos closed this as completed Sep 13, 2020
Bukama pushed a commit to junit-pioneer/junit-pioneer that referenced this issue Sep 14, 2020
This PR re-enables the Gradle wrapper after a
fix with broken caching was fixed.

See: gradle/gradle-build-action#24 (comment)

Closes: #290
PR: #338
GrigoriyBeziuk pushed a commit to GrigoriyBeziuk/junit-pioneer that referenced this issue Jan 31, 2024
This PR re-enables the Gradle wrapper after a
fix with broken caching was fixed.

See: gradle/gradle-build-action#24 (comment)

Closes: #290
PR: #338
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

5 participants