我正在尝试将JFrog Artifactory配置为本地存储库;也就是说,一旦我在其缓存中拥有依赖项,我将能够使用这些相同的依赖项而无需联机。我试图为Ruby做这件事,但它一直告诉我:
user@machine:~> gem install faker -V
Getting SRV record failed: DNS result has no information for _rubygems._tcp.localhost
HEAD http://localhost:8081/artifactory/api/gems/gems/api/v1/dependencies
200 OK
GET http://localhost:8081/artifactory/api/gems/gems/api/v1/dependencies?gems=faker
200 OK
ERROR: Could not find a valid gem 'faker' (>= 0) in any repository
GET http://localhost:8081/artifactory/api/gems/gems/latest_specs.4.8.gz
304 Not Modified
GET http://localhost:8081/artifactory/api/gems/gems/prerelease_specs.4.8.gz
304 Not Modified
我已经在神器指南中查找了这个错误,他们告诉我将它置于脱机模式,因此它停止在远程存储库中进行提取,但即便如此,它仍然会给我错误。
如果重要我正在使用代理,但它配置得很好。当我上网时,我的所有依赖项都安装得很好。
My setup for ruby-remote repository
Artifactory日志:
2018-02-12 08:11:39,550 [http-nio-8081-exec-10] [INFO ] (o.a.a.g.h.RubyHelper:150) - Initialized RubyHelper successfully
2018-02-12 08:11:44,666 [online-monitor-gems-remote] [INFO](o.a.r.HttpRepo:1057) - gems-remote无法访问。设置为离线! 2018-02-12 08:14:05,082 [online-monitor-gems-remote] [INFO](o.a.r.HttpRepo:1050) - gems-remote重新上线!
这是我的神器请求日志:
20180212080758|44|REQUEST|127.0.0.1|anonymous|GET|/webapp/|HTTP/1.1|200|0
20180212080758 | 7 | REQUEST | 127.0.0.1 |匿名| GET | / web应用/ | HTTP / 1.1 | 200 | 0 20180212080758个| 105 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/artifactory_core.119.js | HTTP / 1.1 | 200 | 0 20180212080758个| 110 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/artifactory_services.119.js | HTTP / 1.1 | 200 | 0 20180212080758个| 212 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/templates.119.js | HTTP / 1.1 | 200 | 0 20180212080758 | 25 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/css/vendorStyles.119.css | HTTP / 1.1 | 200 | 0 20180212080758个| 164 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/artifactory_dao.119.js | HTTP / 1.1 | 200 | 0 20180212080758个| 169 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/artifactory_ui.119.js | HTTP / 1.1 | 200 | 0 20180212080758个| 76 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/artifactory_ui_components.119.js | HTTP / 1.1 | 200 | 0 20180212080758个| 13 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/artifactory_filters.119.js | HTTP / 1.1 | 200 | 0 20180212080758个| 10 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/artifactory_views.119.js | HTTP / 1.1 | 200 | 0 20180212080758个| 46 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/artifactory_directives.119.js | HTTP / 1.1 | 200 | 0 20180212080758个| 70 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/artifactory_states.119.js | HTTP / 1.1 | 200 | 0 20180212080758 | 92 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/images/favicon.119.ico | HTTP / 1.1 | 200 | 0 20180212080758个| 348 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/css/application.119.css | HTTP / 1.1 | 200 | 0 20180212080758个| 316 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/artifactory_main.119.js | HTTP / 1.1 | 200 | 0 20180212080758 | 670 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/vendorScripts.119.js | HTTP / 1.1 | 200 | 0 20180212080758 | 14 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/fonts/OpenSans/OpenSans-Regular/OpenSans-Regular-webfont.119.woff | HTTP / 1.1 | 200 | 0 20180212080759 | 15 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/fonts/OpenSans/OpenSans-Bold/OpenSans-Bold-webfont.119.woff | HTTP / 1.1 | 200 | 0 20180212080759 | 385 | REQUEST | 127.0.0.1 |匿名| GET | / UI /树形浏览器/ repoOrder | HTTP / 1.1 | 200 | 0 20180212080759 | 451 | REQUEST | 127.0.0.1 |匿名| GET | / UI / AUTH /屏幕/页脚| HTTP / 1.1 | 200 | 0 20180212080759 | 55 | REQUEST | 127.0.0.1 |匿名| GET | / UI / AUTH /屏幕/页脚| HTTP / 1.1 | 200 | 0 20180212080759 | 400 | REQUEST | 127.0.0.1 |匿名| GET | / UI /初始启用/ initStatus | HTTP / 1.1 | 200 | 0 20180212080759 | 64 | REQUEST | 127.0.0.1 |匿名| GET | / UI / AUTH /屏幕/页脚| HTTP / 1.1 | 200 | 0 20180212080759 | 77 | REQUEST | 127.0.0.1 |匿名| GET | / UI / AUTH /屏幕/页脚| HTTP / 1.1 | 200 | 0 20180212080759 | 10 | REQUEST | 127.0.0.1 |匿名| GET | / UI / AUTH /屏幕/页脚| HTTP / 1.1 | 200 | 0 20180212080759 | 17 | REQUEST | 127.0.0.1 |匿名| GET | / UI / AUTH /屏幕/页脚| HTTP / 1.1 | 200 | 0 20180212080759 | 16 | REQUEST | 127.0.0.1 |匿名| GET | / UI / AUTH /屏幕/页脚| HTTP / 1.1 | 200 | 0 20180212080800 | 799 | REQUEST | 127.0.0.1 |匿名| GET | / UI / AUTH /电流| HTTP / 1.1 | 200 | 0 20180212080800 | 271 |请求| 127.0.0.1 |匿名|获取| / UI /家庭/空间/ artifactCount | HTTP / 1.1 | 200 | 0 20180212080800 | 31 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/images/artifactory_logo.119.svg | HTTP / 1.1 | 200 | 0 20180212080800 | 13 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/fonts/OpenSans/OpenSans-Light/OpenSans-Light-webfont.119.woff | HTTP / 1.1 | 200 | 0 20180212080800 | 26 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/fonts/OpenSans/OpenSans-Italic/OpenSans-Italic-webfont.119.woff | HTTP / 1.1 | 200 | 0 20180212080800 | 51 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/fonts/artifactory.119.woff2 | HTTP / 1.1 | 200 | 0 20180212080800 | 17 |请求| 127.0.0.1 |匿名|获取| / UI /家庭/空间/资讯| HTTP / 1.1 | 200 | 0 20180212080800 | 44 | REQUEST | 127.0.0.1 |匿名| GET | / UI /家/插件/插件| HTTP / 1.1 | 200 | 0 20180212080800 | 23 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/images/userguide.119.svg | HTTP / 1.1 | 200 | 0 20180212080800 | 7 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/images/blogs.119.svg | HTTP / 1.1 | 200 | 0 20180212080800 | 27 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/images/support.119.svg | HTTP / 1.1 | 200 | 0 20180212080800 | 39 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/images/stackoverflow.119.svg | HTTP / 1.1 | 200 | 0 20180212080800 | 54 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/images/webinar.119.svg | HTTP / 1.1 | 200 | 0 20180212080800 | 51 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/images/rest_api.119.svg | HTTP / 1.1 | 200 | 0 20180212080801 | 254 | REQUEST | 127.0.0.1 |匿名| GET | / UI /家/插件/ latestBuilds | HTTP / 1.1 | 200 | 0 20180212080801 | 684 |请求| 127.0.0.1 |匿名|获取| / UI /家庭/空间/ mostDownloaded | HTTP / 1.1 | 200 | 0 20180212080801 | 1091 | REQUEST | 127.0.0.1 |匿名| POST | / UI /树形浏览器| HTTP / 1.1 | 200 | 15 20180212080818 | 24 | REQUEST | 127.0.0.1 |匿名| POST | / UI / AUTH / loginRelatedData | HTTP / 1.1 | 200 | 0 20180212080818 | 28 | REQUEST | 127.0.0.1 |匿名| GET | / UI /的oauth2 / loginRequest | HTTP / 1.1 | 200 | 0 20180212080818 | 10 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/fonts/OpenSans/OpenSans-Semibold/OpenSans-Semibold-webfont.119.woff | HTTP / 1.1 | 200 | 0 20180212080819 | 14 | REQUEST | 127.0.0.1 |匿名| GET | /webapp/css/images/checkbox.119.png | HTTP / 1.1 | 200 | 0 20180212080821 | 621 | REQUEST | 127.0.0.1 |匿名| POST | / UI / AUTH /登录| HTTP / 1.1 | 200 | 53 20180212080821 | 6 | REQUEST | 127.0.0.1 |管理员| GET | / UI /家/插件/ artifactCount | HTTP / 1.1 | 200 | 0 20180212080822 | 214 | REQUEST | 127.0.0.1 |管理员| GET | / UI /初始启用/ initStatus | HTTP / 1.1 | 200 | 0 20180212080822 | 4 | REQUEST | 127.0.0.1 |管理员| GET | / UI / AUTH /屏幕/页脚| HTTP / 1.1 | 200 | 0 20180212080822 | 4 |请求| 127.0.0.1 |管理|获取| / UI /家庭/空间/资讯| HTTP / 1.1 | 200 | 0 20180212080822 | 5 | REQUEST | 127.0.0.1 |管理员| GET | / UI /家/插件/插件| HTTP / 1.1 | 200 | 0 20180212080822 | 223 | REQUEST | 127.0.0.1 |管理员| POST | / UI /树形浏览器| HTTP / 1.1 | 200 | 15 20180212080822 | 8 | REQUEST | 127.0.0.1 |管理员| GET | / UI /家/插件/ latestBuilds | HTTP / 1.1 | 200 | 0 20180212080822 | 176 | REQUEST | 127.0.0.1 |管理员| GET | / UI /家/插件/ mostDownloaded | HTTP / 1.1 | 200 | 0 20180212080825 | 14 | REQUEST | 127.0.0.1 |管理员| GET | /webapp/fonts/glyphicons-halflings-regular.119.woff | HTTP / 1.1 | 200 | 0 20180212080825 | 167 | REQUEST | 127.0.0.1 |管理员| POST | / UI /树形浏览器| HTTP / 1.1 | 200 | 15 20180212080826 | 44 | REQUEST | 127.0.0.1 |管理员| GET | /webapp/css/images/checkbox_checked.119.png | HTTP / 1.1 | 200 | 0 20180212080826 | 32 | REQUEST | 127.0.0.1 |管理员| GET | /webapp/images/32px.119.png | HTTP / 1.1 | 200 | 0 20180212080826 | 50 | REQUEST | 127.0.0.1 |管理员| POST | / UI /树形浏览器/ tabsAndActions | HTTP / 1.1 | 200 | 97 20180212080826 | 38 | REQUEST | 127.0.0.1 |管理员| POST | / UI / artifactactions /下载| HTTP / 1.1 | 200 | 29 20180212080826 | 67 | REQUEST | 127.0.0.1 |管理员| POST | / UI / artifactgeneral | HTTP / 1.1 | 200 | 62 20180212080826 | 10 | REQUEST | 127.0.0.1 |管理员| GET | / UI / AUTH / canAnnotate | HTTP / 1.1 | 200 | 0 20180212080827 | 4 | REQUEST | 127.0.0.1 |管理员| POST | / UI /树形浏览器/ tabsAndActions | HTTP / 1.1 | 200 | 95 20180212080827 | 4 | REQUEST | 127.0.0.1 |管理员| POST | / UI / artifactactions /下载| HTTP / 1.1 | 200 | 28 20180212080827 | 9 | REQUEST | 127.0.0.1 |管理员| POST | / UI / artifactgeneral | HTTP / 1.1 | 200 | 61 20180212080828 | 3 | REQUEST | 127.0.0.1 |管理员| GET | / UI / AUTH / canAnnotate | HTTP / 1.1 | 200 | 0 20180212080831 | 78 | REQUEST | 127.0.0.1 |管理员| GET | / UI / generalConfig | HTTP / 1.1 | 200 | 0 20180212080831 | 97 | REQUEST | 127.0.0.1 |管理员| GET | / UI / setMeUp | HTTP / 1.1 | 200 | 0 20180212080831 | 103 | REQUEST | 127.0.0.1 |管理员| GET | / UI / userApiKey | HTTP / 1.1 | 200 | 0 20180212080844 | 418 | REQUEST | 127.0.0.1 |匿名| GET | /api/gems/gems/specs.4.8.gz | HTTP / 1.1 | 200 | 3849020 20180212080957 | 160 | REQUEST | 127.0.0.1 |管理员| POST | / UI /树形浏览器| HTTP / 1.1 | 200 | 98 20180212080959 | 142 | REQUEST | 127.0.0.1 |管理员| POST | / UI /树形浏览器| HTTP / 1.1 | 200 | 102 20180212081134 | 2 | REQUEST | 127.0.0.1 |匿名| HEAD | / API /宝石/宝石/ API / V1 /依赖性| HTTP / 1.1 | 200 | 0 20180212081141 | 6896 | REQUEST | 127.0.0.1 |匿名| GET | / API /宝石/宝石/ API / V1 /依赖性| HTTP / 1.1 | 200 | 0 20180212081141 | 70 | REQUEST | 127.0.0.1 |匿名| GET | /api/gems/gems/latest_specs.4.8.gz | HTTP / 1.1 | 200 | 1284774