Craige / prosody-modules

Automatically exported from code.google.com/p/prosody-modules
MIT License
0 stars 0 forks source link

mod_archive only archives one side of a conversation #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have a conversation with someone
2. Look in /var/lib/prosody/*/archive/user.list

What is the expected output? What do you see instead?

I expect to see both the messages I sent them, and the messages they sent me.

I only see the messages they sent me.

What version of the product are you using? On what operating system?

I am using prosody 0.7.0-1
Linux singpolyma 2.6.18-164.11.1.el5.028stab068.3 #1 SMP Wed Feb 17 15:22:30 
MSK 2010 x86_64 GNU/Linux
Debian GNU/Linux 5.0
Latest mod_archive from hg

Please provide any additional information below.

This existed on the last version of mod_archive I tried, and persists on the 
latest version.

Original issue reported on code.google.com by singpol...@gmail.com on 14 Sep 2010 at 2:23

GoogleCodeExporter commented 8 years ago
Could you look into log files for any mod_archive related errors or warnings, 
please?

Original comment by xdersd on 15 Sep 2010 at 3:16

GoogleCodeExporter commented 8 years ago

Original comment by xdersd on 15 Sep 2010 at 3:17

GoogleCodeExporter commented 8 years ago
prosody.err is empty and prosody.log has no mention of mod_archive that I can 
see

Original comment by singpol...@gmail.com on 16 Sep 2010 at 8:38

GoogleCodeExporter commented 8 years ago
Note that I checked prosody.err.[1-6] and prosody.log.[1-6] with the same 
results :)

Original comment by singpol...@gmail.com on 16 Sep 2010 at 8:40

GoogleCodeExporter commented 8 years ago
Environment:
 Ubuntu 10.04
 Prosody 0.7.0-1, hosting example.com
 mod_archive r6202ce4d12
 example.com user: Adium 1.4 (OS X)
 googlemail.com user: Pidgin (Windows)

Enabling debug logging gives me this log showing an incoming message activating 
the "msg_handler" but not a subsequent outgoing message:

Dec 26 15:19:42 s2sin88a6d38    debug   Received[s2sin]: <message 
id='purple8061434e' type='chat' to='chris@example.com/Laptop' 
from='foo.bar@googlemail.com/Laptop9ACD360A'>
Dec 26 15:19:42 example.com:archive       debug   -- Enter msg_handler()
Dec 26 15:19:42 datamanager     debug   Failed to load accounts storage 
('cannot open /var/lib/prosody/googlemail%2ecom/accounts/foo%2ebar.dat: No such 
file or directory') for user: foo.bar@googlemail.com
Dec 26 15:19:42 datamanager     debug   Failed to load archive_prefs storage 
('cannot open /var/lib/prosody/example%2ecom/archive_prefs/chris.dat: No such 
file or directory') for user: chris@example.com
Dec 26 15:19:42 s2sin88a6d38    debug   Received[s2sin]: <message 
id='purple8061434f' type='chat' to='chris@example.com/Laptop' 
from='foo.bar@googlemail.com/Laptop9ACD360A'>
Dec 26 15:19:42 example.com:archive       debug   -- Enter msg_handler()
Dec 26 15:19:50 c2s86c19d0      debug   Received[c2s]: <message 
id='purple7046af4f' type='chat' to='foo.bar@googlemail.com/Laptop9ACD360A'>
Dec 26 15:19:50 stanzarouter    debug   sending s2s stanza: <message 
type='chat' to='foo.bar@googlemail.com/Laptop9ACD360A' 
from='chris@example.com/Laptop' id='purple7046af4f'>
Dec 26 15:19:50 s2sout878fd90   debug   going to send stanza to googlemail.com 
from example.com
Dec 26 15:19:50 s2sout878fd90   debug   sending: <message type='chat' 
to='foo.bar@googlemail.com/Laptop9ACD360A' from='chris@example.com/Laptop' 
id='purple7046af4f'>
Dec 26 15:19:50 s2sout878fd90   debug   stanza sent over s2sout

Original comment by chris@orr.me.uk on 26 Dec 2010 at 3:36

GoogleCodeExporter commented 8 years ago
This patch seems to solve this: http://pastie.org/1813016

Original comment by stephen....@gswot.org on 19 Apr 2011 at 8:31