[jitsi-dev] Jitsi Meet is not detecting Nginx installation


#1

Hi Jitsi team!

I'm doing a new installation of Jitsi Meet on a server with Ubuntu
16.04. But during the installation I found it is not adding the config
files for Nginx. Thinking that the problem is only this, I added the
config files manually, but, when restarting, Nginx fails because it
finds that port 443 is already in use. This leads me to think that Jitsi
Meet then is running a Jetty instance because it is not finding Nginx.

···

-----------------------------------------------------------------------
# systemctl restart nginx
Job for nginx.service failed because the control process exited with
error code. See "systemctl status nginx.service" and "journalctl -xe"
for details.
-----------------------------------------------------------------------
# systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
preset: enabled)
   Active: failed (Result: exit-code) since Wed 2018-04-11 02:59:57 UTC;
24s ago
  Process: 56369 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry
QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)
  Process: 57485 ExecStart=/usr/sbin/nginx -g daemon on; master_process
on; (code=exited, status=1/FAILURE)
  Process: 57471 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
master_process on; (code=exited, status=0/SUCCESS)
Main PID: 56254 (code=exited, status=0/SUCCESS)

Apr 11 02:59:55 jitsi2 nginx[57485]: nginx: [emerg] bind() to
0.0.0.0:443 failed (98: Address already in use)
Apr 11 02:59:55 jitsi2 nginx[57485]: nginx: [emerg] bind() to
0.0.0.0:443 failed (98: Address already in use)
Apr 11 02:59:56 jitsi2 nginx[57485]: nginx: [emerg] bind() to
0.0.0.0:443 failed (98: Address already in use)
Apr 11 02:59:56 jitsi2 nginx[57485]: nginx: [emerg] bind() to
0.0.0.0:443 failed (98: Address already in use)
Apr 11 02:59:57 jitsi2 nginx[57485]: nginx: [emerg] bind() to
0.0.0.0:443 failed (98: Address already in use)
Apr 11 02:59:57 jitsi2 nginx[57485]: nginx: [emerg] still could not bind()
Apr 11 02:59:57 jitsi2 systemd[1]: nginx.service: Control process
exited, code=exited status=1
Apr 11 02:59:57 jitsi2 systemd[1]: Failed to start A high performance
web server and a reverse proxy server.
Apr 11 02:59:57 jitsi2 systemd[1]: nginx.service: Unit entered failed state.
Apr 11 02:59:57 jitsi2 systemd[1]: nginx.service: Failed with result
'exit-code'.
-----------------------------------------------------------------------

I have tried this with the packages of the stable branch as with the
packages of the testing branch and the result was the same.

Initially I had used the stable repo of Jitsi Meet with the repo of
Prosody for Xenial, but as the installation gave some errors, I
eliminated that repo from Prosody and used the standard repo from
Xenial. But now I'm having this problem with Nginx.

I have removed and purged the packages at each test, but the result was
the same.

Here you are a log of the installation of Jitsi Meet:

-----------------------------------------------------------------------
(Reading database ... 55251 files and directories currently installed.)

