ControlTier installation help

30 views
Skip to first unread message

Sriharsha Setty

unread,
Nov 7, 2010, 1:47:49 PM11/7/10
to ControlTier
Hello,

I have been trying to install the latest version of ControlTier (v.
3.6) on Ubuntu 10.04. I am using the zip installer. While install.sh
reports a successful install, I haven't been successful in getting to
run ControlTier. Jetty reported an error about ctl.base not being
set.

$CTIER_ROOT/ctlcenter/ctlcenter-config.properties had the correct
CTL_ROOT i.e. ctl.base=/home/harsha/ctierroot/ctl

I was asked on the IRC channel to set JAVA_OPTIONS="$JAVA_OPTIONS -
Dctl.base=/home/harsha/ctierroot/ctl" (which is my CTL_ROOT), but it
did not help.

The entire log file is here for your perusal.
http://paste.pocoo.org/show/287333/

Your help will be appreciated.

Thanks,
/harsha




Anthony Shortland

unread,
Nov 7, 2010, 3:42:42 PM11/7/10
to contr...@googlegroups.com
Hi Harsha,

Have you checked you're environment setup?

The installer should have generated a .ctierrc file like the following:

Anthonys-MacBook-Pro-2:~ anthony$ cat ~/.ctierrc
# this file was generated by ControlTier installer.

export CTIER_ROOT=/Users/anthony/ctier

export CTL_HOME=/Users/anthony/ctier/pkgs/ctl-3.5.4
if [ -z "$CTL_BASE" ] ; then
  export CTL_BASE=/Users/anthony/ctier/ctl
fi

# Server settings

export JETTY_HOME=/Users/anthony/ctier/pkgs/jetty-6.1.21
export JETTY_LOGS=/Users/anthony/ctier/pkgs/jetty-6.1.21/logs
export JETTY_RUN=$JETTY_LOGS
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
CONFIG_PROPS="-Dctlcenter.config.location=/Users/anthony/ctier/ctlcenter/ctlcenter-config.properties -Djava.security.auth.login.config=/Users/anthony/ctier/pkgs/jetty-6.1.21/etc/file-loginModule.conf"
export JAVA_OPTIONS="-XX:MaxPermSize=256m -Xmx1024m -Xms256m $CONFIG_PROPS"


export PATH=$CTL_HOME/bin:$JETTY_HOME/bin:$PATH

if [ -n "$BASH" -a -n "$CTL_BASE" -a -d "$CTL_BASE"/etc ] ; then
    . $CTL_HOME/etc/bash_completion.sh ;
    if [ -t 0 -a -z "$CTL_CLI_TERSE" ]
    then
      CTL_CLI_TERSE=true
      export CTL_CLI_TERSE
    fi
fi

... and you should have manually updated your .bashrc file as follows:

Anthonys-MacBook-Pro-2:~ anthony$ cat ~/.bashrc 
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# User specific aliases and functions

if [ -f ~/.ctierrc ]; then
        . ~/.ctierrc
else
        echo ~/.ctierrc not found 1>&2
fi

... make sure you re-login or source .bashrc before starting the ControlTier server (this is documented on the Wiki).

That said; what shell are you running? I recall that on Ubuntu /bin/sh might not be bash ...

Finally, what JAVA_HOME (and version of Java) did you use for the install? e.g. I have:

Anthonys-MacBook-Pro-2:~ anthony$ echo $JAVA_HOME 
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
Anthonys-MacBook-Pro-2:~ anthony$ $JAVA_HOME/bin/java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

Thanks,

Anthony.

--
You received this message because you are subscribed to the Google Groups "ControlTier" group.
To post to this group, send email to contr...@googlegroups.com
To unsubscribe from this group, send email to controltier...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/controltier?hl=en
http://wiki.controltier.org


Sriharsha Setty

unread,
Nov 8, 2010, 1:53:38 AM11/8/10
to contr...@googlegroups.com
Thanks Anthony,

I changed .bashrc to source .ctierrc, logged out, logged in again and I could successfully launch CTL Center.

/harsha
Reply all
Reply to author
Forward
0 new messages