#877 mod_mam_archive: Failed to load plugin library 'mod_mam/rsm'

Reporter Dennis Schridde
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Priority-Medium
  • Status-Fixed
  • Type-Defect
  1. Dennis Schridde on

    What steps will reproduce the problem? 1. Enable mod_mam_archive on Prosody 0.10 What is the expected output? What do you see instead? I see following message in the logs: modulemanager: Error initializing module 'mam_archive' on '${DOMAIN}': /usr/lib64/prosody/core/moduleapi.lua:141: Failed to load plugin library 'mod_mam/rsm', error: /usr/lib64/prosody/modules/mod_mam/rsm.lib.lua: No such file or directory What version of the product are you using? On what operating system? Prosody 0.10 hg:9546c629289b, Prosody Modules 2b741e68433b Please provide any additional information below. Following change fixes the issue: -local rsm = module:require "mod_mam/rsm"; +local rsm = require "util.rsm"; I know I encountered this error once before, but I cannot find it in the issue list anymore.

  2. Zash on

    I haven't seen or heard from the author of this module in years and I haven't yet seen any commits by the person who said they could take over maintaining it. Your suggested fix won't work with 0.9.

    Changes
    • title modulemanager: Error initializing module 'mam_archive' on '${DOMAIN}': /usr/lib64/prosody/core/moduleapi.lua:141: Failed to load plugin library 'mod_mam/rsm', error: /usr/lib64/prosody/modules/mod_mam/rsm.lib.lua: No such file or directory mod_mam_archive: Failed to load plugin library 'mod_mam/rsm'
  3. Dennis Schridde on

    I found the previous report against mod_mam_muc: issue #829 You fixed that module in a way that also requires 0.10+: c6761ebe613b

  4. Zash on

    mod_mam_muc required 0.10 already. I would also be very happy if I did not become the maintainer of this module. So, patches welcome etc.

  5. Thilo Molitor (tmolitor) on

    Dennis already provided a patch: > Following change fixes the issue: > -local rsm = module:require "mod_mam/rsm"; > +local rsm = require "util.rsm";

  6. Dennis Schridde on

    Kim: I would be OK if you would commit my patch with me as the commit author, in case you don't want give anyone the impression that you're maintaining this code yourself.

  7. Zash on

    Could you commit the change and send an export or bundle? Or your ssh key?

  8. Dennis Schridde on

    Bundle: https://www.sendspace.com/file/glm0ex SSH-Key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKDI1MigCf0069bIcmzDZmS5WIHwUJJ3aS59FTth2Wxf devurandom

  9. Dennis Schridde on

    P.S. Bundle has sha256sum 92e24ae12286b65315458ac2baf408a64fd140bbd3ef627d237bf7089bfe8003 and size 610 byte.

  10. Zash on

    Thanks https://hg.prosody.im/prosody-modules/rev/3e97dae28215

    Changes
    • tags Status-Fixed

New comment

Not published. Used for spam prevention and optional update notifications.