Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Web Design (WordPress, Joomla, etc.) podcast cgi – advice if you can

  • podcast cgi – advice if you can

  • mark cookman

    June 29, 2009 at 5:30 pm

    Where should I find or create the #{CGI_CONF_FILE} mentioned below ? …when Podcast producer fails my http error log reports:


    Fri Jun 26 19:27:31 2009 error https://client 10.23.1.172 /usr/share/podcastproducer/cgi-bin/pcastupload.cgi:36:in `read_config': CGI Configuration file does not exist (CGIException)
    Fri Jun 26 19:27:31 2009 error https://client 10.23.1.172 tfrom /usr/share/podcastproducer/cgi-bin/pcastupload.cgi:30:in `initialize'
    Fri Jun 26 19:27:31 2009 error https://client 10.23.1.172 tfrom /usr/share/podcastproducer/cgi-bin/pcastupload.cgi:275:in `new'
    Fri Jun 26 19:27:31 2009 error https://client 10.23.1.172 tfrom /usr/share/podcastproducer/cgi-bin/pcastupload.cgi:275
    Fri Jun 26 19:27:31 2009 error https://client 10.23.1.172 Premature end of script headers: pcastupload.cgi

    If I look at the file /usr/share/podcastproducer/cgi-bin/pcastupload.cg then line 30 reads as follows :


    class UploadCGI
    def initialize
    @config = read_config
    end

    def read_config
    if (!File.exist?(CGI_CONF_FILE))
    ASLLogger.error "#{CGI_CONF_FILE} does not exist"

    raise CGIException.new, "CGI Configuration file does not exist"
    end

    if (!File.readable?(CGI_CONF_FILE))
    ASLLogger.error "#{CGI_CONF_FILE} is not readable"
    raise CGIException.new, "CGI Configuration file is not readable"
    end

    # We need to read from our special config file for the location of the shared filesystem
    @config = {}

    File.open(CGI_CONF_FILE, "r") do |file|
    # Read all the key=value pairs out of the CGI config file into @config
    lines = file.readlines
    lines.each do |line|
    key, value = line.chomp.split("=")
    if (key && value)
    @configkey = value
    end
    end
    end

Viewing 1 of 1 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy