Problem with ADD MEDIA
  • Hi all,
    when I try to upload a file everything seems to work fine and the green tick appears. But nothing happens on my library.
    Using firebug I've seen that the response to this:

    /Plupload/upload/format/json

    is

    {"jsonrpc" : "2.0", "error" : {"code": 102, "message": "Failed to open output stream."}, "id" : "id"}

    My airtime-check-system:

    CPU = Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    Total RAM = 4021276 kB
    Free RAM = 92800 kB
    OS = Ubuntu 10.04.2 LTS x86-64
    AIRTIME_CONFIG_FILES = OK
    POSTGRESQL_DATABASE = OK
    PYTHON_KOMBU_VERSION = 1.2.0
    PYTHON_POSTER_VERSION = 0.8.1
    PYTHON_MUTAGEN_VERSION = 1.20
    PYTHON_PYINOTIFY_VERSION = 0.9.2
    RABBITMQ_SERVER = OK
    AIRTIME_VERSION_URL = http://audio-streaming.seltzlab.com:80/api/version/api_key/% %api_key%%
    APACHE_CONFIGURED = YES
    AIRTIME_VERSION = 1.9.4
    PLAYOUT_ENGINE_PROCESS_ID = 8073
    PLAYOUT_ENGINE_RUNNING_SECONDS = 17559
    LIQUIDSOAP_PROCESS_ID = 8081
    LIQUIDSOAP_RUNNING_SECONDS = 17559
    MEDIA_MONITOR_PROCESS_ID = 8143
    MEDIA_MONITOR_RUNNING_SECONDS = 17558
    SHOW_RECORDER_PROCESS_ID = 8101
    SHOW_RECORDER_RUNNING_SECONDS = 17558
    ICECAST_PROCESS_ID = 24360

    -- System setup looks OK!

    Any ideas?
    Thanks for any help

  • 12 Comments sorted by
  • I browsed a bit the postgres db on the psql console:

    select * from cc_files;


    gives 0 records..
  • The problem with "Failed to open output stream" was that the tmp dir was not writable to the user is running apache (the server is managed with ispconfig3).
    So I've changed the upload temp dir in /etc/airtime/airtime.ini

    Now everything really seems to work fine but nothing in my library... (on the cc_files table again 0 records)
  • doing this

    # /etc/init.d/airtime-media-monitor status


    i get

    PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0
    CPU = Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    Total RAM = 4021276 kB
    Free RAM = 151532 kB
    OS = Ubuntu 10.04.2 LTS x86-64
    AIRTIME_CONFIG_FILES = OK
    POSTGRESQL_DATABASE = OK
    PYTHON_KOMBU_VERSION = 1.2.0
    PYTHON_POSTER_VERSION = 0.8.1
    PYTHON_MUTAGEN_VERSION = 1.20
    PYTHON_PYINOTIFY_VERSION = 0.9.2
    RABBITMQ_SERVER = OK
    AIRTIME_VERSION_URL = http://audio-streaming.seltzlab.com:80/api/version/api_key/% %api_key%%
    APACHE_CONFIGURED = YES
    AIRTIME_VERSION = 1.9.4
    PLAYOUT_ENGINE_PROCESS_ID = 8073
    PLAYOUT_ENGINE_RUNNING_SECONDS = 22763
    LIQUIDSOAP_PROCESS_ID = 8081
    LIQUIDSOAP_RUNNING_SECONDS = 22763
    MEDIA_MONITOR_PROCESS_ID =
    MEDIA_MONITOR_RUNNING_SECONDS = 0
    -- WARNING! It looks like the Media Monitor engine is continually restarting.
    -- 2011-10-28 23:14:41,627 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 397 - Exception: No JSON object could be decoded
    -- 2011-10-28 23:14:46,634 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 397 - Exception: No JSON object could be decoded
    -- 2011-10-28 23:14:51,643 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 397 - Exception: No JSON object could be decoded
    -- 2011-10-28 23:14:56,653 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 397 - Exception: No JSON object could be decoded
    -- 2011-10-28 23:15:01,663 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 397 - Exception: No JSON object could be decoded
    -- 2011-10-28 23:15:06,673 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 397 - Exception: No JSON object could be decoded
    -- 2011-10-28 23:15:11,683 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 397 - Exception: No JSON object could be decoded
    -- 2011-10-28 23:15:16,693 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 397 - Exception: No JSON object could be decoded
    -- 2011-10-28 23:15:21,703 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 397 - Exception: No JSON object could be decoded
    -- 2011-10-28 23:15:26,713 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 397 - Exception: No JSON object could be decoded
    SHOW_RECORDER_PROCESS_ID = 8101
    SHOW_RECORDER_RUNNING_SECONDS = 22762
    ICECAST_PROCESS_ID = 24360

    -- There appears to be problems with your setup. Please visit
    -- http://wiki.sourcefabric.org/x/HABQ for troubleshooting info.

  • Hi,

    What happens if you revert the airtime.ini change, and modify the permissions for /tmp?
    Airtime Pro Hosting: http://airtime.pro
  • Nothing Sad
    Reverted upload temp dir to /tmp and chmod 777 to /tmp/plupload.
    Uploaded a file but in my library nothing..

    Ah, and the file is successfully uploaded in /tmp/plupload but nothing in the database
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    and have you remove the ; in the /etc/php5/apache2/php.ini before upload_tmp_dir =
    and add /tmp ?
  • I can't do that because it's a production server managed with Ispconfig3 and mpm Apache module: every vhost has its tmp directory

    In my airtime vhost I've put this:

    <IfModule mpm_itk_module>
        AssignUserId airtimeuser airtimegroup
    </IfModule>
    


    So the virtual host isn't running with www-data (airtime.conf already changed)

    Thanks for any help!
  • I've created a ticket for this, and will look to verify this issue tomorrow. In the meantime, please add any other information you think is relevant.

    http://dev.sourcefabric.org/browse/CC-3004
    Airtime Pro Hosting: http://airtime.pro
  • Hi Martin, thanks for your help!

    I've resolved: the issue was not with the tmp directory, was fault of mine Embarrassed .. I've moved the configuration file that I've done for rabbitmq-server where I had specified:

    NODENAME=rabbit@localhost
    RABBITMQ_NODENAME=rabbit@localhost
    NODE_IP_ADDRESS=127.0.0.1

    Now when I upload a file everything works fine

    Thanks!
  • Glad to hear this Smile
    Airtime Pro Hosting: http://airtime.pro
  • Hi,

    What actually solved this for you? I am working on an airtime install on a Ubuntu 14.04 server managed by ISPconfig and cannot get any media upload or monitoring to work.


    Thanks
  • Hello Matt! 

    Unfortunately you've dug up an old (and unrelated) thread -- 14.04 isn't supported yet, gotta stick with 12.04/Precise for now!  :-B