Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#67510 - [prosody] luasocket not found

Attached to Project: Community Packages
Opened by georg (fordprefect) - Thursday, 06 August 2020, 11:53 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 06 August 2020, 13:08 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


After upgrading prosody to 1:0.11.5-1 it refuses to start with the message:

prosodyctl[13316]: Prosody was unable to find luasocket
prosodyctl[13316]: luasocket is required for Prosody to run, so we will now exit.

lua52-socket is installed in version 20190219-3.
No partial upgrade, whole system updated together.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 06 August 2020, 13:08 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#67455 
Comment by georg (fordprefect) - Thursday, 06 August 2020, 12:23 GMT
Importing the socket module on the lua52 interpreter yields an "undefined symbol" error in the module:

Lua 5.2.4 Copyright (C) 1994-2015, PUC-Rio
> require "socket"
error loading module 'socket.core' from file '/usr/lib/lua/5.2/socket/':
/usr/lib/lua/5.2/socket/ undefined symbol: lua_newuserdatauv
stack traceback:
[C]: in ?
[C]: in function 'require'
/usr/share/lua/5.2/socket.lua:12: in main chunk
[C]: in function 'require'
stdin:1: in main chunk
[C]: in ?

This is then an issue with lua52-socket, not with prosody (which merely fails to initialize due to the error)