question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to create dir error

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
beatngu13commented, Jul 2, 2020

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

- uses: eskatos/gradle-command-action@v1
  with:
    wrapper-cache-enabled: false
1reaction
eskatoscommented, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to create dir: \?\Larian Studios\Baldur's Gate 3
Try right clicking your My Documents folder and select Properties, switch to the Locations tab and click the Restore Default button. That has...
Read more >
What is the Failed to create directory error message?
A: If you see an error like this: "Failed to create directory/smartsimple/Tomcat/webapps/ROOT/resources/404091_7f5ea7d83f05b54e/spool/80_1333606_1612048" it ...
Read more >
failed to create dir: C:/user/myname/Documents/Larian Studios
I fixed this issue today for me.... It is related to Windows Defender "Controlled Folder Access: settings. If you open Windows Defender, click ......
Read more >
How to Fix "Installation Failed: Could Not Create Directory"
If your site's permissions settings are causing the “Installation failed: could not create directory error,” you can resolve it by resetting ...
Read more >
"Failed to create directory" error when creating a new project ...
"Failed to create directory" error when trying to create a project; the error lists the project share · Does not matter which user...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found