Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/arrow/arrow-vector/12.0.0/arrow-vector-12.0.0.pom'

Hi Gradle Support,

When i tape “gradle build” is SUCCESSFUL for my BigQuery Project.

But, when i tape “gradle run”, I have this error :

C:\Users\soukna\Katalon Studio\BG>gradle run
> Task :run FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':run'.
> Could not resolve all files for configuration ':runtimeClasspath'.
   > Could not resolve org.apache.arrow:arrow-vector:12.0.0.
     Required by:
         project : > com.google.cloud:google-cloud-bigquery:2.29.0
      > Could not resolve org.apache.arrow:arrow-vector:12.0.0.
         > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/arrow/arrow-vector/12.0.0/arrow-vector-12.0.0.pom'.
            > Failed to move file 'C:\Users\soukna\.gradle\.tmp\gradle_download3687080235392622037bin' into filestore at 'org.apache.arrow/arrow-vector/12.0.0/46e4493b724e454fc322474a25bc7bb3e4607bfb/arrow-vector-12.0.0.pom'
               > Failed to create parent directory 'C:\Users\soukna\.gradle\caches\modules-2\files-2.1\org.apache.arrow' when creating directory 'C:\Users\soukna\.gradle\caches\modules-2\files-2.1\org.apache.arrow\arrow-vector\12.0.0\46e4493b724e454fc322474a25bc7bb3e4607bfb'
   > Could not resolve org.apache.arrow:arrow-format:12.0.0.
     Required by:
         project : > com.google.cloud:google-cloud-bigquery:2.29.0
      > Could not resolve org.apache.arrow:arrow-format:12.0.0.
         > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/arrow/arrow-format/12.0.0/arrow-format-12.0.0.pom'.
            > Failed to move file 'C:\Users\soukna\.gradle\.tmp\gradle_download3374441869250706967bin' into filestore at 'org.apache.arrow/arrow-format/12.0.0/90081978513c67f97cb0bfd02f3c5c444d22db54/arrow-format-12.0.0.pom'
               > Failed to create parent directory 'C:\Users\soukna\.gradle\caches\modules-2\files-2.1\org.apache.arrow' when creating directory 'C:\Users\soukna\.gradle\caches\modules-2\files-2.1\org.apache.arrow\arrow-format\12.0.0\90081978513c67f97cb0bfd02f3c5c444d22db54'
   > Could not resolve org.apache.arrow:arrow-memory-core:12.0.0.
     Required by:
         project : > com.google.cloud:google-cloud-bigquery:2.29.0
      > Could not resolve org.apache.arrow:arrow-memory-core:12.0.0.
         > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/arrow/arrow-memory-core/12.0.0/arrow-memory-core-12.0.0.pom'.
            > Failed to move file 'C:\Users\soukna\.gradle\.tmp\gradle_download4962238574849595528bin' into filestore at 'org.apache.arrow/arrow-memory-core/12.0.0/c2466ee9d11f83d3b627165cd8758c1ef50dec79/arrow-memory-core-12.0.0.pom'
               > Failed to create parent directory 'C:\Users\soukna\.gradle\caches\modules-2\files-2.1\org.apache.arrow' when creating directory 'C:\Users\soukna\.gradle\caches\modules-2\files-2.1\org.apache.arrow\arrow-memory-core\12.0.0\c2466ee9d11f83d3b627165cd8758c1ef50dec79'
   > Could not resolve org.apache.arrow:arrow-memory-netty:12.0.0.
     Required by:
         project : > com.google.cloud:google-cloud-bigquery:2.29.0
      > Could not resolve org.apache.arrow:arrow-memory-netty:12.0.0.
         > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/arrow/arrow-memory-netty/12.0.0/arrow-memory-netty-12.0.0.pom'.
            > Failed to move file 'C:\Users\soukna\.gradle\.tmp\gradle_download3392959242109713314bin' into filestore at 'org.apache.arrow/arrow-memory-netty/12.0.0/67ebb6ac8bf0f95b1617bfaf199afd6e83f72a30/arrow-memory-netty-12.0.0.pom'
               > Failed to create parent directory 'C:\Users\soukna\.gradle\caches\modules-2\files-2.1\org.apache.arrow' when creating directory 'C:\Users\soukna\.gradle\caches\modules-2\files-2.1\org.apache.arrow\arrow-memory-netty\12.0.0\67ebb6ac8bf0f95b1617bfaf199afd6e83f72a30'

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 1s
1 actionable task: 1 executed

Help Help please !!!

I think it comes from the vpn bug because it works on my personal pc. But not very sure at 100%.

Someone who encountered this error ?

Thank U

You are not at some Gradle support, this is a community forum.

Your error message most probably means that you somehow messed up directory permissions and should not be related to VPN or not.

I’d suggest you try to delete the mentioned directory and / or its parent and try again.

Thanks for your feedback but :

In my Directory I didn’t find : “org.apache.arrow” (like my error message said : “C:\Users\soukna.gradle\caches\modules-2\files-2.1\org.apache.arrow\arrow-vector\12.0.0\46e4493b724e454fc322474a25bc7bb3e4607bfb”

How to solve my issue please ?

Well, it says it cannot create it.
Could have been that it is already there but you don’t have permissions, or that you don’t have permission to create it due to permissions in the parent directory.
That’s why I said you should also delete its parent directory.
Alternatively you can also try to fix up the permissions, so that you can create the directory in question.

No, it’s not because, I manage to create a new folder in the directory.

When I rename the directory “org.apache.arrow” in "C:\Users\soukna.gradle\caches\modules-2\files-2.1", I have this error message:

Capture

But when i Create new folder, it’s OK.

Very strange error !

You probably have some Gradle daemon still running, or some IDE open that reference files in there.
Quit your IDE and stop all Gradle daemons, or reboot your computer, then it should work.

I already closed Katalon Studio (which is my IDE), restarted my machine but nothing happened.

If you still cannot delete the folder, you probably need to use some tool like “handle” or “Process Explorer” with which you can check what program is still having an open handle on it, but that is not really a Gradle topic anymore. In the very worst case, start in recovery mode and delete the folder there.

It’s not delete. it’s for creation.

I stopped the Daemon with this command line :slight_smile:

WMIC PROCESS where "Name like 'java%' AND CommandLine like '%GradleDaemon%'" Call Terminate

But always this same error.

I created “org.apache.qdze” but for org.apache.arrow.

it’s not possible, i don’t know why.

Well, as I said, something is very strange with your permissions or with some process blocking your files / folders.
This is not a Gradle topic, as you cannot even do it in the Windows explorer.

There may be other java processes that do not have GradleDaemon in the command line but accessing that folder as Gradle kicks of several worker processes.

But really, I cannot guess what process or permissions or whatever is messed up on your local system.

In my build folder, i didn’t have many folder although the build is in Successful like :

  • classes
  • generated
  • ressources

Look :

So I deleted the “Build” directory from BG and redid a gradle build but I still can’t find the 3 folders.

→ Very strange don’t you think?

Here is what my “BG” Directory contains:

Do you see anything there that would disturb the generation of these 3 directories?

Thanks for your help

I don’t follow.
Did you now resolve the problem about arrow and are talking about a new topic?
If so, I have no idea whether it is strange or not, as I have no idea what your build does.

not
It’s the same issue

Then I’m not following.
The original issue was that it does not build but fail when trying to create a folder.
Now you say it builds successfully but you miss some other folders from the result,

It’s the same issue.

Repeating yourself does not add any value at all to the topic.