CasparCG / server

CasparCG Server is a Windows and Linux software used to play out professional graphics, audio and video to multiple outputs. It has been in 24/7 broadcast production since 2006. Ready-to-use downloads are available under the Releases tab https://casparcg.com.
GNU General Public License v3.0
900 stars 268 forks source link

Bug: crash with NSSLIB (persistend database error) #1532

Open MauriceVeraart opened 4 months ago

MauriceVeraart commented 4 months ago

Observed Behavior

Don't know if this a bug . or bad configuration

After regular updates in ubuntu 22.04 Caspar crashes after ca 2s with error


[0418/134551.604609:WARNING:policy_logger.cc(148)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(88) Could not create policy manager as CBCM is not enabled.
[0418/090640.822024:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[0418/090646.032469:ERROR:nss_util.cc(239)] Error initializing NSS with a persistent database (sql:/home/user/.pki/nssdb): NSS error code: -8023
[0418/090646.032643:ERROR:nss_util.cc(124)] Error initializing NSS without a persistent database: NSS error code: -8023
[0418/090646.032702:FATAL:nss_util.cc(126)] nss_error=-8023, os_error=0
Trace/breakpoint trap (core dumped)

after installing chromium-browser and removing these files from the lib directory it started to work.

libnss3.so
libnssckbi.so 
libnssutil3.so

See forum discussion https://casparcgforum.org/t/ubuntu-server-crashing-after-2seconds

Expected behaviour

-nvt

Steps to reproduce

run latest updates with ap-get update/upgrade

Environment

Julusian commented 3 months ago

I'm not really sure what to do about this.

One answer would be to stop shipping those libs, but then that requires users to ensure those libs are installed on their system, which they may not be if chrome/chromium aren't installed.

Or perhaps it is time to stop distributing ubuntu builds as a zip. I have been playing around with an ubuntu ppa, but I am not sure I would recommend using it as it only preserves the latest build of each package. But I have copied the produced debs to the 2.4.0 release, so maybe using those should become the recommended install flow for linux. These debs rely solely on system dependencies, including cef which is included there as its own deb. The downside of this approach is that there are maybe 100 dependencies, which will make offline installs be painful. (equally, trying to install decklink drivers offline will be similarly painful)

I am interested to hear from users on how they would like to see linux being packaged going forwards.

1358 commented 1 month ago

Faced the same issue. Recompiling the server after the system updates fixed it.