Hey Mark, This seems similar to a change we had to make going from 1.1.1 to 1.3.3, I hope this may be of use.
https://github.com/UniversityRadioYork/jukebox/commit/99856dd6627db24881c92ab8fe1eacb1621b3dac Regards, Matthew Stratford Computing Team University Radio York matthew.stratf...@ury.org.uk On 9 Oct 2018, 07:01 +0100, Mark Jeghers <mark.jegh...@gmail.com>, wrote: > I've run Liquidsoap 1.2.0 for a long time now on my old CentOS 6 server. Now > I am migrating to a new CentOS 7 system and I installed Liquidsoap 1.3.3 from > radiorabe. But now liquidsoap fails to start and it outputs the following > error message... > > At line 12, char 28: > this value has type > (default:_)->_ (inferred at line 11, char 19-115) > but it should be a subtype of > string > > Here is the script code (line 11 is highlighted in bold): > ----------------------------------------------------------------------------------- > # > # T4P BluesWire configuration for Liquidsoap > # > > set("log.stdout", true) > set("server.telnet", true) > > playlistJingles = audio_to_stereo(playlist("playlists/jingles-playlist.txt")) > > def everything_request_function() = > result = list.hd(get_process_lines("curl > 'http://localhost:3000/api/playlists/everything/nextsong?format=text'")) <-- > line 11 > log("Next song " ^ result) > request.create(result) > end > > def crimson_request_function() = > result = list.hd(get_process_lines("curl > 'http://localhost:3000/api/playlists/crimson/nextsong?format=text'")) > log("Next song " ^ result) > request.create(result) > end > > def retro_request_function() = > result = list.hd(get_process_lines("curl > 'http://localhost:3000/api/playlists/retro/nextsong?format=text'")) > log("Next song " ^ result) > request.create(result) > end > > def johnson_request_function() = > result = list.hd(get_process_lines("./next_song.sh > playlists/johnson-playlist.txt")) > log("Next song " ^ result) > request.create(result) > end > > # Create the sources > ple = request.dynamic(everything_request_function) > ple = rotate(weights=[1,4], [playlistJingles, ple]) > plc = request.dynamic(crimson_request_function) > plc = rotate(weights=[1,4], [playlistJingles, plc]) > plr = request.dynamic(retro_request_function) > plr = rotate(weights=[1,4], [playlistJingles, plr]) > plj = request.dynamic(johnson_request_function) > plj = rotate(weights=[1,4], [playlistJingles, plj]) > > output.icecast( > %mp3(bitrate=96, id3v2=true), > host="localhost", port=8000, password="yrut9bUh", > mount="/everything", genre="All Blues", > description="Every kind of Blues imaginable", > url="http://www.t4p.com:8000/everything", > mksafe(ple)) > > output.icecast( > %mp3(bitrate=96, id3v2=true), > host="localhost", port=8000, password="yrut9bUh", > mount="/crimson", genre="Christian Blues", > description="Crimson Blues and more", > url="http://www.t4p.com:8000/crimson", > mksafe(plc)) > > output.icecast( > %mp3(bitrate=48, id3v2=true), > host="localhost", port=8000, password="yrut9bUh", > mount="/retro", genre="Old Pre-War Blues", > description="Retro Pre-war blues all the time", > url="http://www.t4p.com:8000/retro", > mksafe(plr)) > > output.icecast( > %mp3(bitrate=48, id3v2=true), > host="localhost", port=8000, password="password", > mount="/johnson", genre="Delta Blues", > description="Robert Johnson all the time", > url="http://www.t4p.com:8000/johnson", > mksafe(plj)) > ----------------------------------------------------------------------------------- > > It's as if get_process_line has broken. The command line returns a string > just fine... > > # curl --basic --user mark:python > http://localhost:3000/api/playlists/crimson/nextSong?format=text > /usr2/Blues/mp3-96kbps/Stack O Lee-Mark Jeghers-The Bluez Projekt-T4P > Music-2009.mp3 > > Can anyone help me troubleshoot this? Or might there be a better build I > should use? I am blocked from moving this over to my new server hardware > until I can figure this out! > > Thanks much, > /Mark > > _______________________________________________ > 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