Closed vitoyucepi closed 1 year ago
Are you sure that the docker port is bound on the host? When running the process twice locally, I get this error:
2023/09/27 10:38:17 [harbor:4] Opening port 8000 with icy = false
2023/09/27 10:38:17 [clock.main:2] Source /test failed while starting: Unix.Unix_error(Unix.EADDRINUSE, "bind", "")!
2023/09/27 10:38:17 [clock.main:2] Raised by primitive operation at Unix in file "unix.ml" (inlined), line 555, characters 0-60
2023/09/27 10:38:17 [clock.main:2] Called from Harbor.Make.open_port.open_socket in file "src/core/harbor/harbor.ml", line 1090, characters 6-30
2023/09/27 10:38:17 [clock.main:2] Called from Stdlib__List.map in file "list.ml", line 92, characters 20-23
2023/09/27 10:38:17 [clock.main:2] Called from Harbor.Make.open_port in file "src/core/harbor/harbor.ml", line 1100, characters 31-69
I retested on a clean Ubuntu 22.04 VM with docker and got the same issue.
ssh ubuntu@192.168.1.1
sudo docker run -it --rm --entrypoint bash --name liquidsoap savonet/liquidsoap:rolling-release-v2.2.x
echo "output.harbor(%flac, sine(), mount='/test')" > /tmp/1.liq
liquidsoap /tmp/1.liq
ssh ubuntu@192.168.1.1
sudo docker exec -it liquidsoap bash
liquidsoap /tmp/1.liq
Similarly, the error output varied each time I ran liquidsoap using the opam version.
From the first shell
sudo apt-get update;
sudo apt-get dist-upgrade;
sudo apt-get install --no-install-recommends -y curl ca-certificates patch unzip bubblewrap git bzip2 gcc make libc6-dev g++;
sudo curl -sS -L -o /usr/local/bin/opam https://github.com/ocaml/opam/releases/download/2.1.5/opam-2.1.5-x86_64-linux;
sudo chmod +x /usr/local/bin/opam;
opam init --bare -n;
opam switch create 4.14.1;
eval $(opam env --switch=4.14.1);
opam install --confirm-level=unsafe-yes liquidsoap flac;
echo "output.harbor(%flac, sine(), mount='/test')" > /tmp/1.liq;
liquidsoap /tmp/1.liq;
From the second shell
eval $(opam env --switch=4.14.1);
liquidsoap /tmp/1.liq;
Ok, the issue is that liquidsoap was shutting down too early without displaying the exception. This has been fixed in https://github.com/savonet/liquidsoap/commit/bc8870356b457577525e561d387513254351d931 and https://github.com/savonet/liquidsoap/commit/36ec5b189a294075242c1668c9764e838422eb78
Describe the bug
Log
``` 2023/09/03 13:42:47 >>> LOG START 2023/09/03 13:42:43 [ffmpeg.filter.bitstream:3] No valid mode found for filter pgs_frame_merge! 2023/09/03 13:42:43 [main:3] Liquidsoap 2.2.1+git@46968a5ac 2023/09/03 13:42:43 [main:3] Using: alsa=0.3.0 angstrom=0.15.0 ao=0.2.4 asetmap=0.8.1 asn1-combinators=0.2.6 astring=0.8.5 base64=3.5.1 bigarray=[distributed with OCaml] bigarray-compat=1.1.0 bigstringaf=0.9.1 bjack=0.1.6 bos=0.2.1 bytes=[distributed with OCaml] ca-certs=v0.2.3 camlimages.all_formats=4.2.6 camlimages.core=5.0.4 camlimages.exif=5.0.4 camlimages.gif=5.0.4 camlimages.jpeg=5.0.4 camlimages.png=5.0.4 camlimages.tiff=5.0.4 camlimages.xpm=5.0.4 camlp-streams camomile.lib=2.0 cohttp=5.1.0 cohttp-lwt=5.1.0 cohttp-lwt-unix=5.1.0 conduit=6.2.0 conduit-lwt=6.2.0 conduit-lwt-unix=6.2.0 cry=1.0.2 cstruct=6.2.0 ctypes=0.20.2 ctypes.foreign=0.20.2 ctypes.stubs=0.20.2 curl=0.9.2 domain-name=0.4.0 dssi=0.1.5 dtools=0.4.5 dune-build-info=3.8.2 dune-private-libs.dune-section=3.8.2 dune-site=3.8.2 dune-site.private=3.8.2 duppy=0.9.3 eqaf=0.9 eqaf.bigstring=0.9 eqaf.cstruct=0.9 faad=0.5.2 fdkaac=0.3.3 ffmpeg-av=1.1.9 ffmpeg-avcodec=1.1.9 ffmpeg-avdevice=1.1.9 ffmpeg-avfilter=1.1.9 ffmpeg-avutil=1.1.9 ffmpeg-swresample=1.1.9 ffmpeg-swscale=1.1.9 fileutils=0.6.4 flac=0.5.0 flac.decoder=0.5.0 flac.ogg=0.5.0 fmt=0.9.0 fpath=0.7.3 frei0r=0.1.2 gd=1.0a5 gen=1.1 gmap=0.3.0 hkdf=1.0.4 inotify=2.4.1 integers ipaddr=5.5.0 ipaddr-sexp=5.5.0 ipaddr.unix=5.5.0 irc-client irc-client-unix jemalloc ladspa=0.2.2 lame=0.3.7 lastfm=0.3.3 lilv=0.1.0 liquidsoap-lang=2.2.1 liquidsoap-lang.console=2.2.1 liquidsoap_alsa=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_ao=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_bjack=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_builtins=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_camlimages=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_core=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_dssi=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_faad=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_fdkaac=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_ffmpeg=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_flac=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_frei0r=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_gd=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_irc=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_jemalloc=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_ladspa=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_lame=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_lastfm=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_lilv=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_lo=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_mad=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_magic=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_mem_usage=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_memtrace=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_ogg=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_ogg_flac=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_optionals=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_opus=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_osc=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_oss=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_portaudio=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_posix_time=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_prometheus=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_pulseaudio=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_runtime=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_samplerate=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_sdl=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_shine=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_soundtouch=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_speex=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_srt=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_ssl=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_stereotool=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_taglib=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_theora=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_tls=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_vorbis=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_xmlplaylist=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c liquidsoap_yaml=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c lo=0.2.0 logs=0.7.0 logs.fmt=0.7.0 logs.lwt=0.7.0 lwt=5.6.1 lwt.unix=5.6.1 macaddr=5.5.0 mad=0.5.3 magic=0.7.3 magic-mime=1.3.0 mem_usage=0.0.4 memtrace=0.2.3 menhirLib=20230608 metadata=0.2.0 mirage-crypto=0.11.1 mirage-crypto-ec=0.11.1 mirage-crypto-pk=0.11.1 mirage-crypto-rng=0.11.1 mirage-crypto-rng.unix=0.11.1 mm=0.8.4 mm.audio=0.8.4 mm.base=0.8.4 mm.image=0.8.4 mm.midi=0.8.4 mm.video=0.8.4 ocplib-endian ocplib-endian.bigstring ogg=0.7.4 ogg.decoder=0.7.4 opus=0.2.3 opus.decoder=0.2.3 osc osc-unix parsexp=v0.16.0 pbkdf pcre=7.5.0 portaudio=0.2.3 posix-base=b516d46 posix-socket=b516d46 posix-socket.constants=b516d46 posix-socket.stubs=b516d46 posix-socket.types=b516d46 posix-time2=b516d46 posix-time2.constants=b516d46 posix-time2.stubs=b516d46 posix-time2.types=b516d46 posix-types=b516d46 posix-types.constants=b516d46 ppx_sexp_conv.runtime-lib=v0.16.0 prometheus=1.2 prometheus-app=1.2 ptime=1.1.0 ptime.clock.os=1.1.0 pulseaudio=0.1.6 re=1.10.4 result=1.5 rresult=0.7.0 samplerate=0.1.6 sedlex=a1362bd seq=[distributed with OCaml 4.07 or above] sexplib=v0.16.0 sexplib0=v0.16.0 shine=0.2.3 soundtouch=0.1.9 speex=0.4.2 speex.decoder=0.4.2 srt=0.3.0 srt.constants=0.3.0 srt.stubs=0.3.0 srt.stubs.locked=0.3.0 srt.types=0.3.0 ssl=0.7.0 stdlib-shims=0.3.0 stereotool=gh-readonly-queue_rolling-release-v2.2.x_pr-3332-be75b6ec4c str=[distributed with OCaml] stringext=1.6.0 taglib=0.3.10 theora=0.4.1 theora.decoder=0.4.1 threads=[distributed with OCaml] threads.posix=[distributed with OCaml] tls=0.17.0 tsdl=v1.0.0 tsdl-image=0.5 tsdl-ttf=0.5 unix=[distributed with OCaml] unix-errno=52c6ecb unix-errno.errno_bindings=52c6ecb unix-errno.errno_types=52c6ecb unix-errno.errno_types_detected=52c6ecb unix-errno.unix=52c6ecb uri=4.2.0 uri-sexp=4.2.0 uri.services=4.2.0 vorbis=0.8.1 vorbis.decoder=0.8.1 x509=0.16.4 xmlm=1.4.0 xmlplaylist=0.1.5 yaml=3.1.0 yaml.bindings=3.1.0 yaml.bindings.types=3.1.0 yaml.c=3.1.0 yaml.ffi=3.1.0 yaml.types=3.1.0 zarith=1.12 2023/09/03 13:42:43 [main:3] 2023/09/03 13:42:43 [main:3] DISCLAIMER: This version of Liquidsoap has been compiled from a snapshot of the 2023/09/03 13:42:43 [main:3] development code. As such, it should not be used in production unless you know 2023/09/03 13:42:43 [main:3] what you are doing! 2023/09/03 13:42:43 [main:3] 2023/09/03 13:42:43 [main:3] We are, however, very interested in any feedback about our development code and 2023/09/03 13:42:43 [main:3] committed to fix issues as soon as possible. 2023/09/03 13:42:43 [main:3] 2023/09/03 13:42:43 [main:3] If you are interested in collaborating to the development of Liquidsoap, feel 2023/09/03 13:42:43 [main:3] free to drop us a mail atTo Reproduce
docker run -it --rm --network host --entrypoint bash --name liquidsoap savonet/liquidsoap:rolling-release-v2.2.x
1.liq
.liquidsoap 1.liq
.docker exec -it liquidsoap bash
liquidsoap 1.liq
.Expected behavior Liquidsoap should print failed to bind error.
Version details
Install method savonet/liquidsoap:rolling-release-v2.2.x
Common issues N/A