Hi all,
I am a new user to the Liquidsoap community. I have the system working end to 
end but it refuses to start by itself during a boot.
I have done a fresh OS install (ubuntu 16.04.1) and loaded the programs using 
apt. No other changes to liquidsoap or pulseaudio has been performed. 
Programs loaded are: alsa-utils, pulseaudio, liquidsoap and icecast2. I have 
performed a system restart after the full installation process.

I have put the following script into the /etc/liquidsoap/ directory, filename = 
stream.liq

root@wtc1stream1:/etc/liquidsoap# cat stream.liq
#! /usr/bin/liquidsoap
output.icecast( %mp3(stereo=false), host = "localhost", port = 8000, password = 
"********", mount = "/stream", input.pulseaudio())

I can run this just fine as a standard user from the command line:

liquidsoap ' output.icecast( %mp3(stereo=false), host = "localhost", port = 
8000, password = "********", mount = "/stream", input.pulseaudio())'

>From a boot up get the following in the /var/log/liquidsoap/stream.log file:

root@wtc1stream1:/var/log/liquidsoap# cat stream.log
2017/01/24 15:05:24 >>> LOG START
2017/01/24 15:05:22 [protocols.external:3] Found "/usr/bin/wget".
2017/01/24 15:05:23 [main:3] Liquidsoap 1.1.1
2017/01/24 15:05:23 [main:3] Using: graphics=[distributed with Ocaml] 
pcre=7.0.4 dtools=0.3.1 duppy=0.5.1 duppy.syntax=0.5.1 cry=0.2.2 mm=0.2.1 
xmlplaylist=0.1.3 lastfm=0.3.0 ogg=0.4.5 vorbis=0.6.1 opus=0.1.0 speex=0.2.0 
mad=0.4.4 flac=0.1.1 flac.ogg=0.1.1 dynlink=[distributed with Ocaml] lame=0.3.2 
shine=0.2.0 gstreamer=0.2.0 frei0r=0.1.0 voaacenc=0.1.0 theora=0.3.0 
schroedinger=0.1.0 gavl=0.1.5 bjack=0.1.4 alsa=0.2.1 ao=0.2.0 samplerate=0.1.2 
taglib=0.3.1 magic=0.7.3 camomile=0.8.4 inotify=1.0 faad=0.3.2 soundtouch=0.1.7 
portaudio=0.2.0 pulseaudio=0.1.2 ladspa=0.1.4 dssi=0.1.1 sdl=0.9.1 
camlimages=4.2.0 lo=0.1.0 yojson=1.2.3 gd=1.0a5
2017/01/24 15:05:23 [dynamic.loader:3] Could not find dynamic module for fdkaac 
encoder.
2017/01/24 15:05:23 [dynamic.loader:3] Could not find dynamic module for 
aacplus encoder.
2017/01/24 15:05:23 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/pulseaudio.cmxs.
2017/01/24 15:05:23 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/ogg.cmxs.
2017/01/24 15:05:23 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/cry.cmxs.
2017/01/24 15:05:23 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/flac.cmxs.
2017/01/24 15:05:23 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/faad.cmxs.
2017/01/24 15:05:23 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/mad.cmxs.
2017/01/24 15:05:23 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/voaacenc.cmxs.
2017/01/24 15:05:23 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/lame.cmxs.
2017/01/24 15:05:23 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/flac_ogg.cmxs.
2017/01/24 15:05:24 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/taglib.cmxs.
2017/01/24 15:05:24 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/vorbis.cmxs.
2017/01/24 15:05:24 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
2017/01/24 15:05:24 [frame:3] Frame size must be a multiple of 1764 ticks = 
1764 audio samples = 1 video samples.
2017/01/24 15:05:24 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio 
samples = 1764 ticks.
2017/01/24 15:05:24 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video 
samples = 1764 ticks.
2017/01/24 15:05:24 [threads:3] Created thread "generic queue #1".
2017/01/24 15:05:24 [threads:3] Created thread "generic queue #2".
2017/01/24 15:05:24 [threads:3] Created thread "non-blocking queue #1".
2017/01/24 15:05:24 [threads:3] Created thread "non-blocking queue #2".
2017/01/24 15:05:24 [clock.wallclock_pulse:2] Error when starting pulse_in(): 
Pulseaudio error: Connection refused!
2017/01/24 15:05:24 [pulse_in():1] Got ill-balanced activations (from 
pulse_in())!
2017/01/24 15:05:24 [clock:2] Error when leaving output pulse_in(): File 
"source.ml", line 403, characters 10-16: Assertion failed!
2017/01/24 15:05:24 [stderr:3] Home directory not accessible: Permission denied
2017/01/24 15:05:24 [clock.wallclock_pulse:2] Error when starting /stream: 
Pulseaudio error: Connection refused!
2017/01/24 15:05:24 [/stream:1] Got ill-balanced activations (from /stream)!
2017/01/24 15:05:24 [clock:2] Error when leaving output /stream: File 
"source.ml", line 403, characters 10-16: Assertion failed!
2017/01/24 15:05:24 [main:3] Shutdown started!
2017/01/24 15:05:24 [main:3] Waiting for threads to terminate...
2017/01/24 15:05:24 [main:3] Cleaning downloaded files...
2017/01/24 15:05:24 [main:3] Freeing memory...
2017/01/24 15:05:24 [stderr:3] Home directory not accessible: Permission denied
2017/01/24 15:05:24 >>> LOG END
root@wtc1stream1:/var/log/liquidsoap#

I am not understanding the "ill-balanced activations (from pulse_in())" 
statement. 
I have tried running this from the command line: "sudo /etc/init.d/liquidsoap 
start" and get the same results.

I have also tried to use "...input.alsa()" but get an error message:
        sv4491@wtc1stream1:~$ ./stream.liq
        At line 2, char 151: the variable input.alsa used here has not been  
previously defined.

I have looked at most of the documentation and script samples but cannot seem 
to find out how to resolve this error.

Do you have any insights that I maybe missing here?
My goal is to have the system perform a reboot and come up into service on its 
own with no manual inter-action.

Thank you!

Steve VanWambeck -  Lab Operations
Principal Product Development Engineer, AT&T OC&ATS
Desk 425-702-2881 
Wireless 425-301-1416 
 
This email, and any attachments, are intended only for use by the addressee(s) 
named herein and may contain legally privileged and/or confidential 
information. It is the property of AT&T Labs. If you are not the intended 
recipient of this email, you are hereby notified that any dissemination, 
distribution or copying of this email, any attachments thereto, and any use of 
the information contained is strictly prohibited. If you have received this 
email in error, please notify me at 425-702-2881 and permanently delete the 
original and any copy thereof.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to