Discussion:
installation problems
Tom Piasecki
2012-09-11 17:50:47 UTC
Permalink
Tom Piasecki [http://community.zenoss.org/people/tpiasecki] created the discussion

"installation problems"

To view the discussion, visit: http://community.zenoss.org/message/68516#68516

--------------------------------------------------------------
Hello,

I am trying to install Zenoss Core 4.2 on a fresh CentOS 6.3 minimal install. I used the auto install script and it works fine until it gets to this message:

"100%[================================================================>] 18,620,065 357K/s in 57s
2012-09-10 15:45:21 (322 KB/s) - âzenoss-core-zenpacks-4.2.0.el6.x86_64.rpmâ
Auto-detecting most recent MySQL Community release"

After about a minute it will just go back to the command prompt. I have tried a few times on 2 seperate fresh installs and get stuck here every time. Any one have any suggestions because I am stumped?

I also tried the manual install but it errors out on RabbitMQ installation, but I will leave that for a seperate discussion if I cannot get the script to work.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/68516#68516]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jshardlow
2012-09-14 12:21:55 UTC
Permalink
jshardlow [http://community.zenoss.org/people/jshardlow] created the discussion

"Re: installation problems"

To view the discussion, visit: http://community.zenoss.org/message/68572#68572

--------------------------------------------------------------
At that point in the auto deploy script it is trying to check for the latest version of MySQL that is available from ftp://mirror.anl.gov/pub/mysql/Downloads/MySQL-5.5/ ftp://mirror.anl.gov/pub/mysql/Downloads/MySQL-5.5/ . Though if it fails I would expect some sort of error message.

If you've got that far in the script, then it should have already aquired the latest Zenoss RPMs which proves that your internet/web connectivity is OK.

It might be a good idea to turn on debugging in the script to see if it can tell us why it's failing. Could you change the top of the auto deploy script to the following (add the bit in red) and post the output?

#!/bin/bash
set -x
####################################################
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/68572#68572]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Tom Piasecki
2012-09-14 18:17:29 UTC
Permalink
Tom Piasecki [http://community.zenoss.org/people/tpiasecki] created the discussion

"Re: installation problems"

To view the discussion, visit: http://community.zenoss.org/message/68595#68595

--------------------------------------------------------------
Thanks for the reply. Here's the output:

100%[=========================================>] 18,620,065  65.4K/s   in 5m 53s


2012-09-14 13:59:22 (51.5 KB/s) - âzenoss-core-zenpacks-4.2.0.el6.x86_64.rpmâ


+ '[' 0 -ne 0 ']'
++ rpm -qa 'gpg-pubkey*'
++ grep -c aa5a1ad7-4829c08a
+ '[' 1 -eq 0 ']'
+ echo 'Auto-detecting most recent MySQL Community release'
Auto-detecting most recent MySQL Community release
+ try rm -f .listing
+ rm -f .listing
+ '[' 0 -ne 0 ']'
+ try wget --no-remove-listing ftp://mirror.anl.gov/pub/mysql/Downloads/MySQL-5.5/ ftp://mirror.anl.gov/pub/mysql/Downloads/MySQL-5.5/
[***@zenoss ~]#
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/68595#68595]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jshardlow
2012-09-17 08:40:38 UTC
Permalink
jshardlow [http://community.zenoss.org/people/jshardlow] created the discussion

"Re: installation problems"

To view the discussion, visit: http://community.zenoss.org/message/68589#68589

--------------------------------------------------------------
If the wget was failing, then the try proc/func should have exited with a message. Could you try a few more things to see if we can get to the bottom of this?

First make a slight tweak to the try proc/func, to see if it does exit with a zero exit code:

try() {
    set -x
    "$@"
    if [ $? -ne 0 ]; then
        echo "Command failure: $@"
        exit 1
    else
      echo "Command OK: $@ Code: $?"
    fi
}


And also make a change to the wget line, so that we can see any output:

try wget --no-remove-listing $mysql_ftp_mirror


This is what it the command output looks like from the command like on one of my boxes (with a few tweaks for security reasons), so hopefully you should see something similar:

wget -d --no-remove-listing ftp://mirror.anl.gov/pub/mysql/Downloads/MySQL-5.5/
Setting --remove-listing (removelisting) to 0
DEBUG output created by Wget 1.12 on linux-gnu.

--2012-09-17 09:26:26--  ftp://mirror.anl.gov/pub/mysql/Downloads/MySQL-5.5/
Resolving inetproxy... 1.2.3.4
Caching inetproxy => 1.2.3.4
Connecting to inetproxy|1.2.3.4|:3128... connected.
Created socket 3.
Releasing 0x0000000001810ac0 (new refcount 1).

---request begin---
GET ftp://mirror.anl.gov/pub/mysql/Downloads/MySQL-5.5/ HTTP/1.0
User-Agent: Wget/1.12 (linux-gnu)
Accept: */*
Host: mirror.anl.gov

---request end---
Proxy request sent, awaiting response...
---response begin---
HTTP/1.0 200 Gatewaying
Server: squid/2.7.STABLE4
Date: Mon, 17 Sep 2012 08:26:28 GMT
Content-Type: text/html
X-Cache: MISS from proxy01
Via: 1.0 proxy01:3128 (squid/2.7.STABLE4)
Connection: close

---response end---
200 Gatewaying
Length: unspecified [text/html]
Saving to: “index.html.2”

    [  <=>                                  ] 197,113      508K/s   in 0.4s   

Closed fd 3
2012-09-17 09:26:28 (508 KB/s) - “index.html.2â€&#157; saved [197113]



One thing that has crossed my mind is that the wget command is being run with the --no-remove-listing option which is meant to keep a .listing file around which I believe should store the contents of the remote dir. Now a side effect of this is that if you are running behind a proxy (as I do) then you may not get the .listing file. From looking at the script if a .listing exists then it will run some commands against it. If it isn't there then I'd expect the script to continue further.

Out of interest, is the box in question sitting behind a proxy?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/68589#68589]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Tom Piasecki
2012-09-17 14:01:35 UTC
Permalink
Tom Piasecki [http://community.zenoss.org/people/tpiasecki] created the discussion

"Re: installation problems"

To view the discussion, visit: http://community.zenoss.org/message/68621#68621

--------------------------------------------------------------
Thanks for your help. I figured it out after I posted my last response. It was a dumb mistake on my part. Firewall was blocking FTP. I didn't realize it until I saw the wget command trying to use FTP to download that file.

Thank you for your time, you have been very helpful.

-Tom
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/68621#68621]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...