#1805 error.lua:144: attempt to index local 'error_tag' (a nil value)

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

    I see this a lot in Prosody error.log: Apr 01 14:35:42 c2s55c83a2de3d0 error Traceback[c2s]: /usr/share/lua/5.2/prosody/util/error.lua:144: attempt to index local 'error_tag' (a nil value) stack traceback: /usr/share/lua/5.2/prosody/util/error.lua:144: in function 'from_stanza' /usr/share/lua/5.2/prosody/core/moduleapi.lua:411: in function '?' /usr/share/lua/5.2/prosody/util/events.lua:81: in function </usr/share/lua/5.2/prosody/util/events.lua:77> (...tail calls...) ...sody-modules/mod_log_slow_events/mod_log_slow_events.lua:12: in function <...sody-modules/mod_log_slow_events/mod_log_slow_events.lua:10> (...tail calls...) /usr/share/lua/5.2/prosody/util/events.lua:81: in function </usr/share/lua/5.2/prosody/util/events.lua:77> (...tail calls...) ...sody-modules/mod_log_slow_events/mod_log_slow_events.lua:12: in function <...sody-modules/mod_log_slow_events/mod_log_slow_events.lua:10> (...tail calls...) /usr/share/lua/5.2/prosody/core/stanza_router.lua:188: in function 'core_post_stanza' /usr/share/lua/5.2/prosody/core/stanza_router.lua:128: in function 'core_process_stanza' /usr/lib/prosody/modules/mod_c2s.lua:326: in function 'func' /usr/share/lua/5.2/prosody/util/async.lua:144: in function </usr/share/lua/5.2/prosody/util/async.lua:142> What version of the product are you using? On what operating system? Prosody 0.12 1nightly175-1~buster on Debian Buster

  2. Zash on

    Thanks for the report. I have no idea what's going on here, the traceback contains no clue as to why this happened or which module is using the module:send_iq() API, only that somehow it's trying to convert a stanza to an error object, but the stanza doesn't have an <error> payload. It Debian Buster is no longer supported, you should upgrade.

    Changes
    • tags Milestone-0.12 Status-Accepted
  3. Zash on

    Fixed in https://hg.prosody.im/trunk/rev/6da83deb8d7f

    Changes
    • tags Status-Fixed
  4. Roi on

    Hey Zash, thank you for fixing it. :-) And yes, I already upgraded the server to Bullseye, finally... But the error is still there, Bullseye, Lua 5.4 and Prosody 0.12 (1nightly200-1~bullseye). Will the fix make it into the nightlies of 0.12? Regards, Roi

  5. Zash on

    > Will the fix make it into the nightlies of 0.12? Yes, should be tomorrow. Also the next 0.12.x minor release, whenever that happens (undecided at this point).

  6. Roi on

    Great, thank you again! And it does not matter if tomorrow or in a few days. :-)

New comment

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