Hi. We have used casparcg for a few months now with great success, but we have one weird problem. Every time (or at least most of the time) when we restart the computer casparcg is running on, the html producer does not work. When sending a simple command, for instance
I get no response, and if I try to run INFO 1 , that does not return any response either. The only way of getting a response again, is restarting casparcg, but when re-running the CG command, the channel is locked up again.
I have been able to get it to work again every time, but a combination of a few restart, deleting the cache, connecting using chrome inspect, and probably a bit of luck. When it works, it works forever, until restarting again.
We’re running casparcg 2.4 on Ubuntu 24.04.3. Using decklink for output. I hope someone out there knows what I can do to work around this, or to consistenly being able to fix it when it happens. Let me know if you need me to provide any more info.
There are usually less problems, yes. I suppose it has to do, that Windows is a monolithic block, that has not many flavors, while Linux is more modular. But that is only an educated guess.
Why not Windows 11? The computer we use is pretty new, so it has windows 11 installed (in addition to Linux).
In other news, it now works when I’m running casparcg-server-2.4 directly in a ssh session, but when running using systemd, it will not show any templates. And there are no logging, even when setting log-level to trace. How can I show the logs for the cef processes?
This is the systemd service file (running as a user service)
[Unit]
Description=CasparCG Server
After=network.target sound.target graphical.target
Requires=casparcg-scanner.service
PartOf=graphical-session.target
[Service]
Environment=LD_LIBRARY_PATH=/usr/local/lib
# Working directory of CasparCG
WorkingDirectory=/opt/casparcg
# The command to start CasparCG
ExecStart=/usr/bin/casparcg-server-2.4
# Restart settings
Restart=always
RestartSec=2
[Install]
WantedBy=graphical-session.target
As always in the Windows world you should skip the next version of windows. That has been a pattern since Windows NT 4 (good), Win 2000 (not so good) Windows XP (very good) Windows Vista (very bad) Win 7 (very good) Win 8 (bad) Win 10 (very good) Win 11 (not so good).
For your other questions I am not really of any help, as I never used LInux myself. - But maybe it is that you have no desktop environment loaded, so that the HTML templates do not render properly. There is a chrome browser (CEF) embedded into Caspar. - Just an idea.
Or maybe it’s just a user rights issue. In Windows the Caspar process needs to have at least local admin privilege to run properly. Maybe that’s the same in Linux.
2.4 doesnt have any support for running either casparcg or cef without a xorg server to setup opengl/cef. 2.5/master should run better, but I dont know how thoroughly tested it has been
There are usually less problems, yes. I suppose it has to do, that Windows is a monolithic block, that has not many flavors, while Linux is more modular. But that is only an educated guess.
Well, casparcg is certainly more tested on windows, but some users also have problems too.
These specific issues would go away, other issues could occur, but also then you have to deal with windows (which in my experience is always a pain)
I’m running using systemctl user services, which means it’s using the desktop environment. I have also investigated the environment variables and see that the DESKTOP env variable is set correctly. When it works, I’m starting it from a ssh session, where I set the DESKTOP env variable explicitly to give it access to the desktop environment.
The exact systemctl setup worked perfectly before restaring the machine