[jitsi-dev] deb pkg conflict with lua-sec


#1

Hi all,

Looks like there is a new package conflict with lua-sec and lua-sec-prosody. Discovered this on trying to upgrade. I've tried removing, but not purging, since it looks like dpkg is doing a compare at the pkg list level(?), and not file system, but it's still stuck.

···

======================
The following extra packages will be installed:
   jitsi-meet-prosody lua-sec
The following NEW packages will be installed:
   jitsi-meet jitsi-meet-prosody lua-sec
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 618 kB/650 kB of archives.
After this operation, 1,795 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://download.jitsi.org/nightly/deb/ unstable/ jitsi-meet 1.0.1-66 [618 kB]
Fetched 618 kB in 4s (141 kB/s)
(Reading database ... 47927 files and directories currently installed.)
Preparing to unpack .../lua-sec_0.5-1_amd64.deb ...
Unpacking lua-sec:amd64 (0.5-1) ...
dpkg: error processing archive /var/cache/apt/archives/lua-sec_0.5-1_amd64.deb (--unpack):
  trying to overwrite '/usr/share/lua/5.1/ssl.lua', which is also in package lua-sec-prosody 0.5.1-2~sid
Selecting previously unselected package jitsi-meet-prosody.
Preparing to unpack .../jitsi-meet-prosody_1.0.1-66_all.deb ...
Unpacking jitsi-meet-prosody (1.0.1-66) ...
Selecting previously unselected package jitsi-meet.
Preparing to unpack .../jitsi-meet_1.0.1-66_all.deb ...
Unpacking jitsi-meet (1.0.1-66) ...
Errors were encountered while processing:
  /var/cache/apt/archives/lua-sec_0.5-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Herb


#2

Hello,

You have to remove lua-sec-prosody and then upgrade.
You can do this easily in aptitude -- just mark lua-sec-prosody for
purge/remove and jitsi-meet for upgrade

···

On Sun, 24 Aug 2014 16:57:26 -0400 herbt@theria.ca wrote:

Looks like there is a new package conflict with lua-sec and
lua-sec-prosody. Discovered this on trying to upgrade. I've tried
removing, but not purging, since it looks like dpkg is doing a compare
at the pkg list level(?), and not file system, but it's still stuck.

--
Yasen Pramatarov
sysadmin, https://jitsi.org


#3

Purge was the missing piece, thanks. Though, it looks like there is a module location issue in prosody-trunk:

An example from /var/log/prosody/prosody.err

···

----------
no file '/usr/lib/prosody/zlib.lua'
no file '/usr/lib/prosody/DBI.lua'
----------

The module directory is

/usr/lib/prosody/modules/

On 25.08.2014 02:16, Yasen Pramatarov wrote:

On Sun, 24 Aug 2014 16:57:26 -0400 herbt@theria.ca wrote:

Looks like there is a new package conflict with lua-sec and
lua-sec-prosody. Discovered this on trying to upgrade. I've tried
removing, but not purging, since it looks like dpkg is doing a compare
at the pkg list level(?), and not file system, but it's still stuck.

Hello,

You have to remove lua-sec-prosody and then upgrade.
You can do this easily in aptitude -- just mark lua-sec-prosody for
purge/remove and jitsi-meet for upgrade


#4

Is prosody-trunk having module location issues, or is there something else going on (with jessie, maybe)? Here is a longer version of what I posted below.

On restart of prosody after upgrade:

···

**************************
Prosody was unable to find LuaSec
This package can be obtained in the following ways:

  Source: http://www.inf.puc-rio.br/~brunoos/luasec/
  Debian/Ubuntu: http://prosody.im/download/start#debian_and_ubuntu
  luarocks: luarocks install luasec

SSL/TLS support will not be available
More help can be found on our website, at http://prosody.im/doc/depends
**************************

From the error log:

===========================================

