On Wed, Jan 9, 2019 at 5:17 PM Romain Beauxis <romain.beau...@gmail.com> wrote:
> Hi John, sorry for the late response. > > It looks like the curl call is timing out. The curl call is working > locally here. > >> When attempting to use an http-protocol link in a script, Liquidsoap >> calls curl as expected, but the success of the curl process seems >> undetected by the calling program. >> >> I have debugged by altering protocols.liq to change the curl command line >> to dump curl's errors into a file (there are no errors); I have watched the >> curl process on the console. I have straced it, and it exits without error >> (returns 0 to the calling process). >> >> Curl works: the file appears in the filesystem as planned, but the error >> is: >> >> 2018/12/29 11:47:08 [protocol.process:4] Processing mp3,/usr/bin/curl -sL >> "http$(colon)//johnwarburton.net/myfile.mp3" -o $(output) >> 2018/12/29 11:47:08 [protocol.process:4] Executing /usr/bin/curl -sL " >> http://johnwarburton.net/myfile.mp3" -o "/tmp/liq-process819d71.mp3" >> 2018/12/29 11:47:08 [lang.run_process:4] Starting process >> 2018/12/29 11:47:08 [lang.run_process:4] Closing process's stdin >> 2018/12/29 11:47:28 [lang.run_process:4] Cleaning up process >> 2018/12/29 11:47:28 [protocol.process:3] Failed to execute /usr/bin/curl >> -sL "http://johnwarburton.net/myfile.mp3 >> <http://video.news.sky.com/snr/news/snrnews.mp3>" -o >> "/tmp/liq-process819d71.mp3": ("timeout","19.8803100586") >> 2018/12/29 11:47:28 [request:4] Failed to resolve >> "process:mp3,/usr/bin/curl -sL \"http$(colon)// >> johnwarburton.net/myfile.mp3\ <http://johnwarburton.net/myfile.mp3%5C>" >> -o $(output)"! For more info, see server command 'trace 17'. >> > Hi Romain, Thanks for getting back to me. To work around this problem, I'm currently using a crontab to retrieve the files, and (because I don't yet fully understand request queues) am using an 'expect' script to inject the files (after a little FFmpeg processing) into the stream, and putting them out using a custom fallback function I wrote. But when there's a moment, I'll test the curl difficulty again with 1.3.5 and write back. It was most odd. The command-line that liquidsoap executed, when run on its own, always worked. But, when called from liquidsoap, it didn't, and subsequently timed out. Full kit including playlist analysis for volume and fade-out/fade-in detection is at https://github.com/Warblefly/TrackBoundaries with best wishes, John
_______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users