我们在Artifactory日志中看到了很多这些错误:
20161228 121638 [http-nio-8081-exec-22933] [WARN ]
(o.a.r.ArtifactoryResponseBase:107) - Sending HTTP error code 500: Could not
process download request: Failed to load properties for 314050135
这是什么意思?
仔细观察警告,我们发现在大多数情况下,在尝试读取某种元数据xml之后会出现警告。
cat artifactory.log | grep http-nio-8081-exec-2441 | grep -A 2 -B 5 "Sending HTTP error code 500"
类似于以下内容:
2017-01-04 09:02:48,788 [http-nio-8081-exec-2419] [DEBUG] (o.a.w.s.RepoFilter :98) - Entering request GET (10.67.6.51) /internal-release-rhel6/repodata/repomd.xml.
2017-01-04 09:03:48,791 [http-nio-8081-exec-2419] [WARN ] (o.a.r.ArtifactoryResponseBase:107) - Sending HTTP error code 500: Could not process download request: Failed to load properties for 335095695
更新
我们已经增加了日志级别以获得一些上下文:
2017-01-04 09:01:05,955 [http-nio-8081-exec-2445] [DEBUG] (o.a.w.s.RepoFilter :98) - Entering request GET (10.67.7.101) /core-release/com/jeppesen/jcms/airport/maven-metadata.
xml.
2017-01-04 09:01:06,187 [http-nio-8081-exec-2443] [DEBUG] (o.a.w.s.RepoFilter :98) - Entering request HEAD (10.67.7.101) /ots-release/com/jeppesen/jcms/atriumorc/maven-metadat
a.xml.
2017-01-04 09:01:12,143 [http-nio-8081-exec-2373] [ERROR] (o.a.r.c.e.GlobalExceptionMapper:48) - Failed to load properties for 165931919
org.artifactory.storage.StorageException: Failed to load properties for 165931919
at org.artifactory.storage.db.fs.service.DbPropertiesServiceImpl.loadProperties(DbPropertiesServiceImpl.java:113) ~[artifactory-storage-db-4.15.0.jar:na]
at org.artifactory.storage.db.fs.service.DbPropertiesServiceImpl.getProperties(DbPropertiesServiceImpl.java:84) ~[artifactory-storage-db-4.15.0.jar:na]
at org.artifactory.repo.service.RepositoryServiceImpl.getProperties(RepositoryServiceImpl.java:1046) ~[artifactory-core-4.15.0.jar:na]
.....
2017-01-04 09:01:12,143 [http-nio-8081-exec-2359] [ERROR] (o.a.r.c.e.GlobalExceptionMapper:48) - Failed to load properties for 59628724
org.artifactory.storage.StorageException: Failed to load properties for 59628724
at org.artifactory.storage.db.fs.service.DbPropertiesServiceImpl.loadProperties(DbPropertiesServiceImpl.java:113) ~[artifactory-storage-db-4.15.0.jar:na]
at org.artifactory.storage.db.fs.service.DbPropertiesServiceImpl.getProperties(DbPropertiesServiceImpl.java:84) ~[artifactory-storage-db-4.15.0.jar:na]
at org.artifactory.repo.service.RepositoryServiceImpl.getProperties(RepositoryServiceImpl.java:1046) ~[artifactory-core-4.15.0.jar:
......
2017-01-04 09:01:12,143 [http-nio-8081-exec-2422] [ERROR] (o.a.r.c.e.GlobalExceptionMapper:48) - Failed to load properties for 26449553
org.artifactory.storage.StorageException: Failed to load properties for 26449553
at org.artifactory.storage.db.fs.service.DbPropertiesServiceImpl.loadProperties(DbPropertiesServiceImpl.java:113) ~[artifactory-storage-db-4.15.0.jar:na]
at org.artifactory.storage.db.fs.service.DbPropertiesServiceImpl.getProperties(DbPropertiesServiceImpl.java:84) ~[artifactory-storage-db-4.15.0.jar:na]
at org.artifactory.repo.service.RepositoryServiceImpl.getProperties(RepositoryServiceImpl.java:104
.....
.....
.....
2017-01-04 09:01:12,180 [http-nio-8081-exec-2428] [DEBUG] (o.a.w.s.RepoFilter :204) - Exiting request GET (10.67.20.240) /api/npm/npm-all/grunt-contrib-copy/-/grunt-contrib-copy-1.0.0.tgz
2017-01-04 09:01:12,943 [http-nio-8081-exec-2416] [WARN ] (o.a.r.ArtifactoryResponseBase:107) - Sending HTTP error code 500: Could not process download request: Failed to load properties for 59815778
2017-01-04 09:01:12,948 [http-nio-8081-exec-2416] [DEBUG] (o.a.w.s.RepoFilter :283) - Could not process download request: Failed to load properties for 59815778
org.artifactory.storage.StorageException: Failed to load properties for 59815778
at org.artifactory.storage.db.fs.service.DbPropertiesServiceImpl.loadProperties(DbPropertiesServiceImpl.java:113) ~[artifactory-storage-db-4.15.0.jar:na]
at org.artifactory.storage.db.fs.service.DbPropertiesServiceImpl.getProperties(DbPropertiesServiceImpl.java:84) ~[artifactory-storage-db-4.15.0.jar:na]
at org.artifactory.repo.service.RepositoryServiceImpl.getProperties(RepositoryServiceImpl.java:1046) ~[artifactory-core-4.15.0.jar:na]
at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source) ~[na:na]
答案 0 :(得分:0)
在尝试下载工件时尝试加载工件属性时,根本原因是SQL错误。它可以表明数据库中存在某种腐败现象
有关错误的更多具体细节,请设置要调试的org.artifactory.webapp.servlet.RepoFilter
的日志级别。这应该在日志中提供完整的堆栈跟踪。