Hi,

So new tests:
I create a local "radio.txt" file.
I put in in the playlist function, tracks were discovered and played.

So, I created a simple bash file that do a "cat radio.txt >>
tmp_liquidsoap_file"
Same issue, liquidsoap won't take the file.
As you suggested I put a debug echo before the exit 0, the echo is ok. The
content of the tmp file is ok.
Can't do more simple than that ...
Here's my setup:

Liquidsoap 1.3.3
2018/09/22 20:05:06 [main:3] Using: bytes=[distributed with OCaml 4.02 or
above] pcre=7.3.4 dtools=0.4.0 duppy=0.7.1 duppy.syntax=0.7.1 cry=0.6.2
mm=0.4.0 ogg=0.5.2 vorbis=0.7.1 mad=0.4.5 dynlink=[distributed with Ocaml]
lame=0.3.3 alsa=0.2.3 samplerate=0.1.4 taglib=0.3.3 camomile=1.0.1
OS: Ubuntu Bionic.


Le lun. 17 sept. 2018 à 16:51, sébastien dagnicourt <
sebastien.dagnico...@gmail.com> a écrit :

> Sorry, wrong copy paste, was testing something else
>
> Le lun. 17 sept. 2018 16:17, Romain Beauxis <romain.beau...@gmail.com> a
> écrit :
>
>> Le dim. 16 sept. 2018 à 12:30, sébastien dagnicourt
>> <sebastien.dagnico...@gmail.com> a écrit :
>> >
>> > OK, don't have more time today to tests some more things.
>> >
>> > For the telnet, server trace don't show more than that :
>> > [2018/09/16 19:20:02] Pushed ["nc://genre1/playlist1.txt";...].
>> > [2018/09/16 19:20:02] Resolving "nc://genre1/playlist1" (timeout 30s)...
>> > [2018/09/16 19:20:02] Pushed ["process:.txt,/work/get_file.py
>> '//genre1/playlist1.txt' $(output)";...].
>> > [2018/09/16 19:20:02] Resolving "process:.m3u,/data/djt/ls/get_file.py
>> '//genre1/playlist1.txt' $(output)" (timeout 30s)...
>> > [2018/09/16 19:20:02] Processing .m3u,/work/get_file.py
>> '//genre1/playlist1.txt' $(output)
>>
>> These last 3 lines are suspicious. Why does the extension suddenly
>> change to m3u and why does the process changes to
>> /data/djt/ls/get_file.py and then back to /work/get_file.py?
>>
>> > [2018/09/16 19:20:02] Executing /work/get_file.py
>> '//genre1/playlist1.txt' "/tmp/liq-process81a1c7..m3u"
>> > [2018/09/16 19:20:31] Failed to execute /work/get_file.py
>> '//genre1/playlist1.txt' "/tmp/liq-process81a1c7..m3u":
>> ("timeout","29.8845801353")
>> > [2018/09/16 19:20:31] Every possibility failed!
>> > [2018/09/16 19:20:31] Request finished.
>> > Will do some more tests tomorrow :)
>> >
>> > Le dim. 16 sept. 2018 à 18:42, Romain Beauxis <romain.beau...@gmail.com>
>> a écrit :
>> >>
>> >>
>> >>
>> >> Le dim. 16 sept. 2018 à 11:27, sébastien dagnicourt <
>> sebastien.dagnico...@gmail.com> a écrit :
>> >> >
>> >> > Yes, I saw that and I had already the same idea ;)
>> >> > No more luck ...
>> >> >
>> >> > How liquidsoap knows that the script got the playlist ? I mean, does
>> the temp file is known by liquidsoap ?
>> >> > I saw in other examples that people are doing something like
>> get_process_line("") to have the result of the command.
>> >>
>> >> Liquidsoap generates the tmp file name, creates a temp file and passes
>> it to the process as the $(output) argument and then waits for the process
>> to terminate.
>> >>
>> >> Looking at your script and considering your issue, it must be that the
>> line:
>> >>   oc.get_file(f, fd)
>> >> never returns, since adding exit(0) after it doesn't solve the problem.
>> >>
>> >> To double check on that you may want to add a print statement too and
>> see if it shows up in the logs.
>> >>
>> >> Another thing to check is that perhaps the process returns but the
>> request resolution fails later in the process. You may want to enable the
>> telnet server:
>> >>   set("server.telnet",true)
>> >> and check on the request's trace as explained before. There you should
>> have the full logs of the request resolution.
>> >>
>> >> Romain
>> >>
>> >> _______________________________________________
>> >> Savonet-users mailing list
>> >> Savonet-users@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/savonet-users
>> >
>> > _______________________________________________
>> > Savonet-users mailing list
>> > Savonet-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>>
>> _______________________________________________
>> Savonet-users mailing list
>> Savonet-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to