Received status code 524 from server: Origin Time-out

Hello,
Our build started to fail today with following error:

> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve org.eclipse.jgit:org.eclipse.jgit:latest.release.
     Required by:
         project : > gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties:2.2.4 > org.ajoberstar.grgit:grgit-core:4.1.0
      > Failed to list versions for org.eclipse.jgit:org.eclipse.jgit.
         > Unable to load Maven meta-data from https://plugins.gradle.org/m2/org/eclipse/jgit/org.eclipse.jgit/maven-metadata.xml.
            > Could not HEAD 'https://repo.gradle.org/artifactory/jcenter/org/eclipse/jgit/org.eclipse.jgit/maven-metadata.xml'. Received status code 524 from server: Origin Time-out

Anyone aware of the problems with repo servers?

Thanks
Andrzej

2 Likes

Yes I’m experiencing it since about 30 minutes:

> wget https://repo.gradle.org/artifactory/jcenter/org/ow2/asm/asm/9.1/asm-9.1.pom
--2022-03-27 11:42:25--  https://repo.gradle.org/artifactory/jcenter/org/ow2/asm/asm/9.1/asm-9.1.pom
Resolving repo.gradle.org (repo.gradle.org)... 104.18.190.9, 104.18.191.9
Connecting to repo.gradle.org (repo.gradle.org)|104.18.190.9|:443... connected.
HTTP request sent, awaiting response... 524 
2022-03-27 11:44:05 ERROR 524: (no description).

Same here, this started in the last hour.
I see this is not yet reflected in https://status.gradle.com/.

Same for me, increasing the timeout with

systemProp.org.gradle.internal.http.connectionTimeout=180000
systemProp.org.gradle.internal.http.socketTimeout=180000

didn’t help.
When I connect via the browser Cloudflare throws a 524 error.

the same for me. status.gradle.com still says nothing

Found a fix (at least for the kotlin jvm plugin)

// settings.gradle
pluginManagement {
    repositories {
        maven {
            url 'https://repo1.maven.org/maven2/'
        }
        gradlePluginPortal()
    }
}

I checked the maven repository if it has the kotlin plugin and i just prioritized it before the dead gradle portal.

The server is back again.

1 Like

Confirmed it is fixed.