Jibri Docker record without webcam and audio

Hi,

My Jibri-Docker dont save webcam and audio in MP4 file.
Then, I access docker and run:
/etc/init.d/dbus status
I see:
“[FAIL] dbus is not running … failed!”
Then, exec:
/etc/init.d/dbus start
Now Jibri work successfull with webcam and audio.

Where I put this command in docker start ?

Welcome to Jitsi community!
Try this shell command.

sudo systemctl enable dbus

Jibri Docker have systemd ?

#systemctl enable dbus
Synchronizing state of dbus.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable dbus
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.

Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit’s
.wants/ or .requires/ directory.
• A unit’s purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, …).
• In case of template units, the unit is meant to be enabled with some
instance name specified.

I change 2 files to work:

In jibri/Dockerfile add :

RUN
mkdir /tmp/.X11-unix &&
chmod 1777 /tmp/.X11-unix &&
/etc/init.d/dbus start

I create jibri/rootfs/etc/services.d/40-dbus/run :

#!/usr/bin/with-contenv bash

DAEMON="/usr/bin/dbus-daemon"
PIDFILE="/var/run/dbus/pid"
rm -f $PIDFILE
exec s6-setuidgid root /bin/bash -c “exec $DAEMON --system --nofork”

I follow your suggestion to create those two files , but dbus is still not running in the jibri container after restart the image. (I installed docker-jitsi-meet-stable-5765-1 on top of RHEL 8.3)
Even if I manually run /etc/init.d/dbus start , then seems dbus is up and running but the recording still failed right away.

in the /tmp/xorg.log I saw:

[235978.360] (EE) systemd-logind: failed to get session: Launch helper exited with unknown return code 1

Any advice please?

Here is the processes list after I manually started the /etc/init.d/dbus start
root@fe903ec3227e:/tmp# ps -eaf
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 18:52 ? 00:00:00 s6-svscan -t0 /var/run/s6/services
root 32 1 0 18:52 ? 00:00:00 s6-supervise s6-fdholderd
root 240 1 0 18:52 ? 00:00:00 s6-supervise 10-xorg
root 242 1 0 18:52 ? 00:00:00 s6-supervise 20-icewm
root 244 1 0 18:52 ? 00:00:00 s6-supervise 30-jibri
jibri 245 240 0 18:52 ? 00:00:00 /usr/lib/xorg/Xorg -nocursor -noreset +extension RANDR +extension RENDER -logfile /tmp/xorg.log -config /etc/jitsi/jibri/xorg-video-dummy.conf :0
jibri 247 242 0 18:52 ? 00:00:00 /usr/bin/icewm-session
jibri 248 244 0 18:52 ? 00:00:08 java -Djava.util.logging.config.file=/etc/jitsi/jibri/logging.properties -Dconfig.file=/etc/jitsi/jibri/jibri.conf -jar /opt/jitsi/jibri/jibri.jar --config /etc/jitsi/jibri/config.json
jibri 265 247 0 18:52 ? 00:00:00 /usr/bin/icewmbg
jibri 266 247 0 18:52 ? 00:00:00 /usr/bin/icewm --notify
root 370 0 0 18:53 pts/0 00:00:00 bash
message+ 456 1 0 19:07 ? 00:00:00 /usr/bin/dbus-daemon --system
root 520 370 0 19:14 pts/0 00:00:00 ps -eaf

Thank you very much for your reply!

Since I am new to jitsi and docker , I just followed the guide in Self-Hosting Guide - Docker · Jitsi Meet Handbook

I will try to understand your instruction a bit more and definitely will try it.

Regards!

Thomas

Hi,

Do this:
#Stop Docker
docker-compose -f docker-compose.yml -f jibri.yml down
#Get image name
grep image jibri.yml
#Run build
docker build -t ??? dir
where ??? is image name and dir is directory
#Start docker
docker-compose -f docker-compose.yml -f jibri.yml up -d