Author Topic: Error downloading templaes: Synchronization task pool already defined  (Read 549 times)

admin0

  • Newbie
  • *
  • Posts: 1
Hi,

When I try to download any template, I get this:

Synchronization task pool already defined

Traceback (most recent call last):
  File "/opt/opennode/bin/opennode", line 82, in <module>
    tui.run()
  File "/usr/lib/python2.6/site-packages/opennode/cli/screen.py", line 473, in run
    self.display_main_screen()
  File "/usr/lib/python2.6/site-packages/opennode/cli/screen.py", line 51, in display_main_screen
    logic[result]()
  File "/usr/lib/python2.6/site-packages/opennode/cli/screen.py", line 244, in display_templates
    logic[result]()
  File "/usr/lib/python2.6/site-packages/opennode/cli/screen.py", line 266, in display_template_manage
    actions.templates.sync_storage_pool(storage_pool, chosen_repo, selected_list)
  File "/usr/lib/python2.6/site-packages/opennode/cli/actions/templates.py", line 66, in sync_storage_pool
    raise RuntimeError, "Synchronization task pool already defined."
RuntimeError: Synchronization task pool already defined.

The sever was rebooted while it was in the middle of a download, so it could be some lock file ?
How do i solve it ?


Thanks,


ilja_l

  • Administrator
  • Full Member
  • *****
  • Posts: 225
Re: Error downloading templaes: Synchronization task pool already defined
« Reply #1 on: February 01, 2012, 09:23:17 AM »
Yes, indeed, there is a lock file:
Code: [Select]
rm -f  /var/spool/opennode/synctasks
Location of that task file can be changed in the configuration file: /etc/opennode/opennode-tui.conf.  That file contains a serialized list of templates for synchronization. In the longer run synchronization will be able to recover from the failures (we are planning a move to zsync), but till then you need to handle failures manually.