Starting centova error after update !!!

Read 13399 times
Code: [Select]

Starting Centova Cast: cc-control cc-appserver cc-web nginx: [emerg] unknown "startpagedomain" variable



EDIT

Well few thing after update i had to do by myself

1. Comment lines 213 to 215 in cc-interface.conf

Code: [Select]

#if ($basedomain = $startpagedomain) {
# rewrite ^/?$ /start/$subdomain last;
#}


2. add line "listen 2199 default;" in cc-interface.conf

Code: [Select]

......

server {

# commonly-updated configuration options are located in cc-panel.conf which is not
# overwritten during upgrades
include cc-panel.conf;

listen 2199 default;

#ssl_certificate /usr/local/centovacast/etc/ssl/certificate.pem;
#ssl_certificate_key /usr/local/centovacast/etc/ssl/private.key;

root /usr/local/centovacast/web;

# do not modify this; this is automatically overwritten (at startup) with the value
# of UPLOAD_SIZE_LIMIT in etc/centovacast.conf
client_max_body_size 116M;

error_page 404 /notfound.html;
error_page 500 502 503 504 /error.html;
error_page 497 = $request_uri;
.........

Last Edit: January 09, 2013, 02:34:38 pm by Headshaker
Thank you for this quick fix!
Centovacast v3.0.0rc2 - Shoutcast 2+ - Debian 6 64Bit (dedicated server)
The Fix works fine, but in my case lines were 211 to 213.
Code: [Select]
Starting Centova Cast: cc-control cc-appserver cc-web nginx: [emerg] unknown "startpagedomain" variable

Hmm, I'm really not sure why you're only encountering this now -- this goes back to the cc-panel.conf change we made a couple of builds ago, which I believe you had problems with at the time and had to manually create it. $startpagedomain should be defined in /usr/local/centovacast/etc/cc-panel.conf.  Here's what the default cc-panel.conf looks like:

Code: [Select]
# =============================================================================
#
# Centova Cast - Copyright 2010-2012, Centova Technologies Inc.
# Web Interface Local Configuration File
#
# =============================================================================
#
# WARNING:
# These settings normally should not need to be modified except as
# instructed by Centova Technologies.
#
# Problems caused as a result of modification of this file are not covered
# under your Centova Cast support agreement.  Should you require technical
# support as a result of modifying this file, it will be billed at Centova
# Technologies' hourly professional services rate.
#

# PORT NUMBER / INTERFACE

# if you prefer to use an alternate port for your Centova Cast web interface, change
# the port number below, but make sure you update MASTER_PORT in etc/cc-control.conf too
#
# to bind to a specific interface, use ip:port (eg: listen 10.2.3.4:2199 default ssl)
# and update MASTER_ADDR in etc/cc-control.conf as well
#
# note that this port will serve both SSL (https://) and non-SSL (http://) requests
listen                                  2199 default ssl;

# HOSTNAMES

# if you wish to use start page urls in the format http://username.yourdomain.com (instead of the
# standard http://yourdomain.com/start/username) you can specify yourdomain.com here and configure
# wildcard dns for *.yourdomain.com to point to your Centova Cast web interface server's IP address
set $startpagedomain    centovacast;

# you can specify the hostname for your web interface here, although it's usually not needed
server_name                             centovacast;



1. Comment lines 213 to 215 in cc-interface.conf

Code: [Select]

#if ($basedomain = $startpagedomain) {
# rewrite ^/?$ /start/$subdomain last;
#}

This will work for now, but will be overwritten the next time you upgrade so it's probably not the best solution.

2. add line "listen 2199 default;" in cc-interface.conf
That should not be necessary -- it should already be configured in cc-panel.conf (see the example above for what it should look like).  And also, it should be "listen 2199 ssl;" not "listen 2199 default;".

Remember that (per my earlier discussion with you) we changed it to support HTTP and HTTPS on the same port in this build, so SSL should always be turned on in the cc-panel.conf file and you can always access the web interface at http://foo:2199 or https://foo:2199 now.
It was the same error for me.
After the upgrade CC3 stop to work.

Starting Centova Cast: cc-control cc-appserver cc-web nginx: [emerg] unknown "startpagedomain" variable

I try the fix of Headshaker and now it works.

What happen on next upgrade?

my CC3 is on a debian squeeze.
Newradio Streaming & Radio Tools
http://www.newradio.it
I try the fix of Headshaker and now it works.

What happen on next upgrade?
As I said above, the "fix" Headshaker suggested will break again after the next update.  If you fix cc-panel.conf per my message, it'll be fine after the next update.
Thanks all, this issue has been fixed for future upgrades, per this post.

For those of you who were affectecd by this issue before this new build was released, please fix it by installing the updated /usr/local/centovacast/etc/cc-panel.conf I posted above.
All done and fully working.

Thanks !