Building & running server v2.3.0 LTS on Ubuntu 20.04

Sorry, it was. Will I be able to just install this not in a docker and just have it dedicated to CasparCG only?

@bifuteki correct, docker is only used to build CasparCG Server. At the end it’s extracted from the container and is ready to be run on the host system. At that point you can uninstall docker.

Yep, now it works again :exploding_head:

Hi there
I followed your whole steps to build the ccg server on ubuntu 20.04.
But when I run the ./run.sh command, the terminal answers :
Type “q” to close application.
Aborted (core dumped)
Have you got an idea of my error ?
Thanks

It’s hard to tell without any logs. Please post contents of the terminal, hopefully that will shed some light on it. D-mo

please find out my terminal logs
log.htm (523.5 KB)

Not the build log and please post it in a code block.

Sorry about this.
I finally succeeded to launch CCG, after lots of try.
It was simply in the need of a root permission.
Do you know how to build the media-scanner (that is quite usefull) ?

Here are the scripts for the scanner. I wrote them a while ago and haven’t tested since. Save them into build-scanner and extract-scanner files, make executable and run one after another.

build-scanner

#!/bin/bash
docker build --tag casparcg/scanner - <<EOF
    FROM node:8.9.4

    WORKDIR /opt
    RUN git clone https://github.com/CasparCG/media-scanner.git --depth 1 scanner

    WORKDIR /opt/scanner
    RUN npm install && npm run build-linux
    RUN mv ./dist /scanner
EOF

extract-scanner

#!/bin/bash
id=$(docker create casparcg/scanner)
docker cp $id:/scanner .
docker rm -v $id

Hi,
thanks for all the good work, casparCG seems to be exactly what I need
but… I don’t manage yet to get it to work
On ubuntu 20.04.2, I installed casparcg thru apt-get
It runs but complains about failed to connect to media server
so I ran the 2 above script
It gave me a folder with 2 files : scanner and leveldone.node
if i ran scanner, i get the following
what I’m missing? (I’m a kind of noob)

pkg/prelude/bootstrap.js:1172
throw error;
^
Error: ENOENT: no such file or directory, open ‘./casparcg.config’

  1. If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in ‘require’ call. 2) If you don’t want to compile the package/file into executable and want to ‘require’ it from filesystem (likely plugin), specify an absolute path in ‘require’ call using process.cwd() or process.execPath.
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.openSync (pkg/prelude/bootstrap.js:483:32)
    at Object.fs.readFileSync (fs.js:551:33)
    at Object.fs.readFileSync (pkg/prelude/bootstrap.js:675:36)
    at Object. (/snapshot/scanner/src/config.js:0:0)
    at Module._compile (pkg/prelude/bootstrap.js:1243:22)
    at Object.Module._extensions…js (module.js:644:10)
    at Module.load (module.js:552:32)
    at tryModuleLoad (module.js:495:12)
    at Function.Module._load (module.js:487:3)

leveldone.node return a segmentation error

This pretty much tells you what the problem is. CCG server requires casparcg.config file for it to run. And so does the scanner. You have to run the scanner in the same directory as the server.

IMHO you don’t want to use the server from the repositories. Just follow the guide to build it yourself.

Gonna give this a try now

Hello. Will this work on Ubuntu 22.04 which was just released?

Got it working. Just need scanner to actually work.

Error: yargs parser supports a minimum Node.js version of 10. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions
    at Object.<anonymous> (/snapshot/media-scanner/node_modules/yargs-parser/build/index.cjs:1007:15)
    at Module._compile (pkg/prelude/bootstrap.js:1243:22)
    at Object.Module._extensions..js (module.js:644:10)
    at Module.load (module.js:552:32)
    at tryModuleLoad (module.js:495:12)
    at Function.Module._load (module.js:487:3)
    at Module.require (module.js:577:17)
    at Module.require (pkg/prelude/bootstrap.js:1153:31)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/snapshot/media-scanner/node_modules/yargs/build/index.cjs:2855:16)

Sorry I don’t know.

I currently have no interest in 2.3 series, as they’ve limited number of audio channels to 8, which is not enough for our application.

I am sticking with 2.1 NRK version for now and will try to get it running on 22.04 at some point soon(ish).

Does NRK’s allow for HTML in Ubuntu?

@bifuteki yes it does. See this thread:

Dear @dimitry_ishenko i am following your steps to build caspar server using docker. It was good till the last command root@433640bbdd37:/opt/build/server# make -j8 . This command ends with errors.

Any ideas about this problem? I’m using linux mint 19. Thank you very much.
Marcelo