Giter Club home page Giter Club logo

Comments (37)

hairmare avatar hairmare commented on June 15, 2024 1

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.

Robbt avatar Robbt commented on June 15, 2024 1

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.

hairmare avatar hairmare commented on June 15, 2024

My first stream looks like this and works like a piece of cake. Did you change any settings?

screen shot 2017-03-20 at 10 49 15

I'm not sure about default streaming but I have a feeling that works as well.

from libretime.

hairmare avatar hairmare commented on June 15, 2024

Could this have been introduced with #84? I don't think so but I'm not sure.

from libretime.

korotkov13 avatar korotkov13 commented on June 15, 2024

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.

Robbt avatar Robbt commented on June 15, 2024

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.

yarik2720 avatar yarik2720 commented on June 15, 2024

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
virtualbox_2017-03-20_20-07-03

here is /etc/airtime/liquidsoap.cfg: [link removed]

from libretime.

hairmare avatar hairmare commented on June 15, 2024

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.

yarik2720 avatar yarik2720 commented on June 15, 2024

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
virtualbox_2017-03-20_22-32-43

from libretime.

hairmare avatar hairmare commented on June 15, 2024

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

from libretime.

yarik2720 avatar yarik2720 commented on June 15, 2024

Yes
virtualbox_2017-03-20_22-39-20

from libretime.

hairmare avatar hairmare commented on June 15, 2024

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.

yarik2720 avatar yarik2720 commented on June 15, 2024

Yes, owner is www-data

from libretime.

hairmare avatar hairmare commented on June 15, 2024

Fair enough, are you using Ubuntu or Debian?

from libretime.

yarik2720 avatar yarik2720 commented on June 15, 2024

Ubuntu 14.04

from libretime.

hairmare avatar hairmare commented on June 15, 2024

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.

yarik2720 avatar yarik2720 commented on June 15, 2024
$ 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.

hairmare avatar hairmare commented on June 15, 2024

So python is acting up with TLS, why am I not surprised. What is your base_port in /etc/airtime/airtime.conf?

from libretime.

yarik2720 avatar yarik2720 commented on June 15, 2024

80

from libretime.

hairmare avatar hairmare commented on June 15, 2024

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.

hairmare avatar hairmare commented on June 15, 2024

I believe I found the issue, am re-installing completely to check the fix and will pr shortly.

from libretime.

korotkov13 avatar korotkov13 commented on June 15, 2024

Next time I can test it it's Wednesday :(
I will report what I find.

from libretime.

hairmare avatar hairmare commented on June 15, 2024

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.

geftactics avatar geftactics commented on June 15, 2024

Quick workaround resolved for me - hope that helps.
Can't rebuild my test server right now either though...

from libretime.

hairmare avatar hairmare commented on June 15, 2024

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.

yarik2720 avatar yarik2720 commented on June 15, 2024

Thank you! All works!

from libretime.

korotkov13 avatar korotkov13 commented on June 15, 2024

I have the same issue now.
Installed the last master build.
screen shot 2017-04-03 at 1 12 38
after i change settings, i got this
screen shot 2017-04-03 at 1 13 25

icecast2 and liquidsoap Logs are empty

from libretime.

Robbt avatar Robbt commented on June 15, 2024

What does your system status page show ? Does it show liquidsoap running ?

from libretime.

korotkov13 avatar korotkov13 commented on June 15, 2024

Everything is running in status page.

from libretime.

Robbt avatar Robbt commented on June 15, 2024

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.

korotkov13 avatar korotkov13 commented on June 15, 2024

Ubuntu 14.04
restarting liquidsoap didn't affect.

from libretime.

korotkov13 avatar korotkov13 commented on June 15, 2024

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.

korotkov13 avatar korotkov13 commented on June 15, 2024

there is no production folder in etc/airtime

from libretime.

korotkov13 avatar korotkov13 commented on June 15, 2024

edited

conf.php on line 90

and removed production folder from path, but nothing happens

from libretime.

Robbt avatar Robbt commented on June 15, 2024

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.

korotkov13 avatar korotkov13 commented on June 15, 2024

Thanks! It helped.

from libretime.

lock avatar lock commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.