On Thu, Oct 14, 2010 at 09:57:45AM +0200, Tor Pretorius wrote:
Running nav 3.6 on a Debian installation Its upgrade from nav 3.5.6
This error came when I'm trying to delete a device.
File "/usr/share/nav/htdocs/seeddb/seeddb.py", line 1617, in delete error += '%s is referenced in another table' % (self.name,)
AttributeError: pageNetbox instance has no attribute 'name'
Seems like there are at least two bugs here. The delete operation caused a database integrity error, which should never happen when deleting an IP Device - all the database foreign keys should have cascading triggers that should resolve any integrity problems here.
The traceback indicates a typo in a variable name in the error handling code. Fixing the bug doesn't seem to make much of a difference in finding the integrity problem, since the output error message doesn't seem to convey any info about which reference caused the problem.
If you could please watch your postgresql logs while you retry the delete operation, it might give a better clue as to what's blocking the delete operation.