#1856 Invalid stanza state! Please report this error.

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

    c2s564d44a8fc20 error Traceback[c2s]: /opt/prosody/lib/prosody/util/stanza.lua:255: Invalid stanza state! Please report this error. MUC stop working with this stanza: Is this INVALID? <presence xml:lang='en' to='mydomain.com_614a2f2349038@conference.mydomain.com/gd@mydomain' from='gd@mydomain.com/aeiou_2.2.35_a57e30'><x xmlns='http://jabber.org/protocol/muc'/></presence>

  2. Zash on

    Thanks for the report, however it is missing many details needed to understand what is going on. Please include - the version of Prosody used - the full traceback - configuration details of the hosts involved

    Changes
    • tags Status-NeedInfo
  3. GD on

    Prosody 0.12.4 Apr 07 20:53:05 c2s55da11ff06e0 error Traceback[c2s]: /opt/prosody/lib/prosody/util/stanza.lua:256: Invalid stanza state! Please report this error. stack traceback: [C]: in function 'error' /opt/prosody/lib/prosody/util/stanza.lua:256: in function </opt/prosody/lib/prosody/util/stanza.lua:229> (...tail calls...) /opt/prosody/lib/prosody/modules/muc/occupant_id.lib.lua:43: in function '?' /opt/prosody/lib/prosody/util/events.lua:81: in function </opt/prosody/lib/prosody/util/events.lua:77> (...tail calls...) /opt/prosody/lib/prosody/modules/muc/muc.lib.lua:684: in function </opt/prosody/lib/prosody/modules/muc/muc.lib.lua:618> (...tail calls...) /opt/prosody/lib/prosody/util/events.lua:81: in function </opt/prosody/lib/prosody/util/events.lua:77> (...tail calls...) /opt/prosody/lib/prosody/core/stanza_router.lua:188: in function 'core_post_stanza' /opt/prosody/lib/prosody/core/stanza_router.lua:128: in function 'core_process_stanza' /opt/prosody/lib/prosody/modules/mod_c2s.lua:326: in function 'func' /opt/prosody/lib/prosody/util/async.lua:144: in function </opt/prosody/lib/prosody/util/async.lua:142>

  4. Zash on

    So #981 has come back. I can't tell what going on here. Could not reproduce anything locally. Additional details would be needed. Is this reproducible? Lua version? OS version? How did you install? With debug logs enabled, what occurs right before the error?

    Changes
    • tags Milestone-0.12
  5. Luca Matei Pintilie on

    Hi, I am experiencing something similar on my installation of prosody >Is this reproducible? Yes, happens on restart. But I can't say I've tried to reproduce it on a new installation or debug it any further >Lua version? Lua 5.4 (lua54-5.4.6_1 as void tracks it) >OS version? >How did you install? I am using the rolling release distro called "void linux", which doesn't have versions. The Prosody package available was outdated so I've upgraded it myself and submitted the changes to them. Not sure what else is relevant in the "OS version" section https://github.com/void-linux/void-packages/pull/48919 >With debug logs enabled, what occurs right before the error? Not a whole lot /shrug 2024-05-12T13:40:48.30445 daemon.warn: May 12 13:40:48 prosody[3511]: mod_posix: Received SIGTERM 2024-05-12T13:40:50.19739 daemon.warn: May 12 13:40:50 prosody[3511]: s2sout558b303980: Destroying session with 1 unacked stanzas 2024-05-12T13:40:50.19760 daemon.warn: May 12 13:40:50 prosody[3511]: stanzarouter: Received a stanza claiming to be from muc.xmpp.org, over a stream authed for lucamatei.com! 2024-05-12T13:40:50.19846 daemon.warn: May 12 13:40:50 prosody[3511]: s2sout558b2f2260: Destroying session with 1 unacked stanzas 2024-05-12T13:40:50.19926 daemon.warn: May 12 13:40:50 prosody[3511]: s2sout558b2fa7e0: Destroying session with 23 unacked stanzas 2024-05-12T13:40:50.19951 daemon.warn: May 12 13:40:50 prosody[3511]: stanzarouter: Received a stanza claiming to be from conference.monocles.eu, over a stream authed for lucamatei.com! 2024-05-12T13:40:50.20088 daemon.warn: May 12 13:40:50 prosody[3511]: s2sout558b1db4a0: Destroying session with 67 unacked stanzas 2024-05-12T13:40:53.72840 daemon.crit: May 12 13:40:53 prosody[3566]: c2s55cdd524a0: Traceback[c2s]: /usr/lib/prosody/util/stanza.lua:255: Invalid stanza state! Please report this error. 2024-05-12T13:40:53.72861 daemon.crit: May 12 13:40:53 prosody[3566]: c2s55cdd524a0: Traceback[c2s]: /usr/lib/prosody/util/stanza.lua:255: Invalid stanza state! Please report this error. 2024-05-12T13:41:12.84778 daemon.crit: May 12 13:41:12 prosody[3566]: c2s55cdd14540: Traceback[c2s]: /usr/lib/prosody/util/stanza.lua:255: Invalid stanza state! Please report this error. 2024-05-12T13:41:12.84800 daemon.crit: May 12 13:41:12 prosody[3566]: c2s55cdd14540: Traceback[c2s]: /usr/lib/prosody/util/stanza.lua:255: Invalid stanza state! Please report this error. 2024-05-12T13:49:59.12914 daemon.crit: May 12 13:49:59 prosody[3566]: c2s55ce0a7560: Traceback[c2s]: /usr/lib/prosody/util/stanza.lua:255: Invalid stanza state! Please report this error. 2024-05-12T13:49:59.12937 daemon.crit: May 12 13:49:59 prosody[3566]: c2s55ce0a7560: Traceback[c2s]: /usr/lib/prosody/util/stanza.lua:255: Invalid stanza state! Please report this error. 2024-05-12T14:04:50.18408 daemon.warn: May 12 14:04:50 prosody[3566]: mod_posix: Received SIGTERM 2024-05-12T14:04:50.25357 daemon.warn: May 12 14:04:50 prosody[3566]: s2sout55cdd513a0: Destroying session with 4 unacked stanzas 2024-05-12T14:04:50.25487 daemon.warn: May 12 14:04:50 prosody[3566]: s2sout55cdff2a80: Destroying session with 2 unacked stanzas 2024-05-12T14:04:50.25516 daemon.warn: May 12 14:04:50 prosody[3566]: stanzarouter: Received a stanza claiming to be from conference.monocles.eu, over a stream authed for lucamatei.com! 2024-05-12T14:04:50.25733 daemon.warn: May 12 14:04:50 prosody[3566]: s2sout55cdffc1a0: Destroying session with 2 unacked stanzas 2024-05-12T14:04:50.25910 daemon.warn: May 12 14:04:50 prosody[3566]: s2sout55cdd250c0: Destroying session with 2 unacked stanzas 2024-05-12T14:04:50.25941 daemon.warn: May 12 14:04:50 prosody[3566]: stanzarouter: Received a stanza claiming to be from muc.xmpp.org, over a stream authed for lucamatei.com! 2024-05-12T14:05:28.43129 daemon.crit: May 12 14:05:28 prosody[4843]: c2s55941add40: Traceback[c2s]: /usr/lib/prosody/util/stanza.lua:255: Invalid stanza state! Please report this error. 2024-05-12T14:05:28.43154 daemon.crit: May 12 14:05:28 prosody[4843]: c2s55941add40: Traceback[c2s]: /usr/lib/prosody/util/stanza.lua:255: Invalid stanza state! Please report this error. 2024-05-12T14:05:28.46430 daemon.crit: May 12 14:05:28 prosody[4843]: c2s559402b840: Traceback[c2s]: /usr/lib/prosody/util/stanza.lua:255: Invalid stanza state! Please report this error. 2024-05-12T14:05:28.47770 daemon.crit: May 12 14:05:28 prosody[4843]: c2s559402b840: Traceback[c2s]: /usr/lib/prosody/util/stanza.lua:255: Invalid stanza state! Please report this error. 2024-05-12T14:05:55.53982 daemon.warn: May 12 14:05:55 prosody[4843]: mod_posix: Received SIGTERM 2024-05-12T14:05:55.59795 daemon.warn: May 12 14:05:55 prosody[4843]: s2sout559467a8e0: Destroying session with 2 unacked stanzas 2024-05-12T14:05:55.59819 daemon.warn: May 12 14:05:55 prosody[4843]: stanzarouter: Received a stanza claiming to be from muc.xmpp.org, over a stream authed for lucamatei.com! 2024-05-12T14:05:55.60198 daemon.warn: May 12 14:05:55 prosody[4843]: s2sout55957a78a0: Destroying session with 2 unacked stanzas 2024-05-12T14:05:55.60338 daemon.warn: May 12 14:05:55 prosody[4843]: s2sout559467e5e0: Destroying session with 4 unacked stanzas 2024-05-12T14:05:55.60615 daemon.warn: May 12 14:05:55 prosody[4843]: s2sout55957920a0: Destroying session with 2 unacked stanzas 2024-05-12T14:05:55.60669 daemon.warn: May 12 14:05:55 prosody[4843]: stanzarouter: Received a stanza claiming to be from conference.monocles.eu, over a stream authed for lucamatei.com! 2024-05-12T14:05:56.71801 daemon.info: May 12 14:05:56 prosody[4904]: startup: Hello and welcome to Prosody version 0.12.4 2024-05-12T14:05:56.71807 daemon.info: May 12 14:05:56 prosody[4904]: startup: Hello and welcome to Prosody version 0.12.4 2024-05-12T14:05:56.79595 daemon.info: May 12 14:05:56 prosody[4904]: startup: Prosody is using the epoll backend for connection handling 2024-05-12T14:05:56.79601 daemon.info: May 12 14:05:56 prosody[4904]: startup: Prosody is using the epoll backend for connection handling 2024-05-12T14:05:56.84041 daemon.info: May 12 14:05:56 prosody[4904]: portmanager: Activated service 'http' on [::1]:5280, [127.0.0.1]:5280 2024-05-12T14:05:56.84044 daemon.info: May 12 14:05:56 prosody[4904]: portmanager: Activated service 'http' on [::1]:5280, [127.0.0.1]:5280 2024-05-12T14:05:56.84933 daemon.info: May 12 14:05:56 prosody[4904]: portmanager: Activated service 'https' on [::]:5281, [*]:5281 2024-05-12T14:05:56.84936 daemon.info: May 12 14:05:56 prosody[4904]: portmanager: Activated service 'https' on [::]:5281, [*]:5281

  6. Luca Matei Pintilie on

    Oh and full stack trace which is easier to find when not logging at a debug level: 2024-05-12T14:09:04.96094 daemon.crit: May 12 14:09:04 prosody[5584]: c2s55af0b45a0: Traceback[c2s]: /usr/lib/prosody/util/stanza.lua:255: Invalid stanza state! Please report this error. 2024-05-12T14:09:04.96101 /usr/lib/prosody/util/stanza.lua:255: in function </usr/lib/prosody/util/stanza.lua:229> 2024-05-12T14:09:04.96103 /usr/lib/prosody/modules/muc/occupant_id.lib.lua:43: in field '?' 2024-05-12T14:09:04.96105 /usr/lib/prosody/util/events.lua:81: in function </usr/lib/prosody/util/events.lua:77> 2024-05-12T14:09:04.96107 /usr/lib/prosody/modules/muc/muc.lib.lua:684: in function </usr/lib/prosody/modules/muc/muc.lib.lua:618> 2024-05-12T14:09:04.96108 /usr/lib/prosody/util/events.lua:81: in function </usr/lib/prosody/util/events.lua:77> 2024-05-12T14:09:04.96110 /usr/lib/prosody/core/stanza_router.lua:128: in upvalue 'core_process_stanza' 2024-05-12T14:09:04.96110 /usr/lib/prosody/core/stanza_router.lua:188: in upvalue 'core_post_stanza' 2024-05-12T14:09:04.96111 /usr/lib/prosody/modules/mod_c2s.lua:326: in upvalue 'func' 2024-05-12T14:09:04.96112 /usr/lib/prosody/util/async.lua:144: in function </usr/lib/prosody/util/async.lua:142>

  7. Luca Matei Pintilie on

    Removing the mod_muc_log plugin removes the error for me https://modules.prosody.im/mod_muc_log.html

New comment

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