{"record":{"id":"2f4308dcf405bfa3","repo":"apache/maven","slug":"checksum-failed-retrying","errorCode":null,"errorMessage":"*** CHECKSUM FAILED - {} - RETRYING","messagePattern":"\\*\\*\\* CHECKSUM FAILED - (.+?) - RETRYING","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java","lineNumber":391,"sourceCode":"                    wagon.removeTransferListener(sha1ChecksumObserver);\n                }\n\n                if (downloaded) {\n                    // keep the checksum files from showing up on the download monitor...\n                    if (downloadMonitor != null) {\n                        wagon.removeTransferListener(downloadMonitor);\n                    }\n\n                    // try to verify the SHA-1 checksum for this file.\n                    try {\n                        verifyChecksum(sha1ChecksumObserver, destination, temp, remotePath, \".sha1\", wagon);\n                    } catch (ChecksumFailedException e) {\n                        // if we catch a ChecksumFailedException, it means the transfer/read succeeded, but the\n                        // checksum doesn't match. This could be a problem with the server (ibiblio HTTP-200 error\n                        // page), so we'll try this up to two times. On the second try, we'll handle it as a bona-fide\n                        // error, based on the repository's checksum checking policy.\n                        if (firstRun) {\n                            logger.warn(\"*** CHECKSUM FAILED - \" + e.getMessage() + \" - RETRYING\");\n                            retry = true;\n                        } else {\n                            handleChecksumFailure(checksumPolicy, e.getMessage(), e.getCause());\n                        }\n                    } catch (ResourceDoesNotExistException sha1TryException) {\n                        logger.debug(\"SHA1 not found, trying MD5: \" + sha1TryException.getMessage());\n\n                        // if this IS NOT a ChecksumFailedException, it was a problem with transfer/read of the checksum\n                        // file...we'll try again with the MD5 checksum.\n                        try {\n                            verifyChecksum(md5ChecksumObserver, destination, temp, remotePath, \".md5\", wagon);\n                        } catch (ChecksumFailedException e) {\n                            // if we also fail to verify based on the MD5 checksum, and the checksum transfer/read\n                            // succeeded, then we need to determine whether to retry or handle it as a failure.\n                            if (firstRun) {\n                                retry = true;\n                            } else {\n                                handleChecksumFailure(checksumPolicy, e.getMessage(), e.getCause());","sourceCodeStart":373,"sourceCodeEnd":409,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java#L373-L409","documentation":"Error \"*** CHECKSUM FAILED - {} - RETRYING\" thrown in apache/maven.","triggerScenarios":"Thrown at compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java:391 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e4093d4e120eac99d6bdce5ba67cace2f3085c97","analyzedAt":"2026-08-21T22:58:24.034Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}