SUSE Manager spacewalk-repo-sync is failing with database lock error

This document (7016242) is provided subject to the disclaimer at the end of this document.


SUSE Manager 2.1
SUSE Manager 1.7


If  you have SUSE Manager running /var/cache partition on top of CIFS, you most likely have problems during repositories syncronizations. During spacewalk-repo-sync you will see database lock error. Checking the log file in /var/log/rhn/rhn_taskomatic_daemon.log you can see that:
[Thread-6613] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask -
 (process:15994): GLib-CRITICAL **: g_timer_stop: assertion `timer != NULL' failed
 (process:15994): GLib-CRITICAL **: g_timer_destroy: assertion `timer != NULL' failed
Traceback (most recent call last):
   File "/usr/lib64/python2.6/site-packages/spacewalk/satellite_tools/", line 167, in sync
     self.import_packages(repo, data['id'], data['source_url'])
   File "/usr/lib64/python2.6/site-packages/spacewalk/satellite_tools/", line 842, in import_packages
     packages = plug.list_packages(filters)
   File "/usr/lib64/python2.6/site-packages/spacewalk/satellite_tools/repo_plugins/", line 185, in list_packages
     self.sack.populate(self.repo, 'metadata', None, 0)
   File "/usr/lib64/python2.6/site-packages/yum/", line 186, in populate
     dobj = repo_cache_function(xml, csum)
   File "/usr/lib64/python2.6/site-packages/", line 42, in getPrimary
 2015/02/20 16:02:20 | TypeError: Can not create db_info table: database is locked


With CIFS you can use the "nobrl" mount option. From mount.cifs(5) man page:

         Do not send byte range lock requests to the server. This is necessary for certain applications that break with cifs style mandatory byte range locks (and most cifs servers do not yet support requesting advisory byte range locks).

The other option would be to not put  /var/cache/ on CIFS.


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7016242
  • Creation Date: 26-Feb-2015
  • Modified Date:03-Mar-2020
    • SUSE Manager

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact:

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center