I need help with my config file.
I’m running Ubuntu 20.04 Desktop with an Blackmagic Ultrastudio HD Mini on TB3.
And want to work with casparcg. I installed directly with softwaremanager in Ubuntu.
There are some threads i read about config Ubuntu and Ultrastudio.
So i customized the config-file.
The error i get is [Error] ## Invalid configuration file ###
thank you for your quick reply.
I tried backslashes, but the error is the same and another message comes up. [fatal] At casparcg.config.0: read error. Please check the configuration file (casparcg.config) for errors.
Hi!
With CasparCG installed over package manager, you unfortunately don’t have read privileges on the config file. Try chmoding the config file and it should work. Or if you build it from source (it’s not difficult, there are docker images that do that automatically, but I only tried it on “officialy supported” Ubuntu 18.04), you will also get html template support. Alternatively you can try running CasparCG with sudo, but I don’t recommend it longterm…
Do the folders that are defined in paths exist, and are readable by the user that runs casparcg?
EDIT: I didn’t realize it didn’t work even with the simplest config at the point of writing this reaction. But I just tried on Ubuntu 20.04 with freshly installed casparcg. And all I needed to do was chmoding/chowning the config file and then I got different error (“Aborted (core dumped)”), after that I changed paths to existing folders and then it worked fine.
Yes, the folders exist and are readable for the user.
Saturday is the next time i can work on the machine.
Then i will delete the folders, make new ones an rry to chown the usr/share/casparcg-server folder
Hi, i got the machine back today and tried everything you posted
the folders are directly in /usr/share/casparcg, i chmod/chowned them,
i inserted the folders with full directory and with “media/”, etc.
The error i got was
i made a fresh install of Ubuntu 20.04 Desktop, did the updates, installed casparcg-server via
sudo apt install casparcg-server
added the folders media, data, etc. directly to /usr/share/casparcg-server/
chowned the folder with sudo chown user:group /usr/share/casparcg-server
did the chmod with sudo chmod -R 775 /usr/share/casparg-server/ i did the same with casparcg.config
in config file i tried with
Hi!
i tried with creating the folder locacion relative to the executable (/usr/bin/…), chmod/chown them,
and added the absolut paths (e.g. /usr/bin/data/) to casparcg.config unfortunately without success.
As long as it says invalid config file I think that it can not open and read the file. Caspar is quite forgiving to wrong settings, by ignoring them and use defaults. So there is either something wrong with the access rights or the file is not valid XML. It could also be stored in a false encoding, should be UTF-8.
I made the config and all folders read and writeable to all users, checked it with the config validator (Config passed XML validation), checked that the config file is stored Unicode UTF-8 and restarted the machine.