After making clean install from clone git I can't connect to icecast server.

If i choose
Custom / 3rd Party Streaming
If I install from tarball it working fine.
liquidsoap logs are empty, icecast shows no errors too. Please tell me where/how to search the bug.
My first stream looks like this and works like a piece of cake. Did you change any settings?

I'm not sure about default streaming but I have a feeling that works as well.
Could this have been introduced with #84? I don't think so but I'm not sure.
i just install the latest erlang package
Because if i don't, I'll catch an error with rabbitmq during libretime install.
Unfortunatly i have only ipv4 on my vps.
Very strange that it working well with tarball and don't with git.
What Linux Distro are you running your OS from.
What does the liquidsoap.log file contain in /var/log/airtime/pypo-liquidsoap/ls_script.log contain. Do you notice any errors causing liquidsoap to terminate.
Also what are the contents of /etc/airtime/liquidsoap.cfg ?
If you run ps -aux | grep 'liquidsoap' do you see a process running ?
Have you tried restarting liquidsoap via sudo /etc/init.d/airtime-liquidsoap start
Perhaps provide a pastebin.com link or attach the files as I'm pretty sure the contents by themselves would just be a wall of text :)
I have the same, using latest master brunch.
folder pypo-liquidsoap is empty.
$ ps -aux | grep 'liquidsoap'
www-data 4710 1.9 1.0 75104 21796 ? Ss 20:04 0:00 /usr/bin/python /usr/bin/airtime-liquidsoap
icecast2 server running ok

here is /etc/airtime/liquidsoap.cfg: [link removed]
That linked file looks like a /etc/airtime/airtime.conf file. Maybe /etc/airtime/liquidsoap.cfg isn't getting properly generated. Does anything change after sudo /etc/init.d/airtime-liquidsoap restart? What distro exhibits this?
In the screenshot it looks like icecast is not properly reachable.
Sorry, wrong file. I found that it doesn't exists
$ ls
airtime.conf cloud_storage.conf rabbitmq-analyzer.ini
airtime.conf.bak production
restarting not helped
trying to connect to already working icecast server also not helped

Can you connect to the icecast gui directly on port 8000 (in a browser)?
Yes

That the file doesn't exist may be part of the cause, it should have been created by airtime-playout. Does /etc/airtime belong to the systems apache user (www-data or apache2)?
Yes, owner is www-data
Fair enough, are you using Ubuntu or Debian?
Ubuntu 14.04
So upstart should be taking care of restarting everything on changes. If the liquidsoap file never gets written python is probably failing to early for liquidsoap to start logging to /var/log/airtime/pypo-liquidsoap/ls_script.log.
Can you su into the www-data user and try running python /usr/bin/airtime-liquidsoap directly. Maybe it will tell us what is going on when called on the cli.
$ sudo su - www-data -s /bin/bash -c 'python /usr/bin/airtime-liquidsoap'
Airtime Liquidsoap
Unable to connect to the Airtime server.
<urlopen error [Errno 1] _ssl.c:510: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol>
traceback: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/airtime_playout-1.0-py2.7.egg/liquidsoap/generate_liquidsoap_cfg.py", line 48, in run
ss = ac.get_stream_setting()
File "/usr/local/lib/python2.7/dist-packages/api_clients-1.0-py2.7.egg/api_clients/api_client.py", line 432, in get_stream_setting
return self.services.get_stream_setting()
File "/usr/local/lib/python2.7/dist-packages/api_clients-1.0-py2.7.egg/api_clients/api_client.py", line 144, in __call__
f = urllib2.urlopen(req, timeout=ApiRequest.API_HTTP_REQUEST_TIMEOUT)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 1] _ssl.c:510: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol>
So python is acting up with TLS, why am I not surprised. What is your base_port in /etc/airtime/airtime.conf?
80
It looks like python_apps/api_clients/api_clients/api_client.py#L190 isn't working properly 馃檨 I have to switch my local set up to ubuntu so I can try reproducing it.
I believe I found the issue, am re-installing completely to check the fix and will pr shortly.
Thanks for testing and helping me figure this one out. I'm not much of a pythonista as you might be able to tell from the fix 馃槦 Please re-open if the fix doesn't work once it's merged.
Next time I can test it it's Wednesday :(
I will report what I find.
Here's a quick workaround for installed systems:
sudo sed -i -e 's/https/http/' /usr/local/lib/python2.7/dist-packages/api_clients-1.0-py2.7.egg/api_clients/api_client.py
Quick workaround resolved for me - hope that helps.
Can't rebuild my test server right now either though...
Now that it's been merged you can also re-install just the api_client after bringing your working copy up to date.
sudo python python_apps/api_clients/setup.py install
Thank you! All works!
I have the same issue now.
Installed the last master build.

after i change settings, i got this

icecast2 and liquidsoap Logs are empty
What does your system status page show ? Does it show liquidsoap running ?
Everything is running in status page.
What distro did you install it on ? I'll try to replicate it. Does rebooting or restarting the airtime-liquidsoap service affect the issue ?
Ubuntu 14.04
restarting liquidsoap didn't affect.
I think I found error.
[:error] [pid 30988] [client test.host:61333] PHP Warning: parse_ini_file(/etc/airtime/production/airtime.conf): failed to open stream: No such file or directory in /usr/share/airtime/php/airtime_mvc/application/configs/conf.php on line 90, referer:
there is no production folder in etc/airtime
edited
conf.php on line 90
and removed production folder from path, but nothing happens
ok, weird there should be a symlink from /etc/airtime/production back to /etc/airtime created by the install, but this might only happen if you are installing it for the first time, or something might of happened. This is kind of a legacy of the initial work we did working around some of the saas stuff. I'll have to see if I run into the same issue and submit a fix.
I think I found a fix.
You can manually remove the include on the 8th line of /usr/local/lib/python2.7/dist-packages/airtime_playout-1.0-py2.7.egg/liquidsoap/ls_script.liq
delete or comment out this # %include "library/pervasives.liq"
and see if it works.
I put in a PR to fix it.
Thanks! It helped.