After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 666384 - Empathy does not write chat-log-files when TpLogger under ~/.local/share is a symbolic link
Empathy does not write chat-log-files when TpLogger under ~/.local/share is a...
Status: RESOLVED NOTGNOME
Product: empathy
Classification: Core
Component: General
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2011-12-16 18:57 UTC by Bilal Shahid
Modified: 2012-01-30 10:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bilal Shahid 2011-12-16 18:57:03 UTC
Originally reported at:
  https://bugs.launchpad.net/bugs/889007

Since i want my Conversations synchronized, i have setup dropbox with some folder ~/Dropbox/IM/TpLogger and created a symbolic link under .local/share/TpLogger that points to ~/Dropbox/IM/TpLogger.
This worked in the past, but stopped working at some point in the past.

when i have empathy running and delete this link (by moving it to TpLogger.old for instance) a new TpLogger Folder is created and my logs are stored.

when run empathy with the TpLogger being a link and send/receive a message i get the attached log, where the interesting part is at 167:
(telepathy-logger:11067): tp-logger-CRITICAL **: _tpl_log_manager_add_event: logstore name=TpLogger: Couldn't open log file: /home/cnlpete/.local/share/TpLogger/logs/gabble_jabber_cnlpete_40mitharas_2ede0/chatrooms/care@conference.mitharas.de/20111111.log. Event may not be logged properly.

however, running touch, less or nano on exactly this file, i can access and edit.



I did antother test, where i put a Folder TestDir under .local/share (cd ~/.local/share && mkdir testdir) and have a symbolic link with this target (ln -s testdir TpLogger).
Then trying to send a message results in the following debug-block:
(telepathy-logger:11551): tp-logger-DEBUG: tpl_entity_new: Self id: care@conference.mitharas.de/cnlpete, tok: (null)
(telepathy-logger:11551): tp-logger-DEBUG: tpl_text_channel_store_message: Logging message sent to care@conference.mitharas.de (care@conference.mitharas.de)
(telepathy-logger:11551): tp-logger-DEBUG: tpl_log_store_sqlite_add_message_counter: message received
(telepathy-logger:11551): tp-logger-DEBUG: tpl_log_store_sqlite_add_message_counter: account = gabble/jabber/cnlpete_40mitharas_2ede0
(telepathy-logger:11551): tp-logger-DEBUG: tpl_log_store_sqlite_add_message_counter: identifier = care@conference.mitharas.de
(telepathy-logger:11551): tp-logger-DEBUG: tpl_log_store_sqlite_add_message_counter: chatroom = 1
(telepathy-logger:11551): tp-logger-DEBUG: tpl_log_store_sqlite_add_message_counter: date = 2011-11-11
(telepathy-logger:11551): tp-logger-DEBUG: tpl_log_store_sqlite_add_message_counter: got row, count = 3
(telepathy-logger:11551): tp-logger-DEBUG: tpl_log_store_sqlite_add_message_counter: new count = 4, insert = 0
(telepathy-logger:11551): tp-logger-DEBUG: tpl_log_store_sqlite_add_event: returning with 1
(telepathy-logger:11551): tp-logger-DEBUG: add_text_event: writing text event from care@conference.mitharas.de/cnlpete (ts 20111111T09:43:14)
(telepathy-logger:11551): tp-logger-DEBUG: log_store_xml_set_basedir: logstore set to dir: /home/cnlpete/.local/share/TpLogger/logs
(telepathy-logger:11551): tp-logger-DEBUG: _log_store_xml_write_to_store: Creating directory: '/home/cnlpete/.local/share/TpLogger/logs/gabble_jabber_cnlpete_40mitharas_2ede0/chatrooms/care@conference.mitharas.de'
(telepathy-logger:11551): tp-logger-DEBUG: tpl_entity_new: Unknown entity.
(telepathy-logger:11551): tp-logger-DEBUG: tpl_text_channel_store_message: Ignoring received delivery report message.
(telepathy-logger:11551): tp-logger-DEBUG: _tpl_log_store_sqlite_remove_pending_messages: Removing pending messages for channel gabble/jabber/cnlpete_40mitharas_2ede_2fHemera/MucChannel1
(telepathy-logger:11551): tp-logger-DEBUG: _tpl_log_store_sqlite_remove_pending_messages:  - pending_id: 12

but the folder does not get created!
sending another message results in exactly the same debug-output, where empthy (or tplogger) tries to create the folder but does not get created...



running 11.10 with
$ empathy --version
Empathy 3.2.0.1
$ apt-cache policy telepathy-logger
telepathy-logger:
  Installiert: 0.2.10-2

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: empathy 3.2.0.1-0ubuntu1.1
ProcVersionSignature: Ubuntu 3.0.0-13.22-generic-pae 3.0.6
Uname: Linux 3.0.0-13-generic-pae i686
NonfreeKernelModules: fglrx
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Fri Nov 11 10:03:51 2011
ExecutablePath: /usr/bin/empathy
ProcEnviron:
 LANGUAGE=de_DE:de:en_GB:en
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/usr/bin/zsh
SourcePackage: empathy
UpgradeStatus: Upgraded to oneiric on 2011-10-13 (28 days ago)
Comment 1 Guillaume Desmottes 2012-01-30 10:18:28 UTC
Logs are managed by telepathy-logger, not Empathy. Please report to bugs.freedesktop.org