Aug 26 15:47:20 jitsi-videobridge.vid.my.domain:tls error Error creating context for c2s: LuaSec (required for encryption) was not found
Aug 26 15:47:20 jitsi-videobridge.vid.my.domain:tls error Error creating context for s2s: LuaSec (required for encryption) was not found
Aug 26 15:47:20 conference.vid.my.domain:tls error Error creating context for c2s: LuaSec (required for encryption) was not found
Aug 26 15:47:20 conference.vid.my.domain:tls error Error creating context for s2s: LuaSec (required for encryption) was not found
Aug 26 15:47:20 portmanager error Error binding encrypted port for https: LuaSec (required for encryption) was not found
Aug 26 15:47:20 portmanager error Error binding encrypted port for https: LuaSec (required for encryption) was not found
Aug 26 15:47:20 modulemanager error Error initializing module 'storage_sql2' on 'vid.my.domain': /usr/bin/prosody:173: module 'DBI' not found:
         no field package.preload['DBI']
         no file '/usr/lib/prosody/DBI.lua'
         no file '/usr/local/share/lua/5.1/DBI.lua'
         no file '/usr/local/share/lua/5.1/DBI/init.lua'
         no file '/usr/local/lib/lua/5.1/DBI.lua'
         no file '/usr/local/lib/lua/5.1/DBI/init.lua'
         no file '/usr/share/lua/5.1/DBI.lua'
         no file '/usr/share/lua/5.1/DBI/init.lua'
         no file '/usr/lib/prosody/DBI.so'
         no file '/usr/local/lib/lua/5.1/DBI.so'
         no file '/usr/lib/x86_64-linux-gnu/lua/5.1/DBI.so'
         no file '/usr/lib/lua/5.1/DBI.so'
         no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
         /usr/lib/prosody/core/modulemanager.lua:29: in function </usr/lib/prosody/core/modulemanager.lua:29>
         [C]: in function '_real_require'
         /usr/bin/prosody:173: in function 'require'
         /usr/lib/prosody/util/sql.lua:10: in main chunk
         [C]: in function '_real_require'
         /usr/bin/prosody:173: in function 'require'
         /usr/lib/prosody/modules/sql.lib.lua:5: in main chunk
         (tail call): ?
         /usr/lib/prosody/modules/mod_storage_sql2.lua:23: in main chunk
         (tail call): ?
         [C]: in function 'xpcall'
         ...
  /usr/lib/prosody/core/modulemanager.lua:171: in function 'do_load_module'
         /usr/lib/prosody/core/modulemanager.lua:249: in function 'load'
         /usr/lib/prosody/core/modulemanager.lua:74: in function '?'
         /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
         /usr/lib/prosody/core/hostmanager.lua:97: in function 'activate'
         /usr/lib/prosody/core/hostmanager.lua:44: in function '?'
         /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
         /usr/bin/prosody:331: in function 'prepare_to_start'
         /usr/bin/prosody:397: in main chunk
         [C]: ?
Aug 26 15:47:20 storagemanager error Failed to load storage driver plugin sql2 on vid.my.domain: /usr/bin/prosody:173: module 'DBI' not found:
         no field package.preload['DBI']
         no file '/usr/lib/prosody/DBI.lua'
         no file '/usr/local/share/lua/5.1/DBI.lua'
         no file '/usr/local/share/lua/5.1/DBI/init.lua'
         no file '/usr/local/lib/lua/5.1/DBI.lua'
         no file '/usr/local/lib/lua/5.1/DBI/init.lua'
         no file '/usr/share/lua/5.1/DBI.lua'
         no file '/usr/share/lua/5.1/DBI/init.lua'
         no file '/usr/lib/prosody/DBI.so'
         no file '/usr/local/lib/lua/5.1/DBI.so'
         no file '/usr/lib/x86_64-linux-gnu/lua/5.1/DBI.so'
         no file '/usr/lib/lua/5.1/DBI.so'
         no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
         /usr/lib/prosody/core/modulemanager.lua:29: in function </usr/lib/prosody/core/modulemanager.lua:29>
         [C]: in function '_real_require'
         /usr/bin/prosody:173: in function 'require'
         /usr/lib/prosody/util/sql.lua:10: in main chunk
         [C]: in function '_real_require'
         /usr/bin/prosody:173: in function 'require'
         /usr/lib/prosody/modules/sql.lib.lua:5: in main chunk
         (tail call): ?
         /usr/lib/prosody/modules/mod_storage_sql2.lua:23: in main chunk
         (tail call): ?
         [C]: in function 'xpcall'
