Another one "Exception [Errno 111] Connection refused"
  • no stream, here is pypo.log. Don't know where it tries to connect


    2011-10-22 02:19:08,015 INFO - [pypo-cli.py : <module>() : line 109] - ###########################################
    2011-10-22 02:19:08,016 INFO - [pypo-cli.py : <module>() : line 110] - # *** pypo *** #
    2011-10-22 02:19:08,016 INFO - [pypo-cli.py : <module>() : line 111] - # Liquidsoap Scheduled Playout System #
    2011-10-22 02:19:08,016 INFO - [pypo-cli.py : <module>() : line 112] - ###########################################
    2011-10-22 02:19:08,018 DEBUG - [api_client.py : __get_airtime_version() : line 183] - Trying to contact http://localhost:80/api/version/api_key/%%api_key%%
    2011-10-22 02:19:08,158 DEBUG - [api_client.py : __get_airtime_version() : line 190] - Data: {"version":"1.9.4"}
    2011-10-22 02:19:08,158 DEBUG - [api_client.py : __get_airtime_version() : line 193] - Airtime Version 1.9.4 detected
    2011-10-22 02:19:08,158 INFO - [api_client.py : is_server_compatible() : line 230] - Airtime version: 1.9.4
    2011-10-22 02:19:08,159 INFO - [api_client.py : is_server_compatible() : line 231] - pypo is at version 1.9.4 and is compatible with this version of Airtime.
    2011-10-22 02:19:08,160 INFO - [pypopush.py : run() : line 190] - heartbeat
    2011-10-22 02:19:08,161 DEBUG - [pypopush.py : push() : line 111] - Notifying Liquidsoap to stop playback.
    2011-10-22 02:19:08,162 INFO - [pypofetch.py : set_export_source() : line 88] - Creating cache directory at /var/tmp/airtime/pypo/cache/scheduler/
    2011-10-22 02:19:08,163 INFO - [pypofetch.py : __init__() : line 64] - PypoFetch: init complete
    2011-10-22 02:19:08,163 DEBUG - [pypopush.py : push() : line 118] - [Errno 111] Connection refused
    2011-10-22 02:19:08,163 DEBUG - [pypopush.py : push() : line 121] - Could not connect to liquidsoap
    2011-10-22 02:19:08,164 INFO - [api_client.py : get_schedule() : line 241] - Fetching schedule from http://localhost:80/api/schedule/api_key/%%api_key%%
    2011-10-22 02:19:08,304 INFO - [pypofetch.py : main() : line 365] - Bootstrap schedule received: {u'status': {u'range': {u'start': u'2011-10-22 02:19:08', u'end': u'2011-10-23 02:19:08'}, u'version': u'1.1'}, u'server_timezone': u'+0400', u'playlists': [], u'check': 1, u'stream_metadata': {u'station_name': u'', u'format': u''}}
    2011-10-22 02:19:08,312 ERROR - [pypofetch.py : process_schedule() : line 169] - Exception [Errno 111] Connection refused
    2011-10-22 02:19:08,313 DEBUG - [pypofetch.py : prepare_playlists() : line 201] - Schedule is empty.
    2011-10-22 02:19:08,324 DEBUG - [pypofetch.py : cleanup() : line 344] - trying to remove /var/tmp/airtime/pypo/cache/scheduler/2011-10-21-02-18-00 - timestamp: 1319149080.0
    2011-10-22 02:19:08,388 INFO - [pypofetch.py : cleanup() : line 350] - sucessfully removed /var/tmp/airtime/pypo/cache/scheduler/2011-10-21-02-18-00
    2011-10-22 02:19:08,389 INFO - [pypofetch.py : main() : line 367] - Bootstrap complete: got initial copy of the schedule
    2011-10-22 02:19:08,389 INFO - [pypofetch.py : init_rabbit_mq() : line 68] - Initializing RabbitMQ stuff
    2011-10-22 02:19:08,406 DEBUG - [connection.py : _start() : line 648] - Start from server, version: 8.0, properties: {u'information': 'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': 'RabbitMQ', u'version': '2.3.1', u'copyright': 'Copyright (C) 2007-2011 VMware, Inc.', u'platform': 'Erlang/OTP'}, mechanisms: ['PLAIN', 'AMQPLAIN'], locales: ['en_US']
    2011-10-22 02:19:08,441 DEBUG - [connection.py : _open_ok() : line 494] - Open OK! known_hosts []
    2011-10-22 02:19:08,442 DEBUG - [channel.py : __init__() : line 70] - using channel_id: 1
    2011-10-22 02:19:08,443 DEBUG - [channel.py : _open_ok() : line 484] - Channel open
    2011-10-22 02:19:08,445 INFO - [pypofetch.py : main() : line 376] - Loop #1
    2011-10-22 02:19:10,166 DEBUG - [pypopush.py : push() : line 67] - Received data from pypo-fetch
    2011-10-22 02:19:10,166 DEBUG - [pypopush.py : push() : line 71] - schedule []
    2011-10-22 02:19:10,166 DEBUG - [pypopush.py : push() : line 72] - playlists {}
    2011-10-22 02:19:35,886 INFO - [pypopush.py : run() : line 190] - heartbeat
  • 3 Comments sorted by
  • i found that pypopush.py tries to connect to 127.0.0.1 1234 (line 118)
  • It still doesn't work. After downgrade from 11.04 to 10.04 it started to work. But after 2 played song I got same error.
  • Looks like that is because i commented following line
    output_icecast_mp3 = true