On 2010-10-11 11:47, Morten Brekkevold wrote:
Could you please report this bug at https://bugs.launchpad.net/nav/+filebug ?
ACK.
I'm also getting a lot of errors in ipdevpoll.log, just one examle:
2010-10-11 19:46:43,686 [ERROR] [nav.ipdevpoll.jobs.jobhandler.inventory.(12a-sw-vts.vegvesen.no)] Caught exception during save. Last object = Interface(netbox= Netbox(id=351, type=NetboxType(id=20, vendor=Vendor(id=u'cisco'), name=u'catalyst37xxStack', sysobjectid=u'1.3.6.1.4.1.9.1.516', cdp=True, tftp=True, cs_at_vlan=True, chassis=True, description=u'Catalyst 3750'), device=Device(id=370, serial ='FOC1227W4M0', hardware_version='V05', firmware_version='12.2(35)SE5', software_version='12.2(35)SE5'), sysname='12a-sw-vts.vegvesen.no'), ifindex=10117L, ifname='Gi1/0/17', ifdescr='GigabitEthernet1/0/17', iftype=6, speed=10.0, ifphysaddress='00:22:56:34:9b:11', ifadminstatus=1, ifoperstatus=1, ifconnectorpresent=True, ifalias='Temp Overv\xe5ker', baseport=17L, vlan=1, trunk=False, duplex='h', gone_since=None). Last model: Gi1/0/17 at 12a-sw-vts Traceback (most recent call last): File "/var/lib/python-support/python2.5/nav/ipdevpoll/jobs.py", line 334, in perform_save obj_model.save() File "/var/lib/python-support/python2.5/django/db/models/base.py", line 311, in save self.save_base(force_insert=force_insert, force_update=force_update) File "/var/lib/python-support/python2.5/django/db/models/base.py", line 383, in save_base result = manager._insert(values, return_id=update_pk) File "/var/lib/python-support/python2.5/django/db/models/manager.py", line 138, in _insert return insert_query(self.model, values, **kwargs) File "/var/lib/python-support/python2.5/django/db/models/query.py", line 894, in insert_query return query.execute_sql(return_id) File "/var/lib/python-support/python2.5/django/db/models/sql/subqueries.py", line 309, in execute_sql cursor = super(InsertQuery, self).execute_sql(None) File "/var/lib/python-support/python2.5/django/db/models/sql/query.py", line 1734, in execute_sql cursor.execute(sql, params) DataError: invalid byte sequence for encoding "UTF8": 0xe56b65 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".
Is there any way I can avoid putting non latin-1 characters into the database as a workaround?
Cheers,
-Sigurd