Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

vmrc.install yields 'Error downloading VMRC: Net::HTTPServerException: 403 "Forbidden"' #62

Open
Logos01 opened this issue Oct 2, 2012 · 11 comments

Comments

@Logos01
Copy link

Logos01 commented Oct 2, 2012

There seems to be no manner of configuring http proxy settings to permit pulldown of the VMRC plugin/zipfile from within RVC.

@Logos01
Copy link
Author

Logos01 commented Oct 2, 2012

Either 'capturing' the http_proxy value from env or else allowing these values to be set as arguments would be ideal.

@cmhamill
Copy link

I don't believe this issue to be proxy-related; the following from lib/rvc/modules/vmrc.rb should be taking care of grabbing the http_proxy variable from the environment the way @Logos01 suggests above:

http = if ENV['http_proxy']
  proxy_uri = URI.parse(ENV['http_proxy'])
  proxy_user, proxy_pass = proxy_uri.userinfo.split(/:/) if proxy_uri.userinfo
  Net::HTTP::Proxy(proxy_uri.host, proxy_uri.port, proxy_user, proxy_pass)
else
  Net::HTTP
end

In fairness I'm not particularly familiar with ruby and this with Net:HTTP.

On the other hand, I get the Error downloading VMRC: Net::HTTPServerException: 403 "Forbidden" message when running vmrc.install in a clean installation without any proxy setting running around anywhere.

I'd also note that attempting to download vmware-vmrc-public-x86_64-linux-A.zip from the downloads page yields a 'File was not found message' at the top of the page.

Not sure what's up there.

Included below is the output of some curl commands with the follow-redirects flag on (-L)

