You are not logged in.

#1 2022-05-01 23:08:02

yoshi3
Member
Registered: 2021-10-08
Posts: 23

prosody 1:0.12.0-2 incompatible with mod_onions

prosody.err:

...modulemanager   error   Error initializing module 'onions'
.../prosody/modules/mod_onions.lua:18: in main chunk


Downgrade to version 1:0.12.0-1 solves the problem.

Offline

#2 2022-05-01 23:17:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: prosody 1:0.12.0-2 incompatible with mod_onions

Is mod_onions provided by prosody-mod-onions?

Including some actual information would be helpful...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2022-05-02 00:24:48

yoshi3
Member
Registered: 2021-10-08
Posts: 23

Re: prosody 1:0.12.0-2 incompatible with mod_onions

jasonwryan wrote:

Is mod_onions provided by prosody-mod-onions?

Including some actual information would be helpful...


prosody 1:0.12.0-1 is explicitly compiled with lua52 - compatible with mod_onion

.PKGINFO:
# Generated by makepkg 6.0.1
# using fakeroot version 1.28
pkgname = prosody
pkgbase = prosody
pkgver = 1:0.12.0-1
pkgdesc = Lightweight and extensible Jabber/XMPP server written in Lua
url = https://prosody.im/
builddate = 1647570024
packager = Daurnimator <daurnimator@archlinux.org>
size = 1948186
arch = x86_64
license = MIT
backup = etc/prosody/prosody.cfg.lua
depend = lua52
depend = lua52-sec
depend = lua52-socket
depend = lua52-expat
depend = lua52-filesystem
depend = libidn
depend = openssl
optdepend = lua52-sec: TLS encryption support
optdepend = lua52-dbi: SQL storage support
optdepend = luarocks: plugin manager



prosody 1:0.12.0-2 not

.PKGINFO:

# Generated by makepkg 6.0.1
# using fakeroot version 1.28
pkgname = prosody
pkgbase = prosody
pkgver = 1:0.12.0-2
pkgdesc = Lightweight and extensible Jabber/XMPP server written in Lua
url = https://prosody.im/
builddate = 1651106190
packager = Daurnimator <daurnimator@archlinux.org>
size = 1952273
arch = x86_64
license = MIT
backup = etc/prosody/prosody.cfg.lua
depend = lua
depend = lua-sec
depend = lua-socket
depend = lua-expat
depend = lua-filesystem
depend = libidn
depend = openssl
optdepend = lua-sec: TLS encryption support
optdepend = lua-dbi: SQL storage support
optdepend = luarocks: plugin manager

Offline

#4 2022-05-02 00:50:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: prosody 1:0.12.0-2 incompatible with mod_onions

You didn't answer my question. If the module is provided by the AUR package, then it is your job to rebuild it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2022-05-02 12:25:40

yoshi3
Member
Registered: 2021-10-08
Posts: 23

Re: prosody 1:0.12.0-2 incompatible with mod_onions

jasonwryan wrote:

You didn't answer my question. If the module is provided by the AUR package, then it is your job to rebuild it.


mod_onion is a module from the Prosody Community, which is apparently incompatible with the current non-lua52 build of the Prosody sources from the previous package from the arch community repo.
Explicitly recompiling the current Prosody package from the arch community repo itself with lua52 or downgrading to the correspondingly compiled predecessor package would probably be identical - and at least eliminates the problem where it is relevant.
See opening post.

Offline

#6 2022-05-02 13:04:51

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: prosody 1:0.12.0-2 incompatible with mod_onions

Upstream recommends the newer lua version: https://prosody.im/doc/installing_from_ … pendencies

Look at the line mentioned in the error: it wants a bit or bit32 library. See https://github.com/google/diff-match-pa … -667909226 for more info about Lua versions and quick way to try patching the module.

Offline

#7 2022-05-02 16:33:23

yoshi3
Member
Registered: 2021-10-08
Posts: 23

Re: prosody 1:0.12.0-2 incompatible with mod_onions

Raynman wrote:

Upstream recommends the newer lua version: https://prosody.im/doc/installing_from_ … pendencies

Look at the line mentioned in the error: it wants a bit or bit32 library. See https://github.com/google/diff-match-pa … -667909226 for more info about Lua versions and quick way to try patching the module.

Hmm, I don't know.

It looks like missing a "lua54-bitop".

Building from the sources from PKGBUILD of the Arch Community package "lua52-bitop" with lua54-target aborted with error. Also first attempt according to https://git.alpinelinux.org/aports/tree … .14-stable ...

Offline

#8 2022-05-02 17:51:08

yoshi3
Member
Registered: 2021-10-08
Posts: 23

Re: prosody 1:0.12.0-2 incompatible with mod_onions

Raynman wrote:

Upstream recommends the newer lua version: https://prosody.im/doc/installing_from_ … pendencies

Look at the line mentioned in the error: it wants a bit or bit32 library. See https://github.com/google/diff-match-pa … -667909226 for more info about Lua versions and quick way to try patching the module.


Hmm, applied your hints and lua54-prosody starts with "mod_onions.lua" without errors. Let's see if it works too...

changes to "mod_onions.lua":

"
--local bit;
--pcall(function() bit = require"bit"; end);
--bit = bit or softreq"bit32"
--if not bit then module:log("error", "No bit module found. Either LuaJIT 2, lua-bitop or Lua 5.2 is required"); end

--local band = bit.band;
local function band(a,b)
return(a&b)
end;

--local rshift = bit.rshift;
local function rshift(a,b)
return(a>>b)
end;

--local lshift = bit.lshift;
local function lshift(a,b)
return(a<<b)
end;
"

Offline

#9 2022-05-02 18:09:53

yoshi3
Member
Registered: 2021-10-08
Posts: 23

Re: prosody 1:0.12.0-2 incompatible with mod_onions

yoshi3 wrote:
Raynman wrote:

Upstream recommends the newer lua version: https://prosody.im/doc/installing_from_ … pendencies

Look at the line mentioned in the error: it wants a bit or bit32 library. See https://github.com/google/diff-match-pa … -667909226 for more info about Lua versions and quick way to try patching the module.


Hmm, applied your hints and lua54-prosody starts with "mod_onions.lua" without errors. Let's see if it works too...

changes to "mod_onions.lua":

"
--local bit;
--pcall(function() bit = require"bit"; end);
--bit = bit or softreq"bit32"
--if not bit then module:log("error", "No bit module found. Either LuaJIT 2, lua-bitop or Lua 5.2 is required"); end

--local band = bit.band;
local function band(a,b)
return(a&b)
end;

--local rshift = bit.rshift;
local function rshift(a,b)
return(a>>b)
end;

--local lshift = bit.lshift;
local function lshift(a,b)
return(a<<b)
end;
"


A first attempt with login and messaging via "Tor&Onion" worked without errors...  smile

Feel free to try it too. Create a (test) account via a Tor connection
Server name for connection: 5jzhdo7e6gp5ekqq76rqspy5rr3pcdianhgdk5vhtesv6ev5it6zhvid.onion
Port: 54221
Domain: jabber.heimwelt.de

Offline

Board footer

Powered by FluxBB