Closed tristan-nel closed 4 years ago
Hi!
I cannot see anything useful in this log.. Any chance you could get more logs from liquidsoap itself? You can try to use: set("log.file","/tmp/debug.log")
and see what you get..
I have set the log file path, but no log is being generated (the server is never run)
This is my server.liq file. The required default.wav
and request.py
files are in the specified directories.
# Log dir
set("log.file.path","./radio.log")
# Settings
set("server.telnet", true)
set("server.telnet.port", 1234)
set("server.telnet.bind_addr", "0.0.0.0")
set("harbor.bind_addr", "0.0.0.0")
# Functions
def get_request() =
uri = list.hd(default="", get_process_lines("python3 ~/res/request.py"))
request.create(uri, persistent=true)
end
# Requests
requests = request.dynamic(
id="requests",
conservative=false,
get_request
)
# Security
security = single("~/res/default.wav")
# Jingles
jingles = playlist(
"https://storage.googleapis.com/MY_STORAGE_URL/jingles.m3u"
)
# Add the security, requests and smart crossfade
radio = crossfade(
fallback(track_sensitive=false, [requests, security])
)
# Now add some jingles
# One jingle every 7 songs
radio = random(weights=[1,7], [jingles, radio])
# Make safe
# radio = mksafe(radio)
# Add a skip command to the music stream
server.register(
usage="skip",
description="Skip the current song",
"skip",
fun(_) -> begin source.skip(radio) "Done!" end
)
# 10 sec delayed output
delayed = buffer(buffer=10.50, max=10.50, radio)
# Talk over stream using microphone mount.
mic = input.harbor(
"mic",
port=8080,
password="hackme",
#buffer=1.0
buffer=0.0
)
delayed = smooth_add(
#delay=0.8,
delay=0.0,
p=0.15,
normal=delayed,
special=mic
)
# Stream
output.icecast(
%vorbis,
host = "localhost",
port = 8000,
password = "hackme",
mount = "miradio.ogg",
delayed
)
output.icecast(
%vorbis,
host = "localhost",
port = 8000,
password = "hackme",
mount = "admin.ogg",
radio
)
looks very similiar to what i experience in #23
I think your issue is at least from this:
set("log.file.path","./radio.log")
You need to provide a full path to the logs as the daemonized service will start without a defined working directory. Likewise, you should make sure that that location is writable by the user under which the daemonized service will run.
I'll close this issue for now since I don't believe that it is related to liquidsoap itself. Feel free to reopen or come chat in our slack channel!
I have install the latest liquidsoap (1.4.0) via opam. My server.liq file runs fine with
liquidsoap server.liq
but I want it to run in the background as a service on a cloud VM.Attempting to start the daemonized service as follow fails: