Odoo Help


Error: Cron <root@ip-10-48-41-143> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )

Harri Luuppala
on 3/2/14, 11:55 PM 3,126 views

OpenERP on Ubuntu 12.04 (on Amazon AWS)

pg /etc/os-* NAME="Ubuntu" VERSION="12.04.4 LTS, Precise Pangolin" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu precise (12.04.4 LTS)" VERSION_ID="12.04"

Defined admin@ as the email forr root, so server sent this email to admin@ user in OpenERP.

ERROR: Cron <root@ip-10-48-41-143> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) /etc/cron.weekly/apt-xapian-index: Traceback (most recent call last): File "/usr/sbin/update-apt-xapian-index", line 108, in indexer.rebuild(opts.pkgfile) File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 735, in rebuild self.buildIndex(dbdir, generator) File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 698, in buildIndex db = xapian.WritableDatabase(pathname, xapian.DB_CREATE_OR_OVERWRITE) File "/usr/lib/python2.7/dist-packages/xapian/__init__.py", line 4298, in __init__ _xapian.WritableDatabase_swiginit(self,_xapian.new_WritableDatabase(*args)) xapian.DatabaseLockError: Unable to get write lock on /var/cache/apt-xapian-index/index.1: Couldn't fork: Cannot allocate memory run-parts: /etc/cron.weekly/apt-xapian-index exited with return code 1

Harri Luuppala
On 3/3/14, 1:50 AM

Found reason for this Python related issue..

The Ubuntu 12.04 (and some other versions) got an security fix for xapian. This security update needed a restart for server. After restart I run manually the

sudo /etc/cron.weekly/apt-xapian-index

and it worked without errors.

Krupesh Laiya
On 3/3/14, 1:29 AM

Visit below links:



About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 3/2/14, 11:55 PM
Seen: 3126 times
Last updated: 3/16/15, 8:10 AM