$ curl -L -v http://github.com/downloads/vmware/rvc/vmware-vmrc-public-x86_64-linux-A.zip -o vmrc.zip
* About to connect() to github.com port 80 (#0)
*   Trying 207.97.227.239...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* connected
* Connected to github.com (207.97.227.239) port 80 (#0)
> GET /downloads/vmware/rvc/vmware-vmrc-public-x86_64-linux-A.zip HTTP/1.1
> User-Agent: curl/7.26.0
> Host: github.com
> Accept: */*
> 
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 301 Moved Permanently
< Server: nginx
< Date: Wed, 10 Oct 2012 14:09:58 GMT
< Content-Type: text/html
< Content-Length: 178
< Connection: close
< Location: https://github.com/downloads/vmware/rvc/vmware-vmrc-public-x86_64-linux-A.zip
< 
  0   178    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Closing connection #0
* Issue another request to this URL: 'https://github.com/downloads/vmware/rvc/vmware-vmrc-public-x86_64-linux-A.zip'
* About to connect() to github.com port 443 (#0)
*   Trying 207.97.227.239...
* connected
* Connected to github.com (207.97.227.239) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
} [data not shown]
* SSLv3, TLS handshake, Server hello (2):
{ [data not shown]
* SSLv3, TLS handshake, CERT (11):
{ [data not shown]
* SSLv3, TLS handshake, Server finished (14):
{ [data not shown]
* SSLv3, TLS handshake, Client key exchange (16):
} [data not shown]
* SSLv3, TLS change cipher, Client hello (1):
} [data not shown]
* SSLv3, TLS handshake, Finished (20):
} [data not shown]
* SSLv3, TLS change cipher, Client hello (1):
{ [data not shown]
* SSLv3, TLS handshake, Finished (20):
{ [data not shown]
* SSL connection using RC4-SHA
* Server certificate:
*    subject: businessCategory=Private Organization; 1.3.6.1.4.1.311.60.2.1.3=US; 1.3.6.1.4.1.311.60.2.1.2=California; serialNumber=C3268102; C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=github.com
*    start date: 2011-05-27 00:00:00 GMT
*    expire date: 2013-07-29 12:00:00 GMT
*    subjectAltName: github.com matched
*    issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert High Assurance EV CA-1
*    SSL certificate verify ok.
> GET /downloads/vmware/rvc/vmware-vmrc-public-x86_64-linux-A.zip HTTP/1.1
> User-Agent: curl/7.26.0
> Host: github.com
> Accept: */*
> 
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 302 Found
< Server: nginx
< Date: Wed, 10 Oct 2012 14:09:58 GMT
< Content-Type: text/html; charset=utf-8
< Connection: keep-alive
< Status: 302 Found
< Content-Length: 105
< X-Runtime: 108
< Set-Cookie: _gh_sess=BAh7BzoPc2Vzc2lvbl9pZCIlOWQ5YjY4NGQwZjcyMDZmOTgxZmYyN2YzN2IwZThmNWQiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7BjoKZXJyb3IiGEZpbGUgd2FzIG5vdCBmb3VuZC4GOgpAdXNlZHsGOwdG--e288fa1184d329306c2eead08c965df830be13d3; path=/; expires=Sat, 01-Jan-2022 00:00:00 GMT; secure; HttpOnly
< Strict-Transport-Security: max-age=2592000
< X-Frame-Options: deny
< Cache-Control: no-cache
< Location: https://github.com/vmware/rvc/downloads
< 
* Ignoring the response-body
{ [data not shown]
100   105  100   105    0     0    242      0 --:--:-- --:--:-- --:--:--   242
* Connection #0 to host github.com left intact
* Issue another request to this URL: 'https://github.com/vmware/rvc/downloads'
* Re-using existing connection! (#0) with host (nil)
* Connected to (nil) (207.97.227.239) port 443 (#0)
> GET /vmware/rvc/downloads HTTP/1.1
> User-Agent: curl/7.26.0
> Host: github.com
> Accept: */*
> 
* additional stuff not fine transfer.c:1037: 0 0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 200 OK
< Server: nginx
< Date: Wed, 10 Oct 2012 14:09:59 GMT
< Content-Type: text/html; charset=utf-8
< Connection: keep-alive
< Status: 200 OK
< Content-Length: 27313
< X-Runtime: 68
< Set-Cookie: _gh_sess=BAh7BzoQX2NzcmZfdG9rZW4iMUxvWWFWSTUxQlcyOEdlbVBud2o0Mm9DNmZwVXRzNXB3NHZWQWs2aXVIcms9Og9zZXNzaW9uX2lkIiU5NmJlYzNkNDE4MzI4Mzk0MGM5YjhmM2VjZDRjNWQzMQ%3D%3D--6fff779c93b66d1e49d13e8ffd395c41f01e2c6d; path=/; expires=Sat, 01-Jan-2022 00:00:00 GMT; secure; HttpOnly
< Strict-Transport-Security: max-age=2592000
< ETag: "f55063119fd95d4efdaa8847feec83af"
< X-Frame-Options: deny
< Cache-Control: private, max-age=0, must-revalidate
< 
{ [data not shown]
100 27313  100 27313    0     0  17520      0  0:00:01  0:00:01 --:--:-- 52829
* Connection #0 to host (nil) left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
} [data not shown]

The output that I end up getting out of this exchange is a copy of the rvc downloads page.

Using the url from within the vmrc.rb code:

$ curl -L -v http://cloud.github.com/downloads/vmware/rvc/vmware-vmrc-public-x86_64-linux-A.zip -o vmrc.xml
* About to connect() to cloud.github.com port 80 (#0)
*   Trying 54.240.160.44...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* connected
* Connected to cloud.github.com (54.240.160.44) port 80 (#0)
> GET /downloads/vmware/rvc/vmware-vmrc-public-x86_64-linux-A.zip HTTP/1.1
> User-Agent: curl/7.26.0
> Host: cloud.github.com
> Accept: */*
> 
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.0, assume close after body
< HTTP/1.0 403 Forbidden
< Content-Type: application/xml
< Content-Length: 231
* HTTP/1.0 connection set to keep alive!
< Connection: keep-alive
< x-amz-request-id: DC87EC8174524592
< x-amz-id-2: X7DWethfsCsuH1P9YHkTBC9HPFvQ4bw5IK9/73IAhW8t7HOtfhOKuCHECZw+VDv+
< Date: Wed, 10 Oct 2012 14:11:11 GMT
< Server: AmazonS3
< Age: 44
< X-Amz-Cf-Id: FhsHCHlT2vrSOKKyR8FblvzuEapbQSD0pmjBSWZV2eptI0kUeh27JA==
< Via: 1.0 bc581adeba2be7528b2b568a8b36dac6.cloudfront.net (CloudFront)
< X-Cache: Error from cloudfront
< 
{ [data not shown]
100   231  100   231    0     0   6746      0 --:--:-- --:--:-- --:--:-- 13588
* Connection #0 to host cloud.github.com left intact
* Closing connection #0

The output I get here is an xml document:

<?xml version="1.0" encoding="UTF-8"?>
<Error>
    <Code>AccessDenied</Code>
    <Message>Access Denied</Message>
    <RequestId>DC87EC8174524592</RequestId>
    <HostId>X7DWethfsCsuH1P9YHkTBC9HPFvQ4bw5IK9/73IAhW8t7HOtfhOKuCHECZw+VDv+</HostId>
</Error>

It would be very nice to have a functioning version of this file uploaded, as I'm having unrelated trouble getting vmrc to run from a manual install.

Thanks in advance.

@bararchy
Copy link

I too have this problem, "Error downloading VMRC: Net::HTTPServerException: 403 'Forbidden'"

@bararchy
Copy link

I wasted my whole day trying to figure this thing out, I'm used to vmware-vmrc working stand alone on my Ubuntu 12.04 (64bit), but now on Ubuntu 12.10(64bit) it isn't working and I'm forced to use rvc.

The only workaround I can think of is manually download the "vmware-vmrc-public-x86_64-linux-A.zip" file and put it where vrc (vmrc.install) wants it to be, thou I cant seem to find where it is...

@gionn
Copy link

gionn commented Oct 24, 2012

The problem is that the link is broken here on github: https://github.com/vmware/rvc/downloads
Did you see the 0 downloads?

@bararchy
Copy link

when trying to change the vmrc.rb script with a new download link I got an
error message.

On Wed, Oct 24, 2012 at 11:47 AM, Giovanni Toraldo <[email protected]

wrote:

The problem is that the link is broken here on github:
https://github.com/vmware/rvc/downloads
Did you see the 0 downloads?


Reply to this email directly or view it on GitHubhttps://github.com//issues/62#issuecomment-9733732.

Bar Hofesh | Safe-T
InfoSec Division
Infrastructure Administrator
www.safe-t.com

For IT It's MFT.For Everyone Else...It's Email™

Safe-T, is an innovative all-in-one secure Managed File Transfer (MFT)
solution that offers simple, secure, managed and compliant file transfer
both inside and outside the enterprise.

@cmhamill
Copy link

@bararchy: The trick of manually downloading the vmrc client might work, but I had trouble getting the 32-bit client to run on my 64-bit machine.

Also, I was able to change the download link in vmrc.rb, but I also had to change the associated md5 hash, the filename and pathname it looked for after unpacking, and the functions relating to determining the version to download.

Never quite got it to work.

@srinidhibs
Copy link

The 64bit download link is still broken! Can someone please fix the download URL / file?

@bararchy
Copy link

body p { margin-bottom: 0cm; margin-top: 0pt; }
I hope someone will, it's been broken for more
then a year.
On 11/27/2013 08:46 AM, B S Srinidhi
wrote:

  The 64bit download link is still broken! Can someone please fix
    the download URL / file?
  —
    Reply to this email directly or view
      it on GitHub.

-- body p { margin-bottom: 0cm; margin-top: 0pt; } 


            Bar HofeshInformation



            Security Architect
          Cell: +972.5.25446813
          Support: (IL)1700700139, 927-8-6490880Haatzmaut



          40 St, first floor.
          Beer-Sheva 
          84150, Israel

@abohne
Copy link

abohne commented Mar 28, 2014

Would be nice if the vmrc file was provided.

@bararchy
Copy link

Wow... this is opened for 2 years now, I guess this project is dead..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants