~tuxicoman


#194 Whatsapp re-login in advance a month ago

Comment by ~tuxicoman on ~nicoco/slidge

I wonder if this is not linked to the last strong interaction(like sending a message) we have with the service.

#195 Crash report 2 months ago

Ticket created by ~tuxicoman on ~nicoco/slidge

avr 13 18:26:19 darkstone slidge[4002345]: INFO:slidge.core.gateway.base:Slidge has successfully started avr 13 18:26:20 darkstone slidge[4002345]: INFO:slidge.plugins.whatsapp.gateway:Successfully authenticated avr 13 18:26:20 darkstone slidge[4002345]: INFO:slidge.core.gateway.base:Login success for <User @jesuislibre.net> avr 13 18:26:24 darkstone slidge[4002345]: ERROR:@jesuislibre.net:Failed getting avatar for contact @s.whatsapp.net: Could not get avatar: the user has hidden their profile picture from you avr 13 18:26:26 darkstone slidge[4002345]: ERROR:@jesuislibre.net:Failed getting avatar for contact @s.whatsapp.net: Could not get avatar: the user has hidden their profile picture from you avr 13 18:26:27 darkstone slidge[4002345]: ERROR:@jesuislibre.net:Failed getting avatar for contact @s.whatsapp.net: Could not get avatar: the user has hidden their profile picture from you avr 13 18:26:27 darkstone slidge[4002345]: ERROR:@jesuislibre.net:Failed getting avatar for contact @s.whatsapp.net: Could not get avatar: the user has hidden their profile picture from you avr 13 18:26:29 darkstone slidge[4002345]: ERROR:@jesuislibre.net:Failed getting avatar for contact @s.whatsapp.net: Could not get avatar: the user has hidden their profile picture from you avr 13 18:27:45 darkstone slidge[4002345]: /usr/lib/slidge/lib/python3.11/site-packages/slidge/group/room.py:893:UserWarning:IQ privileges (XEP0356) are not set, we cannot fetch the user bookmarks avr 13 18:27:45 darkstone slidge[4002345]: WARNING:slidge.plugins.whatsapp.gateway:Node handling took 1m7.478879394s for avr 13 18:29:01 darkstone slidge[4002345]: WARNING:slidge.plugins.whatsapp.gateway:Node handling took 20.148295336s for avr 13 18:29:01 darkstone slidge[4002345]: ERROR:slidge.core.gateway.base:Crash in an asyncio task: {'message': 'Task exception was never retrieved', 'exception': XMPPError('recipient-unavailable', 'Still fetching group info, please retry later'), 'futu> avr 13 18:29:01 darkstone slidge[4002345]: ERROR:slidge.core.gateway.base:Crash in task avr 13 18:29:01 darkstone slidge[4002345]: Traceback (most recent call last): avr 13 18:29:01 darkstone slidge[4002345]: File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/core/gateway/base.py", line 480, in __login_wrap avr 13 18:29:01 darkstone slidge[4002345]: await session.bookmarks.fill() avr 13 18:29:01 darkstone slidge[4002345]: File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/plugins/whatsapp/group.py", line 201, in fill avr 13 18:29:01 darkstone slidge[4002345]: await self.add_whatsapp_group(group) avr 13 18:29:01 darkstone slidge[4002345]: File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/plugins/whatsapp/group.py", line 205, in add_whatsapp_group avr 13 18:29:01 darkstone slidge[4002345]: muc = await self.by_legacy_id(data.JID) avr 13 18:29:01 darkstone slidge[4002345]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ avr 13 18:29:01 darkstone slidge[4002345]: File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/group/bookmarks.py", line 123, in by_legacy_id avr 13 18:29:01 darkstone slidge[4002345]: return await self.by_jid(jid) avr 13 18:29:01 darkstone slidge[4002345]: ^^^^^^^^^^^^^^^^^^^^^^ avr 13 18:29:01 darkstone slidge[4002345]: File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/group/bookmarks.py", line 103, in by_jid avr 13 18:29:01 darkstone slidge[4002345]: legacy_id = await self.jid_local_part_to_legacy_id(local_part) avr 13 18:29:01 darkstone slidge[4002345]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ avr 13 18:29:01 darkstone slidge[4002345]: File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/plugins/whatsapp/group.py", line 217, in jid_local_part_to_legacy_id avr 13 18:29:01 darkstone slidge[4002345]: raise XMPPError( avr 13 18:29:01 darkstone slidge[4002345]: slixmpp.exceptions.XMPPError: ('recipient-unavailable', 'Still fetching group info, please retry later')

#194 Whatsapp re-login in advance 2 months ago

Ticket created by ~tuxicoman on ~nicoco/slidge

When whatsapp logs you out, you don' necessarily get the mean to perform the "re-login" right away.

It would be nice to have a no disruption of service. For that, ask the user to re-login before expiration.

I guess the whatsapp login last 15 days. So maybe as re-login every 10 days?

#188 frozen runpy warning 4 months ago

Ticket created by ~tuxicoman on ~nicoco/slidge

At startup this warning appears: :128:RuntimeWarning:'slidge.main' found in sys.modules after import of package 'slidge', but prior to execution of 'slidge.main'; this may result in unpredictable behaviour

Slidge version: slidge/bookworm,now 0.0.0-dev+20240214-git6651529b07 amd64 [installé]

#187 crash report (rename the ticket as you understand the issue) 4 months ago

Comment by ~tuxicoman on ~nicoco/slidge

Problem is not appearing with slidge/bookworm,now 0.0.0-dev+20240214-git6651529b07 amd64 [installé]

#187 crash report (rename the ticket as you understand the issue) 4 months ago

Comment by ~tuxicoman on ~nicoco/slidge

Sure, Please plug the server again to the Internet ;) Connexion à deb.slidge.im: 80 (2a02:a00:e010:3c01:a892:e8ff:feea:5244) impossible, délai de connexion dépassé Connexion à deb.slidge.im: 80 (188.246.5.22) impossible, délai de connexion dépassé

