Re install licence fail issue

Read 11162 times
Well looks like I have issues yet again testing V 3 Beta 1  :'(

I have re-issued my V2 licence twice which have both failed while trying to install.

Have noted the below not running when checking status after initial installation finishes with no key as expected:

/etc/init.d/centovacast status

cc-web: running (pid 26474)
cc-control: not running
cc-appserver: running (pid 26067)
cc-ftpd: not running
cc-imaged: not running

Also did a restart to try and pull in my licence key resulting in the below output?

 /etc/init.d/centovacast restart

Stopping Centova Cast: cc-ftpd (not running) cc-web cc-appserver cc-control (not running) cc-imaged
Starting Centova Cast: cc-control License validation failed; terminating; log:
   Could not open license key file /usr/local/centovacast//etc/license/license.key

Trying to update license (this may take a minute or two) ...
License update failed at http://license1.centova.com/license/ (ERR VIOLATION): Unlicensed script path; trying next server ...
License update failed at http://license2.centova.com/license/ (ERR VIOLATION): Unlicensed script path; trying next server ...
License update failed at http://license3.centova.com/license/ (ERR VIOLATION): Unlicensed script path; trying next server ...
No more licensing servers to try
Failed to obtain license update from any licensing server; license update failed
License update failed; product not licensed

   Trying to update license (this may take a minute or two) ...
   License update failed at http://license1.centova.com/license/ (ERR VIOLATION): Unlicensed script path; trying next server ...
   License update failed at http://license2.centova.com/license/ (ERR VIOLATION): Unlicensed script path; trying next server ...
   License update failed at http://license3.centova.com/license/ (ERR VIOLATION): Unlicensed script path; trying next server ...
   No more licensing servers to try
   Failed to obtain license update from any licensing server; license update failed
   License update failed; product not licensed

- failed



Now I originally fixed the above by re-issuing my licence but this time  have not been successful so wondered if there were issues due to the recent licensing servers being offline?

A further point is when checking my client CP it shows the following after my licence re-issue:

License History
Domain name / Path    IP / MAC address    Issued    Invalidated
                                                                     No        May 04, 2011 12:41 PM

My previous licences still show as expected below the above so has anyone got any bright ideas what I could try next please.  ;)


PS:

I have done my install and un-installed as per below

**** INSTALL BETA V3 CENTOVACAST ****

wget -O install.sh install.centova.com/LICENCEKEY
chmod a+x ./install.sh


./install.sh --shoutcast-all --icecast-all --channel=unstable



**** UNINSTALL BETA V3 CENTOVACAST ****

/etc/init.d/centovacast stop
rm -f /etc/cron.d/centovacast /etc/init.d/centovacast /etc/centovacast.conf
rm -rf /usr/local/centovacast
userdel centovacast
userdel ccuser

*** MYSQL ***

Remove database entries


Then tried the above to reinstall with no luck  :'(
Last Edit: May 04, 2011, 02:15:20 pm by Mark Carney
OK in desperation of not having my V2 tar file available as per my post elsewhere in this forum I have tried AGAIN to install Beta 3, it still refuses to licence even though I have reissued my license within my Client Area.

Doing a restart to try and pull in my licence key resulting in the below output?

 /etc/init.d/centovacast restart

Stopping Centova Cast: cc-ftpd (not running) cc-web cc-appserver cc-control (not running) cc-imaged
Starting Centova Cast: cc-control License validation failed; terminating; log:
   Could not open license key file /usr/local/centovacast//etc/license/license.key

Now note the double // between centovacast//etc now that's wrong for a start and as expected there is no license.key file within the license directory.


Here is the fill output:

# /etc/init.d/centovacast restart
Stopping Centova Cast: cc-ftpd (not running) cc-web cc-appserver cc-control (not running) cc-imaged
Starting Centova Cast: cc-control License validation failed; terminating; log:
   Could not open license key file /usr/local/centovacast//etc/license/license.key

