or Create a profile
28 Jan, 2013 05:28 PM
Because of internal firewalls we have to maintain an internal
mirror of rubygems. We do this with the rubygems-mirror gem plus
some patches from https://github.com/rubygems/rubygems-mirror/pull/11
(I am not even sure this gem it is still maintained). This is then
served via apache and it has been working without an issue for over
As of lately we have started getting 403 errors when using gem
for our gems mirror AND our internal gems. The issue seems to be
the gem command itself. I've tested this in multiple machines:
gem source -a http://atlas-wc-02p.sys.test.net:38253/gems/
Error fetching http://atlas-wc-02p.sys.test.net:38253/gems/:
bad response Forbidden 403 (http://atlas-wc-02p.sys.test.net:38253/gems/specs.4.8.gz)
tcpdump shows that the gem command is not even hitting the
server, further more a simple wget works fine:
--2013-01-28 17:21:14-- http://atlas-wc-02p.sys.test.net:38253/gems/specs.4.8.gz
Resolving atlas-wc-02p.sys.test.net... [CENSORED]
Connecting to atlas-wc-02p.sys.test.net|[CENSORED]|:38253...
HTTP request sent, awaiting response... 200 OK
Length: 1156171 (1.1M) [application/x-gzip]
Saving to: “specs.4.8.gz”
1,156,171 2.11M/s in 0.5s
2013-01-28 17:21:14 (2.11 MB/s) - “specs.4.8.gz”
The apache log files shows:
[CENSORED] - - [28/Jan/2013:17:21:17 +0000] "GET
/gems/specs.4.8.gz HTTP/1.0" 200 1156171 "-" "Wget/1.12
I've also tried with RestClient doing a get of the file and it
hits the webserver and downloads the file, same with wget but the
gem command never even talks to the server anymore.
Formatting help /
(switch to plain text)
(switch to Markdown)
You can attach files up to 10MB
If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.
A conversation has been started with the RubyGems.org staff to resolve this discussion.
This discussion is private.
Only you and RubyGems.org support staff can see and reply to it.
This discussion is public. Everyone can see and reply to it.
You can use Command ⌘ instead of Control ^ on Mac
Powered by Tender™.