You are not logged in.
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
Is mod_onions provided by prosody-mod-onions?
Including some actual information would be helpful...
Offline
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
You didn't answer my question. If the module is provided by the AUR package, then it is your job to rebuild it.
Offline
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
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
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
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
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... ![]()
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