Preparing to unpack .../liblcms2-2_2.6-3ubuntu2_amd64.deb ...
Unpacking liblcms2-2:amd64 (2.6-3ubuntu2) ...
Preparing to unpack .../x11-common_1%3a7.7+13ubuntu3_all.deb ...
Unpacking x11-common (1:7.7+13ubuntu3) ...
Preparing to unpack .../libxtst6_2%3a1.2.2-1_amd64.deb ...
Unpacking libxtst6:amd64 (2:1.2.2-1) ...
Preparing to unpack .../libnspr4_2%3a4.13.1-0ubuntu0.16.04.1_amd64.deb ...
Unpacking libnspr4:amd64 (2:4.13.1-0ubuntu0.16.04.1) ...
Selecting previously unselected package libnss3-nssdb.
Preparing to unpack
.../libnss3-nssdb_2%3a3.28.4-0ubuntu0.16.04.3_all.deb ...
Unpacking libnss3-nssdb (2:3.28.4-0ubuntu0.16.04.3) ...
Preparing to unpack .../libnss3_2%3a3.28.4-0ubuntu0.16.04.3_amd64.deb ...
Unpacking libnss3:amd64 (2:3.28.4-0ubuntu0.16.04.3) ...
Preparing to unpack .../ca-certificates-java_20160321ubuntu1_all.deb ...
Unpacking ca-certificates-java (20160321ubuntu1) ...
Preparing to unpack .../java-common_0.56ubuntu2_all.deb ...
Unpacking java-common (0.56ubuntu2) ...
Selecting previously unselected package libxi6:amd64.
Preparing to unpack .../libxi6_2%3a1.7.6-1_amd64.deb ...
Unpacking libxi6:amd64 (2:1.7.6-1) ...
Preparing to unpack .../libxrender1_1%3a0.9.9-0ubuntu1_amd64.deb ...
Unpacking libxrender1:amd64 (1:0.9.9-0ubuntu1) ...
Preparing to unpack
.../openjdk-8-jre-headless_8u162-b12-0ubuntu0.16.04.2_amd64.deb ...
Unpacking openjdk-8-jre-headless:amd64 (8u162-b12-0ubuntu0.16.04.2) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ca-certificates (20170717~16.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up java-common (0.56ubuntu2) ...
Setting up liblcms2-2:amd64 (2.6-3ubuntu2) ...
Setting up libnspr4:amd64 (2:4.13.1-0ubuntu0.16.04.1) ...
Setting up libxi6:amd64 (2:1.7.6-1) ...
Setting up libxrender1:amd64 (1:0.9.9-0ubuntu1) ...
Setting up x11-common (1:7.7+13ubuntu3) ...
update-rc.d: warning: start and stop actions are no longer supported;
falling back to defaults
Setting up libxtst6:amd64 (2:1.2.2-1) ...
Setting up libnss3-nssdb (2:3.28.4-0ubuntu0.16.04.3) ...
Setting up libnss3:amd64 (2:3.28.4-0ubuntu0.16.04.3) ...
Setting up openjdk-8-jre-headless:amd64 (8u162-b12-0ubuntu0.16.04.2) ...
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/rmid to provide /usr/bin/rmid
(rmid) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java to provide /usr/bin/java
(java) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool to provide
/usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/jjs
to provide /usr/bin/jjs (jjs) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/pack200 to provide
/usr/bin/pack200 (pack200) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/rmiregistry to provide
/usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/unpack200 to provide
/usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/orbd to provide /usr/bin/orbd
(orbd) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/servertool to provide
/usr/bin/servertool (servertool) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/tnameserv to provide
/usr/bin/tnameserv (tnameserv) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jexec to provide
/usr/bin/jexec (jexec) in auto mode
Setting up ca-certificates-java (20160321ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for ca-certificates (20170717~16.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.
Selecting previously unselected package jitsi-videobridge.
(Reading database ... 55543 files and directories currently installed.)
Preparing to unpack .../jitsi-videobridge_1051-1_amd64.deb ...
Unpacking jitsi-videobridge (1051-1) ...
Selecting previously unselected package jicofo.
Preparing to unpack .../jicofo_1.0-402-1_amd64.deb ...
Unpacking jicofo (1.0-402-1) ...
Selecting previously unselected package jitsi-meet-web.
Preparing to unpack .../jitsi-meet-web_1.0.2700-1_all.deb ...
Unpacking jitsi-meet-web (1.0.2700-1) ...
Selecting previously unselected package jitsi-meet-web-config.
Preparing to unpack .../jitsi-meet-web-config_1.0.2700-1_all.deb ...
Unpacking jitsi-meet-web-config (1.0.2700-1) ...
Preparing to unpack .../ssl-cert_1.0.37_all.deb ...
Unpacking ssl-cert (1.0.37) ...
Selecting previously unselected package lua5.1.
Preparing to unpack .../lua5.1_5.1.5-8ubuntu1_amd64.deb ...
Unpacking lua5.1 (5.1.5-8ubuntu1) ...
Preparing to unpack .../lua-expat_1.3.0-3_amd64.deb ...
Unpacking lua-expat:amd64 (1.3.0-3) ...
Preparing to unpack .../lua-socket_3.0~rc1+git+321c0c9-1_amd64.deb ...
Unpacking lua-socket:amd64 (3.0~rc1+git+321c0c9-1) ...
Selecting previously unselected package lua-sec:amd64.
Preparing to unpack .../lua-sec_0.5.1-1_amd64.deb ...
Unpacking lua-sec:amd64 (0.5.1-1) ...
Preparing to unpack .../lua-filesystem_1.6.3-1_amd64.deb ...
Unpacking lua-filesystem:amd64 (1.6.3-1) ...
Selecting previously unselected package prosody.
Preparing to unpack .../prosody_0.9.10-1_amd64.deb ...
Unpacking prosody (0.9.10-1) ...
Selecting previously unselected package jitsi-meet-prosody.
Preparing to unpack .../jitsi-meet-prosody_1.0.2700-1_all.deb ...
Unpacking jitsi-meet-prosody (1.0.2700-1) ...
Preparing to unpack .../jitsi-meet_1.0.2942-1_all.deb ...
Unpacking jitsi-meet (1.0.2942-1) ...
Preparing to unpack .../lua-event_0.4.3-2_amd64.deb ...
Unpacking lua-event:amd64 (0.4.3-2) ...
Preparing to unpack .../authbind_2.1.1+nmu1_amd64.deb ...
Unpacking authbind (2.1.1+nmu1) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up jitsi-videobridge (1051-1) ...
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
* Applying /etc/sysctl.d/10-console-messages.conf ...
kernel.printk = 4 4 1 7
* Applying /etc/sysctl.d/10-ipv6-privacy.conf ...
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
* Applying /etc/sysctl.d/10-kernel-hardening.conf ...
kernel.kptr_restrict = 1
* Applying /etc/sysctl.d/10-link-restrictions.conf ...
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
* Applying /etc/sysctl.d/10-lxd-inotify.conf ...
fs.inotify.max_user_instances = 1024
* Applying /etc/sysctl.d/10-magic-sysrq.conf ...
kernel.sysrq = 176
* Applying /etc/sysctl.d/10-network-security.conf ...
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.tcp_syncookies = 1
* Applying /etc/sysctl.d/10-ptrace.conf ...
kernel.yama.ptrace_scope = 1
* Applying /etc/sysctl.d/10-zeropage.conf ...
vm.mmap_min_addr = 65536
* Applying /etc/sysctl.d/20-jvb-udp-buffers.conf ...
net.core.rmem_max = 10485760
net.core.netdev_max_backlog = 100000
* Applying /etc/sysctl.d/99-cloudimg-ipv6.conf ...
net.ipv6.conf.all.use_tempaddr = 0
net.ipv6.conf.default.use_tempaddr = 0
* Applying /etc/sysctl.d/99-sysctl.conf ...
* Applying /etc/sysctl.conf ...
Setting up jicofo (1.0-402-1) ...
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
Setting up jitsi-meet-web (1.0.2700-1) ...
Setting up jitsi-meet-web-config (1.0.2700-1) ...
Generating a 4096 bit RSA private key
.....................................................................................++
....................++
writing new private key to '/etc/jitsi/meet/jitsi.example.com.key'
-----
Importing keystore /etc/jitsi/videobridge/jitsi.example.com.p12 to
/etc/jitsi/videobridge/jitsi.example.com.jks...
Entry for alias 1 successfully imported.
Import command completed: 1 entries successfully imported, 0 entries
failed or cancelled

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate
to PKCS12 which is an industry standard format using "keytool
-importkeystore -srckeystore
/etc/jitsi/videobridge/jitsi.example.com.jks -destkeystore
/etc/jitsi/videobridge/jitsi.example.com.jks -deststoretype pkcs12".
----------------

You can now switch to a Let’s Encrypt certificate. To do so, execute:
/usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh

----------------
Setting up ssl-cert (1.0.37) ...
Setting up lua5.1 (5.1.5-8ubuntu1) ...
update-alternatives: using /usr/bin/lua5.1 to provide /usr/bin/lua
(lua-interpreter) in auto mode
update-alternatives: using /usr/bin/luac5.1 to provide /usr/bin/luac
(lua-compiler) in auto mode
Setting up lua-expat:amd64 (1.3.0-3) ...
Setting up lua-socket:amd64 (3.0~rc1+git+321c0c9-1) ...
Setting up lua-sec:amd64 (0.5.1-1) ...
Setting up lua-filesystem:amd64 (1.6.3-1) ...
Setting up prosody (0.9.10-1) ...
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
Adding user prosody to group ssl-cert
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
Setting up jitsi-meet-prosody (1.0.2700-1) ...
Generating RSA private key, 2048 bit long modulus
..............................................................+++
................................................+++
e is 65537 (0x10001)
Choose key size (2048): Key written to
/var/lib/prosody/jitsi.example.com.key
Please provide details to include in the certificate config file.
Leave the field empty to use the default value or '.' to exclude the field.
countryName (GB): localityName (The Internet): organizationName (Your
Organisation): organizationalUnitName (XMPP Department): commonName
(jitsi.example.com): emailAddress (xmpp@jitsi.example.com):
Config written to /var/lib/prosody/jitsi.example.com.cnf
Certificate written to /var/lib/prosody/jitsi.example.com.crt
Generating RSA private key, 2048 bit long modulus
.................................................................................................................................................+++
.......+++
e is 65537 (0x10001)
Choose key size (2048): Key written to
/var/lib/prosody/auth.jitsi.example.com.key
Please provide details to include in the certificate config file.
Leave the field empty to use the default value or '.' to exclude the field.
countryName (GB): localityName (The Internet): organizationName (Your
Organisation): organizationalUnitName (XMPP Department): commonName
(auth.jitsi.example.com): emailAddress (xmpp@auth.jitsi.example.com):
Config written to /var/lib/prosody/auth.jitsi.example.com.cnf
Certificate written to /var/lib/prosody/auth.jitsi.example.com.crt
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.
Setting up jitsi-meet (1.0.2942-1) ...
Setting up lua-event:amd64 (0.4.3-2) ...
Setting up authbind (2.1.1+nmu1) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
-----------------------------------------------------------------------

If someone can contribute with something to shed a little more light to
solve this problem, it would be great.

Thanks in advance.

Kind regards,
Daniel


#2

Hi Daniel,

In the shared logs jetty is used.

Here is the check which detects whether nginx is installed:
NGINX_INSTALL_CHECK="$(dpkg-query -f '${Status}' -W 'nginx'
2>/dev/null | awk '{print $3}' || true)"
https://github.com/jitsi/jitsi-meet/blob/master/debian/jitsi-meet-web-config.postinst#L54

Can you execute: dpkg-query -f '${Status}' -W 'nginx' and share the result?

How are you purging? Are you executing:
apt-get --purge remove jitsi-meet jitsi-meet-web jitsi-meet-prosody
jitsi-meet-web-config jicofo jitsi-videobridge

Regards
damencho

···

On Tue, Apr 10, 2018 at 10:31 PM, Daniel Bareiro <daniel-listas@gmx.net> wrote:

Hi Jitsi team!

I'm doing a new installation of Jitsi Meet on a server with Ubuntu
16.04. But during the installation I found it is not adding the config
files for Nginx. Thinking that the problem is only this, I added the
config files manually, but, when restarting, Nginx fails because it
finds that port 443 is already in use. This leads me to think that Jitsi
Meet then is running a Jetty instance because it is not finding Nginx.

-----------------------------------------------------------------------
# systemctl restart nginx
Job for nginx.service failed because the control process exited with
error code. See "systemctl status nginx.service" and "journalctl -xe"
for details.
-----------------------------------------------------------------------
# systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
preset: enabled)
   Active: failed (Result: exit-code) since Wed 2018-04-11 02:59:57 UTC;
24s ago
  Process: 56369 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry
QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)
  Process: 57485 ExecStart=/usr/sbin/nginx -g daemon on; master_process
