maven-2artifactory

Getting error as failed to persist file in jfrog artifactory oss


Getting error as no files cached and also Failed to persist file with sha1 while trying to download the artifacts from jfrog ui or even at server level also.

artifactory-service.log file says below

Failed to download 'https://repo1.maven.org/maven2/org/springframework/session/spring-session-bom/2020.0.6/spring-session-bom-2020.0.6.pom'. Received status code 200 and caught exception: Failed to persist file with sha1: ea3f628faytuygvhb765755e1ea65f91fdae52a0 2024-04-25T07:14:24.278Z [jfrt ] [ERROR] [3cbed23bd0e8e025] [o.a.r.v.i.PomInterceptor:133 ] [ttp-nio-8081-exec-10] - Failed to persist file with sha1: ea3f628faytuygvhb765755e1ea65f91fdae52a0 2024-04-25T07:14:24.694Z [jfrt ] [INFO ] [6f80857ee213b378] [o.a.r.HttpRepo:464 ] [http-nio-8081-exec-6] - repo1 downloading https://repo1.maven.org/maven2/org/springframework/session/spring-session-bom/2020.0.6/spring-session-bom-2020.0.6.pom 2.66 KB


Solution

  • I found the issue, as there was a duplicate directory of ea at /opt/jfrog/artifactory/var/data/artifactory/filestore/ea Hence i deleted the whole ea directory itself, and it resolved my issue.