Odoo Help

Welcome!

This community 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.

0

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

By
Harri Luuppala
on 3/2/14, 11:55 PM 2,461 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

0
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.

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

Visit below links:

Link-1

Link-2

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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