Install script failing due to one of the URLs retrieved is returning an error page

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Install script failing due to one of the URLs retrieved is returning an error page

rlovtangen
Tried to install GVM on a new mac:
ronny@ronnyair:~$ curl -s get.gvmtool.net | bash
                                                                     
Thanks for using                                                     
                                                                     
_____/\\\\\\\\\\\\__/\\\________/\\\__/\\\\____________/\\\\_        
 ___/\\\//////////__\/\\\_______\/\\\_\/\\\\\\________/\\\\\\_       
  __/\\\_____________\//\\\______/\\\__\/\\\//\\\____/\\\//\\\_      
   _\/\\\____/\\\\\\\__\//\\\____/\\\___\/\\\\///\\\/\\\/_\/\\\_     
    _\/\\\___\/////\\\___\//\\\__/\\\____\/\\\__\///\\\/___\/\\\_    
     _\/\\\_______\/\\\____\//\\\/\\\_____\/\\\____\///_____\/\\\_   
      _\/\\\_______\/\\\_____\//\\\\\______\/\\\_____________\/\\\_  
       _\//\\\\\\\\\\\\/_______\//\\\_______\/\\\_____________\/\\\_ 
        __\////////////__________\///________\///______________\///__
                                                                     
                                       Will now attempt installing...
                                                                     
Looking for a previous installation of GVM...
Looking for unzip...
Looking for curl...
Looking for sed...
Installing gvm scripts...
Create distribution directories...
Create candidate directories...
Created for <!DOCTYPE html>
    <html>
    <head>
      <style type="text/css">
        html: /Users/ronny/.gvm/<!DOCTYPE html>
    <html>
    <head>
      <style type="text/css">
        html
Created for  body: /Users/ronny/.gvm/ body
Created for  iframe { margin: 0; padding: 0; height: 100%; }
        iframe { display: block; width: 100%; border: none; }
      </style>
    <title>Application Error</title>
    </head>
    <body>
      <iframe src="//s3.amazonaws.com/heroku_pages/error.html">
        <p>Application Error</p>
      </iframe>
    </body>
    </html>: /Users/ronny/.gvm/ iframe { margin: 0; padding: 0; height: 100%; }
        iframe { display: block; width: 100%; border: none; }
      </style>
    <title>Application Error</title>
    </head>
    <body>
      <iframe src="//s3.amazonaws.com/heroku_pages/error.html">
        <p>Application Error</p>
      </iframe>
    </body>
    </html>
Prime the config file...
Download script archive...
Extract script archive...
Install scripts...
Attempt update of bash profiles...
Updated existing /Users/ronny/.bash_profile
Updated existing /Users/ronny/.bashrc
Attempt update of zsh profiles...
Created and initialised /Users/ronny/.zshrc



All done!


Please open a new terminal, or run the following in the existing one:

    source "/Users/ronny/.gvm/bin/gvm-init.sh"

Then issue the following command:

    gvm help

Enjoy!!!

One of the URLs retrieved, obviously didn't return the content it was supposed to.
The result is some funny file names under ~/.gvm:
ronny@ronnyair:~/.gvm$ ls
 body
 iframe { margin: 0; padding: 0; height: 100%; }?        iframe { display: block; width: 100%; border: none; }?      <
<!DOCTYPE html>?    <html>?    <head>?      <style type="text
bin
etc
ext
src
tmp
var