#187 crash report (rename the ticket as you understand the issue) 4 months ago

Comment by ~tuxicoman on ~nicoco/slidge

Not immediately

-- Boot 2cb6686c9d0141bbaf5c4c468f3df791 -- fév 12 01:45:39 darkstone systemd[1]: Started slidge@whatsapp.service - Slidge XMPP whatsapp bridge. fév 12 01:45:45 darkstone slidge[589]: :128:RuntimeWarning:'slidge.main' found in sys.modules after import of package 'slidge', but prior to execution of 'slidge.main'; this may result in unpredictable behaviour fév 12 01:45:45 darkstone slidge[589]: INFO:slidge.util.db:Using existing slidge DB: /var/lib/slidge/whatsapp.jesuislibre.net/slidge.db fév 12 01:45:45 darkstone slidge[589]: INFO:slidge.util.db:Registered users in the DB: ['-redacted-@jesuislibre.net'] fév 12 01:45:45 darkstone slidge[589]: INFO:root:Starting slidge version NO_VERSION fév 12 01:45:45 darkstone slidge[589]: INFO:root:Starting legacy module: 'slidge.plugins.whatsapp' version NO_VERSION fév 12 01:45:46 darkstone slidge[589]: INFO:slidge.core.gateway.base:Slidge has successfully started fév 12 01:45:47 darkstone slidge[589]: INFO:slidge.plugins.whatsapp.gateway:Successfully authenticated fév 12 01:45:47 darkstone slidge[589]: INFO:slidge.core.gateway.base:Login success for <User -redacted-@jesuislibre.net> fév 12 01:45:49 darkstone slidge[589]: ERROR:-redacted-@jesuislibre.net:Failed getting avatar for contact -redacted-@s.whatsapp.net: Could not get avatar: the user has hidden their profile picture from you fév 12 01:45:54 darkstone slidge[589]: ERROR:-redacted-@jesuislibre.net:Failed getting avatar for contact -redacted-@s.whatsapp.net: Could not get avatar: the user has hidden their profile picture from you fév 12 01:45:54 darkstone slidge[589]: ERROR:-redacted-@jesuislibre.net:Failed getting avatar for contact -redacted-@s.whatsapp.net: Could not get avatar: the user has hidden their profile picture from you fév 12 01:45:56 darkstone slidge[589]: ERROR:-redacted-@jesuislibre.net:Failed getting avatar for contact -redacted-@s.whatsapp.net: Could not get avatar: the user has hidden their profile picture from you fév 12 01:45:57 darkstone slidge[589]: ERROR:-redacted-@jesuislibre.net:Failed getting avatar for contact -redacted-@s.whatsapp.net: Could not get avatar: the user has hidden their profile picture from you fév 12 01:47:12 darkstone slidge[589]: /usr/lib/slidge/lib/python3.11/site-packages/slidge/group/room.py:868:UserWarning:IQ privileges (XEP0356) are not set, we cannot fetch the user bookmarks fév 12 01:48:29 darkstone slidge[589]: ERROR:slidge.core.gateway.base:Crash in an asyncio task: {'message': 'Task exception was never retrieved', 'exception': XMPPError('recipient-unavailable', 'Still fetching group info, please retry later'), 'future':> fév 12 01:48:29 darkstone slidge[589]: ERROR:slidge.core.gateway.base:Crash in task fév 12 01:48:29 darkstone slidge[589]: Traceback (most recent call last): fév 12 01:48:29 darkstone slidge[589]: File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/core/gateway/base.py", line 422, in __login_wrap fév 12 01:48:29 darkstone slidge[589]: await session.bookmarks.fill() fév 12 01:48:29 darkstone slidge[589]: File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/plugins/whatsapp/group.py", line 116, in fill fév 12 01:48:29 darkstone slidge[589]: await self.add_whatsapp_group(group) fév 12 01:48:29 darkstone slidge[589]: File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/plugins/whatsapp/group.py", line 120, in add_whatsapp_group fév 12 01:48:29 darkstone slidge[589]: muc = await self.by_legacy_id(data.JID) fév 12 01:48:29 darkstone slidge[589]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ fév 12 01:48:29 darkstone slidge[589]: File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/group/bookmarks.py", line 123, in by_legacy_id fév 12 01:48:29 darkstone slidge[589]: return await self.by_jid(jid) fév 12 01:48:29 darkstone slidge[589]: ^^^^^^^^^^^^^^^^^^^^^^ fév 12 01:48:29 darkstone slidge[589]: File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/group/bookmarks.py", line 103, in by_jid fév 12 01:48:29 darkstone slidge[589]: legacy_id = await self.jid_local_part_to_legacy_id(local_part) fév 12 01:48:29 darkstone slidge[589]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ fév 12 01:48:29 darkstone slidge[589]: File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/plugins/whatsapp/group.py", line 132, in jid_local_part_to_legacy_id fév 12 01:48:29 darkstone slidge[589]: raise XMPPError( fév 12 01:48:29 darkstone slidge[589]: slixmpp.exceptions.XMPPError: ('recipient-unavailable', 'Still fetching group info, please retry later') fév 12 01:48:31 darkstone slidge[589]: INFO:slixmpp.xmlstream.xmlstream:connection_lost: (None,) fév 12 01:48:31 darkstone slidge[589]: INFO:root:Successful clean shut down fév 12 01:48:31 darkstone systemd[1]: slidge@whatsapp.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED fév 12 01:48:31 darkstone systemd[1]: slidge@whatsapp.service: Failed with result 'exit-code'. fév 12 01:48:31 darkstone systemd[1]: slidge@whatsapp.service: Consumed 3.394s CPU time.

#187 crash report (rename the ticket as you understand the issue) 4 months ago

Comment by ~tuxicoman on ~nicoco/slidge

version: slidge/bookworm,now 0.0.0-dev+20231219-gitc7ea78a3bd amd64 [installé]

#187 crash report (rename the ticket as you understand the issue) 4 months ago

Ticket created by ~tuxicoman on ~nicoco/slidge

fév 12 01:33:42 darkstone slidge[35144]: ERROR:slidge.core.gateway.base:Crash in an asyncio task: {'message': 'Task exception was never retrieved', 'exception': XMPPError('recipient-unavailable', 'Still fetching group info, please retry later'), 'future>
fév 12 01:33:42 darkstone slidge[35144]: ERROR:slidge.core.gateway.base:Crash in task
fév 12 01:33:42 darkstone slidge[35144]: Traceback (most recent call last):
fév 12 01:33:42 darkstone slidge[35144]:   File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/core/gateway/base.py", line 422, in __login_wrap
fév 12 01:33:42 darkstone slidge[35144]:     await session.bookmarks.fill()
fév 12 01:33:42 darkstone slidge[35144]:   File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/plugins/whatsapp/group.py", line 116, in fill
fév 12 01:33:42 darkstone slidge[35144]:     await self.add_whatsapp_group(group)
fév 12 01:33:42 darkstone slidge[35144]:   File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/plugins/whatsapp/group.py", line 120, in add_whatsapp_group
fév 12 01:33:42 darkstone slidge[35144]:     muc = await self.by_legacy_id(data.JID)
fév 12 01:33:42 darkstone slidge[35144]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fév 12 01:33:42 darkstone slidge[35144]:   File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/group/bookmarks.py", line 123, in by_legacy_id
fév 12 01:33:42 darkstone slidge[35144]:     return await self.by_jid(jid)
fév 12 01:33:42 darkstone slidge[35144]:            ^^^^^^^^^^^^^^^^^^^^^^
fév 12 01:33:42 darkstone slidge[35144]:   File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/group/bookmarks.py", line 103, in by_jid
fév 12 01:33:42 darkstone slidge[35144]:     legacy_id = await self.jid_local_part_to_legacy_id(local_part)
fév 12 01:33:42 darkstone slidge[35144]:                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fév 12 01:33:42 darkstone slidge[35144]:   File "/usr/lib/slidge/lib/python3.11/site-packages/slidge/plugins/whatsapp/group.py", line 132, in jid_local_part_to_legacy_id
fév 12 01:33:42 darkstone slidge[35144]:     raise XMPPError(
fév 12 01:33:42 darkstone slidge[35144]: slixmpp.exceptions.XMPPError: ('recipient-unavailable', 'Still fetching group info, please retry later')
fév 12 01:33:44 darkstone slidge[35144]: INFO:slixmpp.xmlstream.xmlstream:connection_lost: (None,)
fév 12 01:33:44 darkstone slidge[35144]: INFO:root:Successful clean shut down

#164 Slidge/Whatsapp key error in del self._msg_by_ids[msg.id] 1 year, 23 days ago

Ticket created by ~tuxicoman on ~nicoco/slidge

mai 29 15:04:24 darkstone slidge[1702623]: Traceback (most recent call last):
mai 29 15:04:24 darkstone slidge[1702623]:   File "/usr/lib/slidge/lib/python3.9/site-packages/slidge/plugins/whatsapp/session.py", line 425, in wrapper
mai 29 15:04:24 darkstone slidge[1702623]:     return future.result()
mai 29 15:04:24 darkstone slidge[1702623]:   File "/usr/lib/python3.9/concurrent/futures/_base.py", line 440, in result
mai 29 15:04:24 darkstone slidge[1702623]:     return self.__get_result()
mai 29 15:04:24 darkstone slidge[1702623]:   File "/usr/lib/python3.9/concurrent/futures/_base.py", line 389, in __get_result
mai 29 15:04:24 darkstone slidge[1702623]:     raise self._exception
mai 29 15:04:24 darkstone slidge[1702623]:   File "/usr/lib/slidge/lib/python3.9/site-packages/slidge/plugins/whatsapp/session.py", line 42, in wrapped
mai 29 15:04:24 darkstone slidge[1702623]:     return await func(self, *a, **k)
mai 29 15:04:24 darkstone slidge[1702623]:   File "/usr/lib/slidge/lib/python3.9/site-packages/slidge/plugins/whatsapp/session.py", line 136, in handle_event
mai 29 15:04:24 darkstone slidge[1702623]:     await self.handle_message(data.Message)
mai 29 15:04:24 darkstone slidge[1702623]:   File "/usr/lib/slidge/lib/python3.9/site-packages/slidge/plugins/whatsapp/session.py", line 224, in handle_message
mai 29 15:04:24 darkstone slidge[1702623]:     contact.send_text(
mai 29 15:04:24 darkstone slidge[1702623]:   File "/usr/lib/slidge/lib/python3.9/site-packages/slidge/plugins/whatsapp/group.py", line 18, in send_text
mai 29 15:04:24 darkstone slidge[1702623]:     super().send_text(body, legacy_msg_id, **kw)
mai 29 15:04:24 darkstone slidge[1702623]:   File "/usr/lib/slidge/lib/python3.9/site-packages/slidge/core/mixins/message.py", line 197, in send_text
mai 29 15:04:24 darkstone slidge[1702623]:     self._send(msg, archive_only=archive_only, carbon=carbon, **send_kwargs)
mai 29 15:04:24 darkstone slidge[1702623]:   File "/usr/lib/slidge/lib/python3.9/site-packages/slidge/core/muc/participant.py", line 188, in _send
mai 29 15:04:24 darkstone slidge[1702623]:     self.muc.archive.add(stanza, archive_only)
mai 29 15:04:24 darkstone slidge[1702623]:   File "/usr/lib/slidge/lib/python3.9/site-packages/slidge/core/muc/archive.py", line 48, in add
mai 29 15:04:24 darkstone slidge[1702623]:     self.__cleanup()
mai 29 15:04:24 darkstone slidge[1702623]:   File "/usr/lib/slidge/lib/python3.9/site-packages/slidge/core/muc/archive.py", line 60, in __cleanup
mai 29 15:04:24 darkstone slidge[1702623]:     del self._msg_by_ids[msg.id]
mai 29 15:04:24 darkstone slidge[1702623]: Key Error: '3AB4C63D414F03FD1E13'