On Mon, 04 Mar 2013 13:42:45 +0100 Ingeborg Hellemo ingeborg.hellemo@uit.no wrote:
Sometime this last week our maintengine has stopped working:
/#/usr/local/nav/bin/maintengine.py Traceback (most recent call last): File "/usr/local/nav/bin/maintengine.py", line 45, in <module> main() File "/usr/local/nav/bin/maintengine.py", line 39, in main check_devices_on_maintenance() File "/usr/local/nav/lib/python/nav/maintengine.py", line 479, in check_devices_on_maintenance send_event(events, maxdate_boxes, boxes_off_maintenance) File "/usr/local/nav/lib/python/nav/maintengine.py", line 343, in send_event str(curr_event['maint_end']))) TypeError: not all arguments converted during string formatting
NAV 3.13.0
I guess something has gone wrong in the database. Where to look?
No, this looks more like a bug in the code, ironically in a debug log statement :P It looks like it only occurs if a netbox is associated with several simultaneous maintenance tasks; are you able to confirm this assessment?
I'm looking into it, please see https://bugs.launchpad.net/nav/+bug/1146602 .