and errors when opening new terminal windows:
Last login: Thu Nov  7 23:38:01 on ttys000
-bash: export: `<!DOCTYPE': not a valid identifier
-bash: export: `HTML>': not a valid identifier
-bash: export: `<HTML>': not a valid identifier
-bash: export: `<HEAD>': not a valid identifier
-bash: export: `<STYLE': not a valid identifier
-bash: export: `{': not a valid identifier
-bash: export: `MARGIN:': not a valid identifier
-bash: export: `0;': not a valid identifier
-bash: export: `PADDING:': not a valid identifier
-bash: export: `0;': not a valid identifier
-bash: export: `HEIGHT:': not a valid identifier
-bash: export: `100%;': not a valid identifier
-bash: export: `}': not a valid identifier
-bash: export: `{': not a valid identifier
-bash: export: `DISPLAY:': not a valid identifier
-bash: export: `BLOCK;': not a valid identifier
-bash: export: `WIDTH:': not a valid identifier
-bash: export: `100%;': not a valid identifier
-bash: export: `BORDER:': not a valid identifier
-bash: export: `NONE;': not a valid identifier
-bash: export: `}': not a valid identifier
-bash: export: `</STYLE>': not a valid identifier
-bash: export: `<TITLE>APPLICATION': not a valid identifier
-bash: export: `ERROR</TITLE>': not a valid identifier
-bash: export: `</HEAD>': not a valid identifier
-bash: export: `<BODY>': not a valid identifier
-bash: export: `<IFRAME': not a valid identifier
-bash: export: `<P>APPLICATION': not a valid identifier
-bash: export: `ERROR</P>': not a valid identifier
-bash: export: `</IFRAME>': not a valid identifier
-bash: export: `</BODY>': not a valid identifier
-bash: export: `</HTML>_HOME=/Users/ronny/.gvm/ iframe { margin: 0; padding: 0; height: 100%; }
        iframe { display: block; width: 100%; border: none; }
      </style>
    <title>Application Error</title>
    </head>
    <body>
      <iframe src="//s3.amazonaws.com/heroku_pages/error.html">
        <p>Application Error</p>
      </iframe>
    </body>
    </html>/current': not a valid identifier
ronny@ronnyair:~$ 
Reply | Threaded
Open this post in threaded view
|

Re: Install script failing due to one of the URLs retrieved is returning an error page

rlovtangen
It's due to http://api.gvmtool.net/candidates failing:
ronny@ronnymac:~$ curl http://api.gvmtool.net/candidates
<!DOCTYPE html>
    <html>
    <head>
      <style type="text/css">
        html, body, iframe { margin: 0; padding: 0; height: 100%; }
        iframe { display: block; width: 100%; border: none; }
      </style>
    <title>Application Error</title>
    </head>
    <body>
      <iframe src="//s3.amazonaws.com/heroku_pages/error.html">
        <p>Application Error</p>
      </iframe>
    </body>
    </html>

Tried from a US based Rackspace server as well, to rule out local network issues. Same problem there.
Reply | Threaded
Open this post in threaded view
|

Re: Install script failing due to one of the URLs retrieved is returning an error page

marco.vermeulen
Administrator
It should be working again now. Had some dodgy data in the database.
---
Marco Vermeulen
Reply | Threaded
Open this post in threaded view
|

Re: Install script failing due to one of the URLs retrieved is returning an error page

rlovtangen
Good!
Anyway, the install script should probably do some sanity check on the response from the api. At least check for response code 200. I know this happened to a college of mine a few days ago, and there's a recent thread on the user list as well where a user has the same problem (http://forum.gvmtool.net/Trouble-retrieving-GVM-tool-td46.html)
Should I file an issue?
Reply | Threaded
Open this post in threaded view
|

Re: Install script failing due to one of the URLs retrieved is returning an error page

marco.vermeulen
Administrator
Sure, sounds like a plan.

On Fri, 8 Nov, 2013 at 8:32 AM, rlovtangen [via GVM Forum] <[hidden email]> wrote:
Good!
Anyway, the install script should probably do some sanity check on the response from the api. At least check for response code 200. I know this happened to a college of mine a few days ago, and there's a recent thread on the user list as well where a user has the same problem (http://forum.gvmtool.net/Trouble-retrieving-GVM-tool-td46.html)
Should I file an issue?


If you reply to this email, your message will be added to the discussion below:
http://forum.gvmtool.net/Install-script-failing-due-to-one-of-the-URLs-retrieved-is-returning-an-error-page-tp65p69.html
To start a new topic under GVM Forum, email [hidden email]
To unsubscribe from Install script failing due to one of the URLs retrieved is returning an error page, click here.
NAML
---
Marco Vermeulen
Reply | Threaded
Open this post in threaded view
|

Re: Install script failing due to one of the URLs retrieved is returning an error page

rlovtangen