OP25 op25.liq run as service RPI3B+

kc0bqb

Member
Feed Provider
Joined
Jul 24, 2004
Messages
11
I am having problems running the op25-liq service. I can run op25.liq as pi with an error but it still works.

[dynamic.loader:3] Could not find dynamic module for fdkaac encoder.


When I try to run the service it errors out. This looks to be a user permissions issue but I'm not for certain. When I run as "sudo ./op25.liq" it also errors out.

Fatal error: exception Dtools.Init.Root_prohibited(737457313)
Raised at file "dtools.ml", line 662, characters 15-44
Called from file "dtools.ml", line 668, characters 26-43
Called from file "main.ml", line 636, characters 10-44
Called from file "runner.ml", line 30, characters 14-31


I saw someone else mentioned this error on another post but I did not see how they resolved it.
 

kc0bqb

Member
Feed Provider
Joined
Jul 24, 2004
Messages
11
That did not give any more additional information.
 

kc0bqb

Member
Feed Provider
Joined
Jul 24, 2004
Messages
11
I have attached the log file. What version of Raspbian were you using? Would this be easier to try a different version or Raspbian?


2020/06/24 11:30:27 >>> LOG START
2020/06/24 11:30:27 [main:3] Liquidsoap 1.3.3
2020/06/24 11:30:27 [main:3] Using: bytes=[distributed with OCaml 4.02 or above] pcre=7.2.3 dtools=0.4.0 duppy=0.7.2 duppy.syntax=0.7.2 cry=0.6.2 mm=0.3.1 xmlplaylist=0.1.3 lastfm=0.3.0 ogg=0.5.2 vorbis=0.7.1 opus=0.1.2 speex=0.2.1 mad=0.4.4 flac=0.1.3 flac.ogg=0.1.3 dynlink=[distributed with Ocaml] lame=0.3.2 shine=0.2.0 gstreamer=0.2.0 frei0r=0.1.0 theora=0.3.1 gavl=0.1.5 bjack=0.1.4 alsa=0.2.3 ao=0.2.0 samplerate=0.1.2 taglib=0.3.1 magic=0.7.3 camomile=0.8.5 yojson=1.3.2 faad=0.4.0 soundtouch=0.1.7 portaudio=0.2.1 pulseaudio=0.1.2 ladspa=0.1.4 dssi=0.1.1 sdl=0.9.1 camlimages=4.2.0 lo=0.1.0 gd=1.0a5
2020/06/24 11:30:27 [gstreamer.loader:3] Loaded GStreamer 1.14.4 0
2020/06/24 11:30:27 [dynamic.loader:3] Could not find dynamic module for fdkaac encoder.
2020/06/24 11:30:27 [frame:3] Using 8000Hz audio, 25Hz video, 8000Hz master.
2020/06/24 11:30:27 [frame:3] Frame size must be a multiple of 320 ticks = 320 audio samples = 1 video samples.
2020/06/24 11:30:27 [frame:3] Targetting 'frame.duration': 0.04s = 320 audio samples = 320 ticks.
2020/06/24 11:30:27 [frame:3] Frames last 0.04s = 320 audio samples = 1 video samples = 320 ticks.
2020/06/24 11:30:27 [threads:3] Created thread "generic queue #1".
2020/06/24 11:30:27 [threads:3] Created thread "generic queue #2".
2020/06/24 11:30:27 [threads:3] Created thread "non-blocking queue #1".
2020/06/24 11:30:27 [threads:3] Created thread "non-blocking queue #2".
2020/06/24 11:30:27 [input.external_7212:3] Starting process
2020/06/24 11:30:27 [clock.wallclock_pulse:2] Error when starting output pulse_out(liquidsoap:): Pulseaudio error: Connection refused!
2020/06/24 11:30:27 [clock.wallclock_pulse:3] Raised by primitive operation at file "pulseaudio.ml" (inlined), line 47, characters 6-67
2020/06/24 11:30:27 [clock.wallclock_pulse:3] Called from file "io/pulseaudio_io.ml", line 83, characters 13-190
2020/06/24 11:30:27 [clock.wallclock_pulse:3] Called from file "tools/start_stop.ml", line 99, characters 6-16
2020/06/24 11:30:27 [clock.wallclock_pulse:3] Called from file "clock.ml", line 237, characters 19-37
2020/06/24 11:30:27 [MOSWIN:3] Connecting mount MOSWIN for source@localhost...
2020/06/24 11:30:27 [MOSWIN:3] Connection setup was successful.
2020/06/24 11:30:27 [threads:3] Created thread "wallclock_pulse" (1 total).
2020/06/24 11:30:27 [main:3] Shutdown started!
2020/06/24 11:30:27 [main:3] Waiting for threads to terminate...
2020/06/24 11:30:27 [clock.wallclock_pulse:3] Streaming loop starts, synchronized by active sources.
2020/06/24 11:30:27 [MOSWIN:3] Closing connection...
2020/06/24 11:30:27 [clock.wallclock_pulse:3] Streaming loop stopped.
2020/06/24 11:30:27 [input.external_7212:3] Cleaning up process
2020/06/24 11:30:27 [threads:3] Thread "wallclock_pulse" terminated (0 remaining).
2020/06/24 11:30:27 [main:3] Threads terminated.
2020/06/24 11:30:27 [threads:3] Shutting down scheduler...
2020/06/24 11:30:27 [threads:3] Scheduler shut down.
2020/06/24 11:30:27 [threads:3] Thread "non-blocking queue #2" terminated.
2020/06/24 11:30:27 [main:3] Cleaning downloaded files...
2020/06/24 11:30:27 [main:3] Freeing memory...
2020/06/24 11:30:27 >>> LOG END
 
Last edited:

kc0bqb

Member
Feed Provider
Joined
Jul 24, 2004
Messages
11
I removed the pulseaudio output so no local audio but it is now working as a service.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
2,403
Location
Talbot Co, MD
The default installation of PulseAudio on Raspbian has a dependency for the user being logged in to the desktop, which obviously doesn't happen on headless systems or during boot time before the desktop has started. There are some guides online with suggestions what needs to be changed to make pulse available all the time, but they can be hard to follow so if you can get away without it, you'll have a happier life.
 
Top