#526055 [gajim] Won't start if /home is mounted remotely (NFS)

Package:
libsqlite3-0
Source:
sqlite3
Description:
SQLite 3 shared library
Submitter:
Xavier MAILLARD
Date:
2010-09-11 07:13:26 UTC
Severity:
normal
#526055#5
Date:
2009-04-28 21:16:40 UTC
From:
To:
--- Please enter the report below this line. ---
When starting with an empty .gajim directory, gajim will fail if
the /home directory is mounted with NFS.

Traceback:

xma@homer:~$ gajim
crée le répertoire /home/xma/.gajim
crée le répertoire /home/xma/.gajim/vcards
crée le répertoire /home/xma/.gajim/avatars
création de la base de donnée de l'historique
Traceback (most recent call last):
  File "gajim.py", line 3356, in <module>
    check_paths.check_and_possibly_create_paths()
  File "/usr/share/gajim/src/common/check_paths.py", line 133, in
check_and_possibly_create_paths create_log_db()
  File "/usr/share/gajim/src/common/check_paths.py", line 98, in
create_log_db '''
sqlite3.OperationalError: database is locked
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "gajim.py", line 408, in on_exit
    gajim.interface.save_config()
AttributeError: 'NoneType' object has no attribute 'save_config'
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "gajim.py", line 408, in on_exit
    gajim.interface.save_config()
AttributeError: 'NoneType' object has no attribute 'save_config'

If I create a directory on a local disk, say in /tmp/gajim and ln
-s /tmp/gajim ~/.gajim it will run successfully.

Sounds like there is something with the hsitory database and NFS mounts.
--- Package information. --- Depends (Version) | Installed ==============================-+-============ libatk1.0-0 (>= 1.20.0) | 1.26.0-1 libc6 (>= 2.7-1) | 2.9-8 libcairo2 (>= 1.2.4) | 1.8.6-2+b1 libglib2.0-0 (>= 2.16.0) | 2.20.1-1 libgtk2.0-0 (>= 2.12.0) | 2.16.1-2 libgtkspell0 (>= 2.0.10) | 2.0.13-2 libpango1.0-0 (>= 1.20.3) | 1.24.0-3+b1 libxss1 | 1:1.1.3-1 python (<< 2.6) | 2.5.4-2 python (>= 2.5) | 2.5.4-2 python-support (>= 0.7.1) | 1.0.2 python-glade2 (>= 2.8.0) | 2.14.1-2 python-gtk2 (>= 2.8.0) | 2.14.1-2 dnsutils | 1:9.6.0.dfsg.P1-2
#526055#10
Date:
2009-04-28 21:34:30 UTC
From:
To:
reassign 526055 libsqlite3-0

Xavier MAILLARD wrote:

It's a sqlite limitqation.
from pysqlite FAQ (http://www.sqlite.org/faq.html#q5):
"But use caution: this locking mechanism might not work correctly if the
database file is kept on an NFS filesystem. This is because fcntl() file
locking is broken on many NFS implementations."

#526055#15
Date:
2009-04-28 21:34:30 UTC
From:
To:
reassign 526055 libsqlite3-0

Xavier MAILLARD wrote:

It's a sqlite limitqation.
from pysqlite FAQ (http://www.sqlite.org/faq.html#q5):
"But use caution: this locking mechanism might not work correctly if the
database file is kept on an NFS filesystem. This is because fcntl() file
locking is broken on many NFS implementations."