/usr/lib/prosody/core/modulemanager.lua:171: in function 'do_load_module'
         /usr/lib/prosody/core/modulemanager.lua:249: in function 'load'
         /usr/lib/prosody/core/modulemanager.lua:74: in function '?'
         /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
         /usr/lib/prosody/core/hostmanager.lua:97: in function 'activate'
         /usr/lib/prosody/core/hostmanager.lua:44: in function '?'
         /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
         /usr/bin/prosody:331: in function 'prepare_to_start'
         /usr/bin/prosody:397: in main chunk
         [C]: ?
Aug 26 15:47:20 vid.my.domain:turncredentials error turncredentials not configured
Aug 26 15:47:20 vid.my.domain:tls error Error creating context for c2s: LuaSec (required for encryption) was not found
Aug 26 15:47:20 vid.my.domain:tls error Error creating context for s2s: LuaSec (required for encryption) was not found
Aug 26 15:47:20 modulemanager error Error initializing module 'compression' on 'vid.my.domain': /usr/bin/prosody:173: module 'zlib' not found:
         no field package.preload['zlib']
         no file '/usr/lib/prosody/zlib.lua'
         no file '/usr/local/share/lua/5.1/zlib.lua'
         no file '/usr/local/share/lua/5.1/zlib/init.lua'
         no file '/usr/local/lib/lua/5.1/zlib.lua'
         no file '/usr/local/lib/lua/5.1/zlib/init.lua'
         no file '/usr/share/lua/5.1/zlib.lua'
         no file '/usr/share/lua/5.1/zlib/init.lua'
         no file '/usr/lib/prosody/zlib.so'
         no file '/usr/local/lib/lua/5.1/zlib.so'
         no file '/usr/lib/x86_64-linux-gnu/lua/5.1/zlib.so'
         no file '/usr/lib/lua/5.1/zlib.so'
         no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
         /usr/lib/prosody/core/modulemanager.lua:29: in function </usr/lib/prosody/core/modulemanager.lua:29>
         [C]: in function '_real_require'
         /usr/bin/prosody:173: in function 'require'
         /usr/lib/prosody/modules/mod_compression.lua:9: in main chunk
         (tail call): ?
         [C]: in function 'xpcall'
         /usr/lib/prosody/core/modulemanager.lua:29: in function 'pcall'
         /usr/lib/prosody/core/modulemanager.lua:171: in function 'do_load_module'
         /usr/lib/prosody/core/modulemanager.lua:249: in function 'load'
         /usr/lib/prosody/core/modulemanager.lua:74: in function '?'
         /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
         /usr/lib/prosody/core/hostmanager.lua:97: in function 'activate'
  /usr/lib/prosody/core/hostmanager.lua:44: in function '?'
         /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
         /usr/bin/prosody:331: in function 'prepare_to_start'
         /usr/bin/prosody:397: in main chunk
         [C]: ?
Aug 26 15:47:20 mod_websocket error No bit module found. Either LuaJIT 2, lua-bitop or Lua 5.2 is required
Aug 26 15:47:20 modulemanager error Error initializing module 'websocket' on 'vid.my.domain': .../lib/prosody/modules/mod_websocket/mod_websocket.lua:20: attempt to index local 'bit' (a nil value)
stack traceback:
         /usr/lib/prosody/core/modulemanager.lua:29: in function </usr/lib/prosody/core/modulemanager.lua:29>
         .../lib/prosody/modules/mod_websocket/mod_websocket.lua:20: in main chunk
         (tail call): ?
         [C]: in function 'xpcall'
         /usr/lib/prosody/core/modulemanager.lua:29: in function 'pcall'
         /usr/lib/prosody/core/modulemanager.lua:171: in function 'do_load_module'
         /usr/lib/prosody/core/modulemanager.lua:249: in function 'load'
         /usr/lib/prosody/core/modulemanager.lua:74: in function '?'
         /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
         /usr/lib/prosody/core/hostmanager.lua:97: in function 'activate'
         /usr/lib/prosody/core/hostmanager.lua:44: in function '?'
         /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
         /usr/bin/prosody:331: in function 'prepare_to_start'
         /usr/bin/prosody:397: in main chunk
         [C]: ?

