KB Issue
When running the ./daemonize-liquidsoap.sh
Copy
Search Site
Search Google
, you may run into an issue with the system not finding the liquidsoap binary. The information in this article can easily fix this issue.
Issue Details
If the system is not synced with the current version of OPAM
Copy
Search Site
Search Google
, you will run into this issue of being
Unable to find liquidsoap binary in your path.
Recreate Issue
The environment is not in sync with the current switch and will need to be updated to complete the start of your station.
Resolve Issue
When you are running multiple stations on your [Linux server] running [Icecast] with [Liquidsoap], you will need to start and stop each station alone.
The following demonstrates how to start the station, what errors you may encounter, and how to get past them and successfully start your station.


./daemonize-liquidsoap.sh 101.liq
Copy
Search Site
Search Google

If you get this error.
[opam switch]
Unable to find liquidsoap binary in your path.

Run the following.
opam switch
Copy
Search Site
Search Google
[opam env]
If you see the following warning
[WARNING] The environment is not in sync with the current switch.

You will need to run the following code to sync with the current version.
eval $(opam env)
Copy
Search Site
Search Google
[Start Station]
After you have done the above, you should then be able to run the following line.
./daemonize-liquidsoap.sh 101.liq
Copy
Search Site
Search Google

To start your station.
sudo systemctl start 101.liq-liquidsoap
Copy
Search Site
Search Google

To get the status of your station to make sure it is running.
sudo systemctl status 101.liq-liquidsoap
Copy
Search Site
Search Google

[CMD/Linux - ]
The output of a successfully running station.
CFFCS | CarrzSynEdit: | CMD (Windows Command Prompt) | L (Linux)
101.liq-liquidsoap.service - 101.liq Liquidsoap daemon
Loaded: loaded (/etc/systemd/system/101.liq-liquidsoap.service; disabled; vendor preset: enabled)
Active: active (running) since Thu 2021-08-26 18:24:21 EDT; 19s ago
Docs: http://liquidsoap.fm/
Process: 29252 =/home/iceUser/.opam/default/bin/liquidsoap /home/iceUser/liquidsoap-daemon/s>
Main PID: 29266 (liquidsoap)
Tasks: 10 (limit: 2250)
Memory: 73.3M
CGroup: /system.slice/101.liq-liquidsoap.service
+-29266 /home/iceUser/.opam/default/bin/liquidsoap /home/iceUser/liquidsoap-daemon/script/10>

Aug 26 18:24:20 linuxcore-03 systemd[1]: Starting 101.liq Liquidsoap daemon...
Aug 26 18:24:21 linuxcore-03 systemd[1]: Started 101.liq Liquidsoap daemon.