Comments (37)
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.
from libretime.
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.
from libretime.
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.
from libretime.
Could this have been introduced with #84? I don't think so but I'm not sure.
from libretime.
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.
from libretime.
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 :)
from libretime.
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
here is /etc/airtime/liquidsoap.cfg: [link removed]
from libretime.
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.
from libretime.
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
from libretime.
Can you connect to the icecast gui directly on port 8000 (in a browser)?
from libretime.
from libretime.
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)?
from libretime.
Yes, owner is www-data
from libretime.
Fair enough, are you using Ubuntu or Debian?
from libretime.
Ubuntu 14.04
from libretime.
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.
from libretime.
$ 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>
from libretime.
So python is acting up with TLS, why am I not surprised. What is your base_port
in /etc/airtime/airtime.conf
?
from libretime.
80
from libretime.
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.
from libretime.
I believe I found the issue, am re-installing completely to check the fix and will pr shortly.
from libretime.
Next time I can test it it's Wednesday :(
I will report what I find.
from libretime.
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
from libretime.
Quick workaround resolved for me - hope that helps.
Can't rebuild my test server right now either though...
from libretime.
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
from libretime.
Thank you! All works!
from libretime.
I have the same issue now.
Installed the last master build.
after i change settings, i got this
icecast2 and liquidsoap Logs are empty
from libretime.
What does your system status page show ? Does it show liquidsoap running ?
from libretime.
Everything is running in status page.
from libretime.
What distro did you install it on ? I'll try to replicate it. Does rebooting or restarting the airtime-liquidsoap service affect the issue ?
from libretime.
Ubuntu 14.04
restarting liquidsoap didn't affect.
from libretime.
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:
from libretime.
there is no production folder in etc/airtime
from libretime.
edited
conf.php on line 90
and removed production folder from path, but nothing happens
from libretime.
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.
from libretime.
Thanks! It helped.
from libretime.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please chat to us on discourse or ask for help on our chat if you have any questions or need further assistance with this issue.
from libretime.
Related Issues (20)
- Rename the stable branches to include the major version HOT 1
- Hardware Output Audio using ALSA breaks stream HOT 7
- Pre-commit CI failing HOT 2
- analyser: analyze_replaygain crash with a FLAC containing non utf8 data
- Nginx listening port error HOT 1
- Container build failing due to changes in docker/metadata action HOT 1
- upstream reference closed: github.com/docker/metadata-action/issues/381
- Audio glitches in iOS mobile devices (didn't tested on windows/android) HOT 1
- INGESTING https icecast streams does not work HOT 1
- Track type without associated code cannot be removed
- Make the duration (with start time & end time) of a show ajustable to the split second HOT 2
- [ERROR/ForkPoolWorker-1] podcast-download[php_...]: could not upload episode HOT 5
- upstream reference closed: github.com/errata-ai/Microsoft/issues/58
- celery 4.4.7 has a non-standard dependency specifier pytz>dev HOT 2
- upstream reference closed: github.com/katspaugh/wavesurfer.js/issues/736
- Would not login on a new tarball install (port mismatch) HOT 2
- Add ability to filter tracks to todays date
- Filter tracks by filename
- Reduce dead air time at end of block scheduling
- Import process stuck when no user "admin" exists HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libretime.