question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Docker] Failling to rendering template `<.Env.XMPP_MUC_DOMAIN>: invalid value`

See original GitHub issue

Description:

While running compose, I got multiple various message that seems due the same original cause.

# podman-compose logs web
using podman version: podman version 3.3.1
podman logs jitsifoo_web_1
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-set-timezone: executing... 
[cont-init.d] 01-set-timezone: exited 0.
[cont-init.d] 10-config: executing... 
using keys found in /config/keys
fatal: render template error, caused:

   template: /defaults/system-config.js:11:45: executing "/defaults/system-config.js" at <.Env.XMPP_MUC_DOMAIN>: invalid value; expected string

[cont-init.d] 10-config: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
nginx: [emerg] invalid number of arguments in "proxy_pass" directive in /config/nginx/meet.conf:59
nginx: [emerg] invalid number of arguments in "proxy_pass" directive in /config/nginx/meet.conf:59
nginx: [emerg] invalid number of arguments in "proxy_pass" directive in /config/nginx/meet.conf:59
nginx: [emerg] invalid number of arguments in "proxy_pass" directive in /config/nginx/meet.conf:59

To my understanding XMPP_MUC_DOMAIN env var is not defined or not a string. Thus:

  1. this error is raised template: /defaults/system-config.js:11:45: executing "/defaults/system-config.js" at <.Env.XMPP_MUC_DOMAIN>: invalid value; expected string
  2. as the variable is not filled the file /nginx/meet.conf is incomplete
  3. this error is raised nginx: [emerg] invalid number of arguments in "proxy_pass" directive in /config/nginx/meet.conf:59

Steps to reproduce:

  1. curl -Lo/tmp/docker_jitsi.tar.gz https://github.com/jitsi/docker-jitsi-meet/archive/refs/tags/stable-6726-1.tar.gz
  2. tar xf /tmp/docker_jitsi.tar.gz -C /var/www/jitsi.microbiomestudio.fr/ --strip-components=1

Actual behavior:

We can see from file system-config.js that XMPP_MUC_DOMAIN is filled from its corresponding env var

# grep XMPP_MUC_DOMAIN ./web/rootfs/defaults/system-config.js
{{ $XMPP_MUC_DOMAIN := .Env.XMPP_MUC_DOMAIN -}}
{{ $XMPP_MUC_DOMAIN_PREFIX := (split "." .Env.XMPP_MUC_DOMAIN)._0  -}}
config.hosts.muc = '{{ $XMPP_MUC_DOMAIN_PREFIX }}.'+subdomain+'{{ $XMPP_DOMAIN }}';
config.hosts.muc = '{{ $XMPP_MUC_DOMAIN }}';

The env file declare the expected variable

# grep XMPP_MUC_DOMAIN .env
XMPP_MUC_DOMAIN="muc.meet.jitsi"

I even defined the variable into the current bash session to ensure its presence.

Thanks for your helps

Best regards

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bioinfornaticscommented, Jan 12, 2022

@saghul Thanks for your answer. I agree, that seems more a podman-compose problem I tried to install from source jitsi-meet on a rocky linux but after some works I chose an easier path using container so I tried first podman which fail. Now I try with docker that works better but it is not the ideal case

0reactions
saghulcommented, Mar 11, 2022

Closing this this is a podman issue. Podman support is tracked at https://github.com/jitsi/docker-jitsi-meet/issues/201

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jicofo failing to start due to config error - Jitsi Community Forum
I tried several past unstable docker builds including today (unstable-2022-10-31) too but jicofo is failing to start due to following config ...
Read more >
v6.1.4 (2020-05-15) — Err 6.1.4 documentation
403 error when fetching plugin repos index (#1425) ... a deprecation warning for 3.9 on Mapping. removing the intermediate domain requiring a certificate....
Read more >
Openfire Changelog - Ignite Realtime Downloads
[OF-2415] - Openfire Docker image fails to start if an empty plugins directory exists ... [OF-2482] - Error when opening keystore admin console...
Read more >
XMPP Stream gets disconnected on joining a MUC room
I implemented xmppStreamDidDisconnect:withError too, but it's still giving nil error. The user also leaves the room immediately after joining it ...
Read more >
Untitled
Fix device error 365, Jalur merah kuning hijau, Letter 2 my son mp3, Route 93 my love, ... 16399 forest way macomb mi,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found