on; (code=exited, status=1/FAILURE)
  Process: 57471 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
master_process on; (code=exited, status=0/SUCCESS)
Main PID: 56254 (code=exited, status=0/SUCCESS)

Apr 11 02:59:55 jitsi2 nginx[57485]: nginx: [emerg] bind() to
0.0.0.0:443 failed (98: Address already in use)
Apr 11 02:59:55 jitsi2 nginx[57485]: nginx: [emerg] bind() to
0.0.0.0:443 failed (98: Address already in use)
Apr 11 02:59:56 jitsi2 nginx[57485]: nginx: [emerg] bind() to
0.0.0.0:443 failed (98: Address already in use)
Apr 11 02:59:56 jitsi2 nginx[57485]: nginx: [emerg] bind() to
0.0.0.0:443 failed (98: Address already in use)
Apr 11 02:59:57 jitsi2 nginx[57485]: nginx: [emerg] bind() to
0.0.0.0:443 failed (98: Address already in use)
Apr 11 02:59:57 jitsi2 nginx[57485]: nginx: [emerg] still could not bind()
Apr 11 02:59:57 jitsi2 systemd[1]: nginx.service: Control process
exited, code=exited status=1
Apr 11 02:59:57 jitsi2 systemd[1]: Failed to start A high performance
web server and a reverse proxy server.
Apr 11 02:59:57 jitsi2 systemd[1]: nginx.service: Unit entered failed state.
Apr 11 02:59:57 jitsi2 systemd[1]: nginx.service: Failed with result
'exit-code'.
-----------------------------------------------------------------------