Trying to update license (this may take a minute or two) ...
License update failed at http://license1.centova.com/license/ (ERR INTERR): Internal error; reissue failed (Key generation failed); trying next server ...
License update failed at http://license2.centova.com/license/ (ERR VIOLATION): Unlicensed script path; trying next server ...
HTTP request to http://license3.centova.com/license/ failed (-3/Connect failed: Connection refused), trying next server ...
No more licensing servers to try
Failed to obtain license update from any licensing server; license update failed
License update failed; product not licensed

   Trying to update license (this may take a minute or two) ...
   License update failed at http://license1.centova.com/license/ (ERR INTERR): Internal error; reissue failed (Key generation failed); trying next server ...
   License update failed at http://license2.centova.com/license/ (ERR VIOLATION): Unlicensed script path; trying next server ...
   HTTP request to http://license3.centova.com/license/ failed (-3/Connect failed: Connection refused), trying next server ...
   No more licensing servers to try
   Failed to obtain license update from any licensing server; license update failed
   License update failed; product not licensed

- failed


Anyone got any bright ideas what to try, feel like me and CentovaCast are just not getting on this weekend.  :'(
Last Edit: May 15, 2011, 03:30:03 am by Mark Carney
OK, nw I'm not sure 100% on this one but if you open the file /usr/local/centovacast/centovacast there are various paths in there for starting and stopping the processes.

If you look at this bit:

