Centova Cast v3.0.0 Release Candidate 2 update restart failed

Read 16029 times
Hi Steve,

I have done the RC2 upgrade today and hit a problem shown in the snip below causing the whole service to be down any idea to get it back up please.  :'(

*** SNIP START ***

Upgrading database ...
OK
Installation successful
Starting Centova Cast application server service...
Attempting to start app: cc-appserver
Re-starting Centova Cast web service ...
Attempting to start web: cc-web nginx: [emerg] SSL_CTX_use_certificate_chain_file("/usr/local/centovacast/etc/ssl/certificate.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib)
- failed

Checking Centova Cast Image Daemon ...
Not updated, skipping


Checking Centova Cast Web Server ...
Downloading Centova Cast Web Server ...

Saving to: â/usr/local/centovacast/var/tmp/update/cc-web-latest.tar.gzâ         Verifying archive integrity ...
Unpacking archive ...

Installing Centova Cast Web Server ...

Stopping any existing Centova Cast web service ...
Attempting to stop web: cc-web (not running)
Creating self-signed SSL certificate for MY SERVER IP ADDRESS  ...
Generating private key ...
Generating certificate ...
Installation successful
Starting Centova Cast web service...
Attempting to start web: cc-web nginx: [emerg] unknown "startpagedomain" variable
- failed

Checking Centova Cast Control Daemon ...
Downloading Centova Cast Control Daemon ...

Verifying archive integrity ...
Unpacking archive ...

Installing Centova Cast Control Daemon ...

cp: cannot stat `cc-control/etc/cc-media.conf': No such file or directory
Stopping Centova Cast: cc-ftpd (not running) cc-web (not running) cc-appserver cc-control cc-imaged
Update successful
Reactivating Centova Cast ...
Starting Centova Cast: cc-control cc-appserver cc-web nginx: [emerg] unknown "startpagedomain" variable
- failed
cc-control

Checking Centova Cast FTP Server ...
Downloading Centova Cast FTP Server ...

Saving to: â/usr/local/centovacast/var/tmp/update/cc-ftpd-latest.tar.gzâ        Verifying archive integrity ...
Unpacking archive ...

Installing Centova Cast FTP Server ...

Stopping any existing Centova Cast FTP service ...
Attempting to stop ftp: cc-ftpd (not running)
Installation successful
Starting Centova Cast FTP service...
Attempting to start ftp: cc-ftpd

Checking IceCast ...
Not updated, skipping


Checking ices-cc ...
Not updated, skipping


Checking sc_trans v2.x ...
Not updated, skipping


Checking shoutcast1 ...
Not updated, skipping


Checking shoutcast2 ...
Not updated, skipping

# /etc/init.d/centovacast status
cc-web: not running
cc-control: not running
cc-appserver: not running
cc-ftpd: not running
cc-imaged: not running
# /etc/init.d/centovacast restart
Stopping Centova Cast: cc-ftpd (not running) cc-web (not running) cc-appserver (not running) cc-control (not running) cc-imaged (not running)
Starting Centova Cast: cc-control cc-appserver cc-web nginx: [emerg] unknown "startpagedomain" variable
- failed
cc-control

*** END SNIP ***
For the quick fix, you could refer to the other thread about this exact same issue.  Out of curiosity though, what is the content of /usr/local/centovacast/etc/cc-panel.conf on your server?  It should already contain the necessary directives.
Hi Steve,

It is definitely missing  cc-media.conf

Regarding cc-panel.conf while there it is empty 0 B
Thanks for the post, stupidly forgot to look in the bug section, how stupid I look  ::)

Added the default cc-panel.conf information as per your post and restarted:

# /etc/init.d/centovacast restart
Stopping Centova Cast: cc-ftpd (not running) cc-web (not running) cc-appserver (not running) cc-control (not running) cc-imaged (not running)
Starting Centova Cast: cc-control cc-appserver cc-web cc-ftpd cc-imaged

# /etc/init.d/centovacast status
cc-web: running (pid 28348)
cc-control: running (pid 28326)
cc-appserver: running (pid 28343)
cc-ftpd: not running
cc-imaged: running (pid 28360)

So many thanks for the info and sorry for not opening my own eyes first BEFORE posting!  :o
It is definitely missing  cc-media.conf
No such file should exist, so that's OK, but...

Regarding cc-panel.conf while there it is empty 0 B
Thanks, that explains why everyone's running into this.  I'm having trouble figuring out why it's 0 bytes -- upgrades worked fine on all of our staging servers -- but at least it's a starting point for us to investigate.
Thanks again, Mark -- we've found the cause of the 0-byte issue (a 2-character typo) and we've pushed out a new build so future upgraders won't encounter this.
Great news Steve,

Well done, nothing like squashing the odd bug to make your day feel better  ;D
Well guess what -- future upgrades are encountering this
My Auto DJ
Orlando, FL USA
Quality SHOUTcast Hosting http://myautodj.com
SHOUTcast Widgets http://shoutcastwidgets.com