Centova Technologies Inc.

Products and Services

Centova Cast
Customer Support
Centova Technologies


NOTE: This article is for Centova Cast v3 only; an alternate version exists for Centova Cast v2.

Knowledge Base | Centova Cast v3 | Troubleshooting

Troubleshooting ices problems


I'm using ices/ices-cc and my source process occasionally exits unexpectedly. How can I diagnose this?


The first step in diagnosing the problem is reviewing the ices log for problems. To review the log, you can either log in via SSH and review the log file directly:


Or, log in to the affected account in Centova Cast, click Statistics->Logs, and then click AutoDJ log.

Search for the approximate date and time at which ices exited. In most cases, you will find detailed information in the log explaining why the exit occurred.

Nothing was recorded to the log

Most commonly that means you are not looking at the right section of the log. If you are 100% certain that nothing was recorded to the log at the time of the incident, then this indicates that ices crashed.

A crash in ices virtually always means that you're trying to play an MP3 which is badly corrupted. ices is quite good at recovering from bad MP3s, however in rare cases the occasional bad MP3 may cause it to crash.

The easiest way to diagnose this (and other ices problems) is to run ices manually, however this needs to be done in a particular way to avoid damaging your filesystem permissions. DO NOT ATTEMPT TO RUN ICES AS ROOT. Instead, please follow these steps:

  1. Login to the affected Centova Cast account.

  2. If you are having problems with ices crashing: Start the stream if it is not already started, then click Deactivate autoDJ in the lefthand column to stop ices.

    If you are having problems getting ices to run at all: Edit the stream settings, click the AutoDJ tab, and set the autoDJ status to "Disabled". Then start the stream.

  3. Login to your server as root via SSH and run the following commands:

    su - ccuser -s /bin/bash
    cd /usr/local/centovacast/var/vhosts/USERNAME/
    /usr/local/centovacast/ices/bin/ices -vvv -c etc/source.conf

    Replace USERNAME with the username of the appropriate Centova Cast account, of course.

  4. Leave the stream running (and your SSH terminal window open) until ices terminates. ices will continue displaying its progress (including the songs it is attempting to play) on your terminal.

If you are experiencing crashes, this will allow you to determine which MP3 was being played at the time of the crash, and possibly determine what other factors may have been involved in the crash.

When finished, simply type exit to return to the root account.

Common log and console output from ices

Certain entries in your source log or console output have specific meanings that may not be obvious at first glance. Please check your output for each of the below.

  • DEBUG: Script playlist handler serving: ============================= [Error: could not execute query]

    If you see a number of lines containing equals signs (=) and/or notices to the effect of could not execute query, this indicates that your MySQL server is reporting an error when Centova Cast attempts to retrieve the next track to play. This is a MySQL problem and has nothing to do with Centova Cast nor ices.

    Most commonly this either means your MySQL server is down, or that one of your tables is damaged. If you need to see the full error message, you can view /usr/local/centovacast/var/vhosts/USERNAME/etc/source.conf and look for a line that looks like:

    <Module>/usr/local/centovacast/bin/nextsong username 0123456789abcdef icesnext</Module>

    Copy the command inside the <Module> tags, add " -vvv" after the word "nextsong", and run it as a shell command, i.e. for the above example, you might run:

    /usr/local/centovacast/bin/nextsong -vvv username 0123456789abcdef icesnext

    This should output the complete MySQL error message in detail.

  • double free or corruption

    If you receive an error similar to the following:

    *** glibc detected *** /usr/local/centovacast/ices/bin/ices: double free or corruption

    ...this typically means one of a few things:

    1. Your streaming server has reached its source limit. If you're using SHOUTcast DNAS, this likely means another source is already connected. If you're using IceCast, it likely means that you've reached your "max sources" limit.

    2. Centova Cast's dynamic playlist system is not working, which would indicate a damaged Centova Cast installation and/or a problem with your PHP CLI installation.

      You can test this by checking /usr/local/centovacast/var/vhosts/USERNAME/etc/source.conf and looking for a line that looks like:

      <Module>/usr/local/centovacast/bin/nextsong username 0123456789abcdef icesnext</Module>

      Copy the command inside the <Module> tags, add " -vvv" after the word "nextsong", and run it as a shell command, i.e. for the above example, you might run:

      /usr/local/centovacast/bin/nextsong -vvv username 0123456789abcdef icesnext

      This will display a bunch of debugging information indicating what the nextsong utility is doing to determine the next song to play, followed by the pathname and title of the track it selected.

      If any other lines or errors are displayed, you'll need to determine why and resolve the problem. You may need to refer to the Disaster Recovery article.

    3. Something else is preventing a successful connection to the server. Check that you're using the correct IP address, port, and so-on.