========================================================================

To ensure that I am running nightly:

dpkg -l prosody-trunk
Desired=Unknown/Install/Remove/Purge/Hold

Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend

/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

/ Name Version

Architecture Description
+++-=========================================-=========================-=========================-=======================================================================================
ii prosody-trunk 1nightly502-1~trusty amd64 Lightweight Jabber/XMPP server

dpkg -l prosody
Desired=Unknown/Install/Remove/Purge/Hold

Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend

/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

/ Name Version

Architecture Description
+++-=========================================-=========================-=========================-=======================================================================================
un prosody <none> <none> (no description available)

dpkg -l lua-sec
Desired=Unknown/Install/Remove/Purge/Hold

Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend

/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

/ Name Version

Architecture Description
+++-=========================================-=========================-=========================-=======================================================================================
ii lua-sec:amd64 0.5-1 amd64 SSL socket library for the Lua language

And lastly, is prosody-trunk a requirement for jitmeet?

Thanks,

Herb

On 25.08.2014 10:27, herbt@theria.ca wrote:

Purge was the missing piece, thanks. Though, it looks like there is a
module location issue in prosody-trunk:

An example from /var/log/prosody/prosody.err

----------
no file '/usr/lib/prosody/zlib.lua'
no file '/usr/lib/prosody/DBI.lua'
----------

The module directory is

/usr/lib/prosody/modules/

On 25.08.2014 02:16, Yasen Pramatarov wrote:

On Sun, 24 Aug 2014 16:57:26 -0400 herbt@theria.ca wrote:

Looks like there is a new package conflict with lua-sec and
lua-sec-prosody. Discovered this on trying to upgrade. I've tried
removing, but not purging, since it looks like dpkg is doing a compare
at the pkg list level(?), and not file system, but it's still stuck.

Hello,

You have to remove lua-sec-prosody and then upgrade.
You can do this easily in aptitude -- just mark lua-sec-prosody for
purge/remove and jitsi-meet for upgrade

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


#5

What does `dpkg -L lua-sec` output?

Regards,
Matthew

···

On 26 August 2014 21:04, <herbt@theria.ca> wrote:

Is prosody-trunk having module location issues, or is there something else
going on (with jessie, maybe)? Here is a longer version of what I posted
below.

On restart of prosody after upgrade:

**************************
Prosody was unable to find LuaSec
This package can be obtained in the following ways:

        Source: http://www.inf.puc-rio.br/~brunoos/luasec/
        Debian/Ubuntu: http://prosody.im/download/start#debian_and_ubuntu
        luarocks: luarocks install luasec

SSL/TLS support will not be available
More help can be found on our website, at http://prosody.im/doc/depends
**************************


#6

dpkg -L lua-sec
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/lua-sec
/usr/share/doc/lua-sec/changelog.Debian.gz
/usr/share/doc/lua-sec/copyright
/usr/share/doc/lua-sec/changelog.gz
/usr/share/lua
/usr/share/lua/5.1
/usr/share/lua/5.1/ssl
/usr/share/lua/5.1/ssl/https.lua
/usr/share/lua/5.1/ssl/options.lua
/usr/share/lua/5.1/ssl.lua
/usr/share/lua/5.2
/usr/share/lua/5.2/ssl
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/liblua5.1-sec.so.1.0.0
/usr/lib/x86_64-linux-gnu/lua
/usr/lib/x86_64-linux-gnu/lua/5.1
/usr/lib/x86_64-linux-gnu/lua/5.2
/usr/lib/x86_64-linux-gnu/liblua5.2-sec.so.1.0.0
/usr/share/lua/5.2/ssl/https.lua
/usr/share/lua/5.2/ssl/options.lua
/usr/share/lua/5.2/ssl.lua
/usr/lib/x86_64-linux-gnu/liblua5.1-sec.so.1
/usr/lib/x86_64-linux-gnu/liblua5.2-sec.so.1
/usr/lib/x86_64-linux-gnu/lua/5.1/ssl.so
/usr/lib/x86_64-linux-gnu/lua/5.2/ssl.so