# start the control daemon
start_ccd() {
   if [ $HAS_CCD -gt 0 ]; then
      echo -n "cc-control "

      if [ -f $HOMEPATH/var/run/cc-control.pid ]; then
         CCDPID=$(cat $HOMEPATH/var/run/cc-control.pid)
         [ ! -z "$CCDPID" -a -d "/proc/$CCDPID" ] && echo -n "(already running) " && return 0
         rm -f $HOMEPATH/var/run/cc-control.pid
      fi

      RPC_PORT=""
      RPC_MIN_WORKERS=3
      RPC_MAX_WORKERS=15
      . $HOMEPATH/etc/cc-control.conf
      [ -z "$RPC_PORT" ] && echo "$HOMEPATH/etc/cc-control.conf is missing or damaged, cannot start cc-control" && return 1
      LICENSE_KEY=""
      . $HOMEPATH/etc/license.conf
      [ -z "$LICENSE_KEY" ] && echo "$HOMEPATH/etc/license.conf is missing or damaged, cannot start cc-control" && return 1

      # if this server is running the Centova Cast web interface, we must disable the RPC server's web interface
      #      [ $HAS_WEB -gt 0 ] && WEB_PORT=0


Make sure your paths around the license key are the same as above and also check that your correct license key is stored in etc/license.conf

Hi again,

RE: Make sure your paths around the license key are the same as above and also check that your correct license key is stored in etc/license.conf

This has my correct key however the licence folder itself is empty is that correct?

I edited yesterday the files as per my previous post regarding the file /usr/local/centovacast//etc/license/license.key with its two // and removed one but this made no difference so reinstated it for safety.  ;)

Will keep trying.
Just checked my files against your above and all seems OK to me.  :'(

# start the control daemon
start_ccd() {
   if [ $HAS_CCD -gt 0 ]; then
      echo -n "cc-control "

      if [ -f $HOMEPATH/var/run/cc-control.pid ]; then
         CCDPID=$(cat $HOMEPATH/var/run/cc-control.pid)
         [ ! -z "$CCDPID" -a -d "/proc/$CCDPID" ] && echo -n "(already running) " && return 0
         rm -f $HOMEPATH/var/run/cc-control.pid
      fi

      RPC_PORT=""
      RPC_MIN_WORKERS=3
      RPC_MAX_WORKERS=15
      . $HOMEPATH/etc/cc-control.conf
      [ -z "$RPC_PORT" ] && echo "$HOMEPATH/etc/cc-control.conf is missing or damaged, cannot start cc-control" && return 1
      LICENSE_KEY=""
      . $HOMEPATH/etc/license.conf
      [ -z "$LICENSE_KEY" ] && echo "$HOMEPATH/etc/license.conf is missing or damaged, cannot start cc-control" && return 1

      # if this server is running the Centova Cast web interface, we must disable the RPC server's web interface
      #      [ $HAS_WEB -gt 0 ] && WEB_PORT=0

      if [ "$RPC_CHROOT" == "0" ]; then
         NOCHROOT="-o"
      else
         NOCHROOT=""
      fi
      
      DEBUGPREFIX=""
      DEBUGARGS=""
      if [ "$1" == "gdb" ]; then
         DEBUGARGS="-f -z -vvvvv"
         DEBUGPREFIX="gdb --args"
      elif [ "$1" == "debug" ]; then
         DEBUGARGS="-f -vvvvv"
      elif [ "$1" == "strace" ]; then
         DEBUGARGS="-f -vvvvv"
         DEBUGPREFIX="strace"
      elif [ "$1" == "fg" ]; then
         DEBUGARGS="-f"
      fi

      $DEBUGPREFIX $HOMEPATH/sbin/cc-control \
      -p $RPC_PORT -b $RPC_ADDR -c $RPC_CONN_LIMIT -w $RPC_MIN_WORKERS -x $RPC_MAX_WORKERS -u ccuser -g ccuser \
      -r $HOMEPATH \
      -m /var/log/control/master.log \
      -l $LICENSE_KEY \
      -s /var/run/cc-control.pid $NOCHROOT $DEBUGARGS
      [ $? -gt 0 ] && echo "- failed" && return 1
   fi
   return 0
}

# stop the control daemon
stop_ccd() {
   if [ $HAS_CCD -gt 0 ]; then
      echo -n "cc-control "
      if [ -f $HOMEPATH/var/run/cc-control.pid ]; then
         kill $(cat $HOMEPATH/var/run/cc-control.pid)
         rm -f $HOMEPATH/var/run/cc-control.pid
      else
         echo -n "(not running) "
      fi
   fi
   return 0
}

# start the web interface daemon
start_web() {
   if [ $HAS_WEB -gt 0 ]; then
      echo -n "cc-web "

      if [ -f $HOMEPATH/var/run/cc-web.pid ]; then
         WEBPID=$(cat $HOMEPATH/var/run/cc-web.pid)
         [ ! -z "$WEBPID" -a -d "/proc/$WEBPID" ] && echo -n "(already running) " && return 0
         rm -f $HOMEPATH/var/run/cc-web.pid
      fi

      $HOMEPATH/sbin/cc-web
      [ $? -gt 0 ] && echo "- failed" && return 1
   fi
   return 0
}

# stop the web interface daemon
stop_web() {
   if [ $HAS_WEB -gt 0 ]; then
      echo -n "cc-web "
      if [ -f $HOMEPATH/var/run/cc-web.pid ]; then
         kill $(cat $HOMEPATH/var/run/cc-web.pid)
         rm -f $HOMEPATH/var/run/cc-web.pid
      else
         echo -n "(not running) "
      fi
   fi
   return 0
}

# start the application server daemon
start_app() {
   if [ $HAS_APP -gt 0 ]; then
      echo -n "cc-appserver "

cat <<- "EOF" | $HOMEPATH/lib/cc-int -- $HOMEPATH/etc/centovacast.conf > $HOMEPATH/system/autoconfig.php
<?php echo '<'."?php // auto-generated from $HOMEPATH/etc/centovacast.conf -- DO NOT EDIT\n".preg_replace(
array('/^\#.*?$/m','/=true/i','/=false/i','/\n+/','/^([A-Z0-9_]+)=([0-9]+)$/m','/^([A-Z0-9_]+)=\'?(.*?)\'?\s*$/m'),
array("",'=1','=0',"\n",'define(\'$1\',$2);','define(\'$1\',\'$2\');'),
file_get_contents($_SERVER['argv'][1]));?>
EOF
      chmod 0640 $HOMEPATH/system/autoconfig.php
      chown centovacast.centovacast $HOMEPATH/system/autoconfig.php

      if [ -f $HOMEPATH/var/run/cc-appserver.pid ]; then
         APPPID=$(cat $HOMEPATH/var/run/cc-appserver.pid)
         [ ! -z "$APPPID" -a -d "/proc/$APPPID" ] && echo -n "(already running) " && return 0
         rm -f $HOMEPATH/var/run/cc-appserver.pid
      fi

      $HOMEPATH/sbin/clear_web_cache >/dev/null 2>&1

      $HOMEPATH/sbin/cc-appserver
      [ $? -gt 0 ] && echo "- failed" && return 1
   fi
   return 0
}

# stop the application server daemon
stop_app() {
   QUIET="$1"
   if [ $HAS_APP -gt 0 ]; then
      [ -z "$QUIET" ] && echo -n "cc-appserver "
      if [ -f $HOMEPATH/var/run/cc-appserver.pid ]; then
         kill $(cat $HOMEPATH/var/run/cc-appserver.pid)
         rm -f $HOMEPATH/var/run/cc-appserver.pid
      else
         [ -z "$QUIET" ] && echo -n "(not running) "
      fi
   fi
   return 0
}