Gradle errors preventing deploy

I suddenly cannot deploy anymore. I’ve deployed the same project a 20-30 times without issue but now I cannot deploy anymore. To be sure it was not something I changed I created an new empty robot project and I can’t deploy that either. I’m very frustrated and would really appreciate any assistance. When I build it builds fine without error.


Executing task: gradlew build -Dorg.gradle.java.home=“C:\Users\Public\wpilib\2025\jdk”

BUILD SUCCESSFUL in 2s

But when I deploy I get the following error:

Cannot locate tasks that match ‘.gradle.java.home=C:\Users\Public\wpilib\2025\jdk’ as project ‘.gradle.java.home=C’ not found in root project ‘emptyBot’.

It is running this command:
cmd.exe /d /c gradlew deploy -PteamNumber=2543 --offline -Dorg.gradle.java.home=“C:\Users\Public\wpilib\2025\jdk”

Been messing around, found that I am getting this error further up the chain in the output:

A failure occurred while executing edu.wpi.first.deployutils.deploy.artifact.ArtifactDeployWorker

SFTP error (SSH_FX_FAILURE): Failure

I opened an ssh session to the robot rio and deleted the jar files that were there. I also cleared the log files. Then I was able to deploy just fine. I’m guessing it had a file lock something on them so I could not push the files.

I suspect you were out of disk space and deleting the logs freed it up.

1 Like