···

On 26.08.2014 16:15, Matthew Wild wrote:

On 26 August 2014 21:04, <herbt@theria.ca> wrote:

Is prosody-trunk having module location issues, or is there something else
going on (with jessie, maybe)? Here is a longer version of what I posted
below.

On restart of prosody after upgrade:

**************************
Prosody was unable to find LuaSec
This package can be obtained in the following ways:

        Source: http://www.inf.puc-rio.br/~brunoos/luasec/
        Debian/Ubuntu: http://prosody.im/download/start#debian_and_ubuntu
        luarocks: luarocks install luasec

SSL/TLS support will not be available
More help can be found on our website, at http://prosody.im/doc/depends
**************************

What does `dpkg -L lua-sec` output?

Regards,
Matthew

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


#7

How about `lua -l ssl`? And do you have lua-dbi and lua-zlib packages
installed? (for the other errors)

Regards,
Matthew

···

On 26 August 2014 21:23, <herbt@theria.ca> wrote:

dpkg -L lua-sec
/.
[...]


#8

#9

I have no idea how your system got into this state...

What is the status of the 'lua-socket' package? (`dpkg -l lua-socket`
and `dpkg -L lua-socket`). Or just try re-installing that package to
see if it fixes lua-sec.

Regards,
Matthew

···

On 26 August 2014 22:19, <herbt@theria.ca> wrote:

-----------------
lua -l ssl
lua: error loading module 'ssl.core' from file
'/usr/lib/x86_64-linux-gnu/lua/5.1/ssl.so':
        liblua5.1-socket.so.2: cannot open shared object file: No such file
or directory
stack traceback:
        [C]: ?
        [C]: in function 'require'
        /usr/share/lua/5.1/ssl.lua:7: in main chunk
        [C]: ?
        [C]: ?

(ls -l /usr/lib/x86_64-linux-gnu/lua/5.1/ssl.so
lrwxrwxrwx 1 root root 28 Feb 1 2014
/usr/lib/x86_64-linux-gnu/lua/5.1/ssl.so -> ../../liblua5.1-sec.so.1.0.0)


#10

lua-socket-prosody was installed, instead of lua-socket. Installing it, removed lua-socket-prosody.

LuaJIT, and lua-bitop were also mentioned as missing in the log. They are now installed as well. Prosody is now up and running.

It seems like the problem came from the upgrade that had lua-sec and lua-sec-prosody in conflict. Not quite sure how, though. The packages that were in an rc state likely came from the autoremove I did, for the sake of hygiene, after doing a jitsi-meet purge / reinstall. I assumed they would be reinstalled with everything else.

Thanks for the help :slight_smile:

···

On 26.08.2014 18:06, Matthew Wild wrote:

On 26 August 2014 22:19, <herbt@theria.ca> wrote:

-----------------
lua -l ssl
lua: error loading module 'ssl.core' from file
'/usr/lib/x86_64-linux-gnu/lua/5.1/ssl.so':
        liblua5.1-socket.so.2: cannot open shared object file: No such file
or directory
stack traceback:
        [C]: ?
        [C]: in function 'require'
        /usr/share/lua/5.1/ssl.lua:7: in main chunk
        [C]: ?

(ls -l /usr/lib/x86_64-linux-gnu/lua/5.1/ssl.so
lrwxrwxrwx 1 root root 28 Feb 1 2014
/usr/lib/x86_64-linux-gnu/lua/5.1/ssl.so -> ../../liblua5.1-sec.so.1.0.0)

I have no idea how your system got into this state...

What is the status of the 'lua-socket' package? (`dpkg -l lua-socket`
and `dpkg -L lua-socket`). Or just try re-installing that package to
see if it fixes lua-sec.

Regards,
Matthew

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