I have tried this with the packages of the stable branch as with the
packages of the testing branch and the result was the same.

Initially I had used the stable repo of Jitsi Meet with the repo of
Prosody for Xenial, but as the installation gave some errors, I
eliminated that repo from Prosody and used the standard repo from
Xenial. But now I'm having this problem with Nginx.

I have removed and purged the packages at each test, but the result was
the same.

Here you are a log of the installation of Jitsi Meet:

-----------------------------------------------------------------------
(Reading database ... 55251 files and directories currently installed.)

Preparing to unpack .../liblcms2-2_2.6-3ubuntu2_amd64.deb ...
Unpacking liblcms2-2:amd64 (2.6-3ubuntu2) ...
Preparing to unpack .../x11-common_1%3a7.7+13ubuntu3_all.deb ...
Unpacking x11-common (1:7.7+13ubuntu3) ...
Preparing to unpack .../libxtst6_2%3a1.2.2-1_amd64.deb ...
Unpacking libxtst6:amd64 (2:1.2.2-1) ...
Preparing to unpack .../libnspr4_2%3a4.13.1-0ubuntu0.16.04.1_amd64.deb ...
Unpacking libnspr4:amd64 (2:4.13.1-0ubuntu0.16.04.1) ...
Selecting previously unselected package libnss3-nssdb.
Preparing to unpack
.../libnss3-nssdb_2%3a3.28.4-0ubuntu0.16.04.3_all.deb ...
Unpacking libnss3-nssdb (2:3.28.4-0ubuntu0.16.04.3) ...
Preparing to unpack .../libnss3_2%3a3.28.4-0ubuntu0.16.04.3_amd64.deb ...
Unpacking libnss3:amd64 (2:3.28.4-0ubuntu0.16.04.3) ...
Preparing to unpack .../ca-certificates-java_20160321ubuntu1_all.deb ...
Unpacking ca-certificates-java (20160321ubuntu1) ...
Preparing to unpack .../java-common_0.56ubuntu2_all.deb ...
Unpacking java-common (0.56ubuntu2) ...
Selecting previously unselected package libxi6:amd64.
Preparing to unpack .../libxi6_2%3a1.7.6-1_amd64.deb ...
Unpacking libxi6:amd64 (2:1.7.6-1) ...
Preparing to unpack .../libxrender1_1%3a0.9.9-0ubuntu1_amd64.deb ...
Unpacking libxrender1:amd64 (1:0.9.9-0ubuntu1) ...
Preparing to unpack
.../openjdk-8-jre-headless_8u162-b12-0ubuntu0.16.04.2_amd64.deb ...
Unpacking openjdk-8-jre-headless:amd64 (8u162-b12-0ubuntu0.16.04.2) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ca-certificates (20170717~16.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up java-common (0.56ubuntu2) ...
Setting up liblcms2-2:amd64 (2.6-3ubuntu2) ...
Setting up libnspr4:amd64 (2:4.13.1-0ubuntu0.16.04.1) ...
Setting up libxi6:amd64 (2:1.7.6-1) ...
Setting up libxrender1:amd64 (1:0.9.9-0ubuntu1) ...
Setting up x11-common (1:7.7+13ubuntu3) ...
update-rc.d: warning: start and stop actions are no longer supported;
falling back to defaults
Setting up libxtst6:amd64 (2:1.2.2-1) ...
Setting up libnss3-nssdb (2:3.28.4-0ubuntu0.16.04.3) ...
Setting up libnss3:amd64 (2:3.28.4-0ubuntu0.16.04.3) ...
Setting up openjdk-8-jre-headless:amd64 (8u162-b12-0ubuntu0.16.04.2) ...
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/rmid to provide /usr/bin/rmid
(rmid) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java to provide /usr/bin/java
(java) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool to provide
/usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/jjs
to provide /usr/bin/jjs (jjs) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/pack200 to provide
/usr/bin/pack200 (pack200) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/rmiregistry to provide
/usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/unpack200 to provide
/usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/orbd to provide /usr/bin/orbd
(orbd) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/servertool to provide
/usr/bin/servertool (servertool) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/tnameserv to provide
/usr/bin/tnameserv (tnameserv) in auto mode
update-alternatives: using
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jexec to provide
/usr/bin/jexec (jexec) in auto mode
Setting up ca-certificates-java (20160321ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for ca-certificates (20170717~16.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.
Selecting previously unselected package jitsi-videobridge.
(Reading database ... 55543 files and directories currently installed.)
Preparing to unpack .../jitsi-videobridge_1051-1_amd64.deb ...
Unpacking jitsi-videobridge (1051-1) ...
Selecting previously unselected package jicofo.
Preparing to unpack .../jicofo_1.0-402-1_amd64.deb ...
Unpacking jicofo (1.0-402-1) ...
Selecting previously unselected package jitsi-meet-web.
Preparing to unpack .../jitsi-meet-web_1.0.2700-1_all.deb ...
Unpacking jitsi-meet-web (1.0.2700-1) ...
Selecting previously unselected package jitsi-meet-web-config.
Preparing to unpack .../jitsi-meet-web-config_1.0.2700-1_all.deb ...
Unpacking jitsi-meet-web-config (1.0.2700-1) ...
Preparing to unpack .../ssl-cert_1.0.37_all.deb ...
Unpacking ssl-cert (1.0.37) ...
Selecting previously unselected package lua5.1.
Preparing to unpack .../lua5.1_5.1.5-8ubuntu1_amd64.deb ...
Unpacking lua5.1 (5.1.5-8ubuntu1) ...
Preparing to unpack .../lua-expat_1.3.0-3_amd64.deb ...
Unpacking lua-expat:amd64 (1.3.0-3) ...
Preparing to unpack .../lua-socket_3.0~rc1+git+321c0c9-1_amd64.deb ...
Unpacking lua-socket:amd64 (3.0~rc1+git+321c0c9-1) ...
Selecting previously unselected package lua-sec:amd64.
Preparing to unpack .../lua-sec_0.5.1-1_amd64.deb ...
Unpacking lua-sec:amd64 (0.5.1-1) ...
Preparing to unpack .../lua-filesystem_1.6.3-1_amd64.deb ...
Unpacking lua-filesystem:amd64 (1.6.3-1) ...
Selecting previously unselected package prosody.
Preparing to unpack .../prosody_0.9.10-1_amd64.deb ...
Unpacking prosody (0.9.10-1) ...
Selecting previously unselected package jitsi-meet-prosody.
Preparing to unpack .../jitsi-meet-prosody_1.0.2700-1_all.deb ...
Unpacking jitsi-meet-prosody (1.0.2700-1) ...
Preparing to unpack .../jitsi-meet_1.0.2942-1_all.deb ...
Unpacking jitsi-meet (1.0.2942-1) ...
Preparing to unpack .../lua-event_0.4.3-2_amd64.deb ...
Unpacking lua-event:amd64 (0.4.3-2) ...
Preparing to unpack .../authbind_2.1.1+nmu1_amd64.deb ...
Unpacking authbind (2.1.1+nmu1) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up jitsi-videobridge (1051-1) ...
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
* Applying /etc/sysctl.d/10-console-messages.conf ...
kernel.printk = 4 4 1 7
* Applying /etc/sysctl.d/10-ipv6-privacy.conf ...
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
* Applying /etc/sysctl.d/10-kernel-hardening.conf ...
kernel.kptr_restrict = 1
* Applying /etc/sysctl.d/10-link-restrictions.conf ...
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
* Applying /etc/sysctl.d/10-lxd-inotify.conf ...
fs.inotify.max_user_instances = 1024
* Applying /etc/sysctl.d/10-magic-sysrq.conf ...
kernel.sysrq = 176
* Applying /etc/sysctl.d/10-network-security.conf ...
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.tcp_syncookies = 1
* Applying /etc/sysctl.d/10-ptrace.conf ...
kernel.yama.ptrace_scope = 1
* Applying /etc/sysctl.d/10-zeropage.conf ...
vm.mmap_min_addr = 65536
* Applying /etc/sysctl.d/20-jvb-udp-buffers.conf ...
net.core.rmem_max = 10485760
net.core.netdev_max_backlog = 100000
* Applying /etc/sysctl.d/99-cloudimg-ipv6.conf ...
net.ipv6.conf.all.use_tempaddr = 0
net.ipv6.conf.default.use_tempaddr = 0
* Applying /etc/sysctl.d/99-sysctl.conf ...
* Applying /etc/sysctl.conf ...
Setting up jicofo (1.0-402-1) ...
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
Setting up jitsi-meet-web (1.0.2700-1) ...
Setting up jitsi-meet-web-config (1.0.2700-1) ...
Generating a 4096 bit RSA private key
.....................................................................................++
....................++
writing new private key to '/etc/jitsi/meet/jitsi.example.com.key'
-----
Importing keystore /etc/jitsi/videobridge/jitsi.example.com.p12 to
/etc/jitsi/videobridge/jitsi.example.com.jks...
Entry for alias 1 successfully imported.
Import command completed: 1 entries successfully imported, 0 entries
failed or cancelled

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate
to PKCS12 which is an industry standard format using "keytool
-importkeystore -srckeystore
/etc/jitsi/videobridge/jitsi.example.com.jks -destkeystore
/etc/jitsi/videobridge/jitsi.example.com.jks -deststoretype pkcs12".
----------------

You can now switch to a Let’s Encrypt certificate. To do so, execute:
/usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh

----------------
Setting up ssl-cert (1.0.37) ...
Setting up lua5.1 (5.1.5-8ubuntu1) ...
update-alternatives: using /usr/bin/lua5.1 to provide /usr/bin/lua
(lua-interpreter) in auto mode
update-alternatives: using /usr/bin/luac5.1 to provide /usr/bin/luac
(lua-compiler) in auto mode
Setting up lua-expat:amd64 (1.3.0-3) ...
Setting up lua-socket:amd64 (3.0~rc1+git+321c0c9-1) ...
Setting up lua-sec:amd64 (0.5.1-1) ...
Setting up lua-filesystem:amd64 (1.6.3-1) ...
Setting up prosody (0.9.10-1) ...
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
Adding user prosody to group ssl-cert
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
Setting up jitsi-meet-prosody (1.0.2700-1) ...
Generating RSA private key, 2048 bit long modulus
..............................................................+++
................................................+++
e is 65537 (0x10001)
Choose key size (2048): Key written to
/var/lib/prosody/jitsi.example.com.key
Please provide details to include in the certificate config file.
Leave the field empty to use the default value or '.' to exclude the field.
countryName (GB): localityName (The Internet): organizationName (Your
Organisation): organizationalUnitName (XMPP Department): commonName
(jitsi.example.com): emailAddress (xmpp@jitsi.example.com):
Config written to /var/lib/prosody/jitsi.example.com.cnf
Certificate written to /var/lib/prosody/jitsi.example.com.crt
Generating RSA private key, 2048 bit long modulus
.................................................................................................................................................+++
.......+++
e is 65537 (0x10001)
Choose key size (2048): Key written to
/var/lib/prosody/auth.jitsi.example.com.key
Please provide details to include in the certificate config file.
Leave the field empty to use the default value or '.' to exclude the field.
countryName (GB): localityName (The Internet): organizationName (Your
Organisation): organizationalUnitName (XMPP Department): commonName
(auth.jitsi.example.com): emailAddress (xmpp@auth.jitsi.example.com):
Config written to /var/lib/prosody/auth.jitsi.example.com.cnf
Certificate written to /var/lib/prosody/auth.jitsi.example.com.crt
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.
Setting up jitsi-meet (1.0.2942-1) ...
Setting up lua-event:amd64 (0.4.3-2) ...
Setting up authbind (2.1.1+nmu1) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
-----------------------------------------------------------------------

If someone can contribute with something to shed a little more light to
solve this problem, it would be great.

Thanks in advance.

Kind regards,
Daniel

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#3

Hi Daniel,

Hi, Damian. Thanks for your prompt reply.

In the shared logs jetty is used.

Here is the check which detects whether nginx is installed:
NGINX_INSTALL_CHECK="$(dpkg-query -f '${Status}' -W 'nginx'
2>/dev/null | awk '{print $3}' || true)"
https://github.com/jitsi/jitsi-meet/blob/master/debian/jitsi-meet-web-config.postinst#L54

Can you execute: dpkg-query -f '${Status}' -W 'nginx' and share the result?

Thank you for this. It seems that the problem is in the check:

···

On 11/04/18 00:43, Damian Minkov wrote:

------------------------------------------------------------
# dpkg-query -f '${Status}' -W 'nginx'
unknown ok not-installed
------------------------------------------------------------

Maybe the check fails because I installed nginx-full:

------------------------------------------------------------
# dpkg-query -f '${Status}' -W 'nginx-full'
install ok installed
------------------------------------------------------------

I installed nginx-full because I thought it was necessary that Nginx is
compiled with SSI support. I think I always installed nginx-full and I
don't remember having had this problem before.

How are you purging? Are you executing:
apt-get --purge remove jitsi-meet jitsi-meet-web jitsi-meet-prosody
jitsi-meet-web-config jicofo jitsi-videobridge

I was using: aptitude remove <package>; aptitude purge <package>, which
I estimate will give the same result.

Thanks for your time.

Kind regards,
Daniel


#4

Hi,

Hi Daniel,

Hi, Damian. Thanks for your prompt reply.

In the shared logs jetty is used.

Here is the check which detects whether nginx is installed:
NGINX_INSTALL_CHECK="$(dpkg-query -f '${Status}' -W 'nginx'
2>/dev/null | awk '{print $3}' || true)"
https://github.com/jitsi/jitsi-meet/blob/master/debian/jitsi-meet-web-config.postinst#L54

Can you execute: dpkg-query -f '${Status}' -W 'nginx' and share the result?

Thank you for this. It seems that the problem is in the check:

------------------------------------------------------------
# dpkg-query -f '${Status}' -W 'nginx'
unknown ok not-installed
------------------------------------------------------------

So this is why it is not detected.

Maybe the check fails because I installed nginx-full:

------------------------------------------------------------
# dpkg-query -f '${Status}' -W 'nginx-full'
install ok installed
------------------------------------------------------------

Not sure what is the difference, but we haven't changed the nginx
dependency for few years now. You can try installing nginx and install
everything after purging.

I installed nginx-full because I thought it was necessary that Nginx is
compiled with SSI support. I think I always installed nginx-full and I
don't remember having had this problem before.

How are you purging? Are you executing:
apt-get --purge remove jitsi-meet jitsi-meet-web jitsi-meet-prosody
jitsi-meet-web-config jicofo jitsi-videobridge

I was using: aptitude remove <package>; aptitude purge <package>, which
I estimate will give the same result.

I'm not familiar with aptitude, but it needs to purge all the
mentioned packages. The apt command is tested and it works.

Regards
damencho

···

On Tue, Apr 10, 2018 at 11:18 PM, Daniel Bareiro <daniel-listas@gmx.net> wrote:

On 11/04/18 00:43, Damian Minkov wrote:

Thanks for your time.

Kind regards,
Daniel

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev