oops_tools@neem:/tmp$ ./oops_tools-production-run-amqp2disk.sh Failed while processing /srv/oops.canonical.com/oops-amqp/oops_tools/production/2012-05-24/OOPS-69c1c68e3d26c854d347cf644722d534
Traceback (most recent call last):
File "/srv/oops.canonical.com/python-oops-tools/bin/amqp2disk", line 55, in <module>
oopstools.scripts.amqp2disk.main()
File "/srv/oops.canonical.com/python-oops-tools/src/oopstools/scripts/amqp2disk.py", line 113, in main
receiver.run_forever()
File "/srv/oops.canonical.com/python-oops-tools/eggs/oops_amqp-0.0.5-py2.7.egg/oops_amqp/receiver.py", line 85, in run_forever
self._run_forever()
File "/srv/oops.canonical.com/python-oops-tools/eggs/oops_amqp-0.0.5-py2.7.egg/oops_amqp/receiver.py", line 107, in _run_forever
self.channel.wait()
File "/srv/oops.canonical.com/python-oops-tools/eggs/amqplib-1.0.2-py2.7.egg/amqplib/client_0_8/abstract_channel.py", line 97, in wait
return self.dispatch_method(method_sig, args, content)
File "/srv/oops.canonical.com/python-oops-tools/eggs/amqplib-1.0.2-py2.7.egg/amqplib/client_0_8/abstract_channel.py", line 117, in dispatch_method
return amqp_method(self, args, content)
File "/srv/oops.canonical.com/python-oops-tools/eggs/amqplib-1.0.2-py2.7.egg/amqplib/client_0_8/channel.py", line 2060, in _basic_deliver
func(msg)
File "/srv/oops.canonical.com/python-oops-tools/eggs/oops_amqp-0.0.5-py2.7.egg/oops_amqp/receiver.py", line 70, in handle_report
self.config.publish(report)
File "/srv/oops.canonical.com/python-oops-tools/eggs/oops-0.0.10-py2.7.egg/oops/config.py", line 189, in publish
id = publisher(report)
File "/srv/oops.canonical.com/python-oops-tools/src/oopstools/scripts/amqp2disk.py", line 130, in db_publisher
res = parsed_oops_to_model_oops(report, oops_path)
File "/srv/oops.canonical.com/python-oops-tools/src/oopstools/oops/models.py", line 483, in parsed_oops_to_model_oops
res.save()
File "/srv/oops.canonical.com/python-oops-tools/parts/django/django/db/models/base.py", line 460, in save
self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/srv/oops.canonical.com/python-oops-tools/parts/django/django/db/models/base.py", line 553, in save_base
result = manager._insert(values, return_id=update_pk, using=using)
File "/srv/oops.canonical.com/python-oops-tools/parts/django/django/db/models/manager.py", line 195, in _insert
return insert_query(self.model, values, **kwargs)
File "/srv/oops.canonical.com/python-oops-tools/parts/django/django/db/models/query.py", line 1436, in insert_query
return query.get_compiler(using=using).execute_sql(return_id)
File "/srv/oops.canonical.com/python-oops-tools/parts/django/django/db/models/sql/compiler.py", line 791, in execute_sql
cursor = super(SQLInsertCompiler, self).execute_sql(None)
File "/srv/oops.canonical.com/python-oops-tools/parts/django/django/db/models/sql/compiler.py", line 735, in execute_sql
cursor.execute(sql, params)
File "/srv/oops.canonical.com/python-oops-tools/parts/django/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
return self.cursor.execute(query, args)
django.db.utils.DatabaseError: value too long for type character varying(500)
Hi,
I'm seeing this as well:
oops_tools@ neem:/tmp$ ./oops_ tools-productio n-run-amqp2disk .sh Failed while processing /srv/oops. canonical. com/oops-amqp/oops_tools/ production/ 2012-05- 24/OOPS-69c1c68e3d26c854d347cf644722d534 canonical. com/python-oops-tools/bin/amqp2disk", line 55, in <module> scripts. amqp2disk. main() canonical. com/python-oops-tools/src/oopstools/ scripts/ amqp2disk. py", line 113, in main run_forever( ) canonical. com/python-oops-tools/eggs/oops_ amqp-0. 0.5-py2. 7.egg/oops_ amqp/receiver. py", line 85, in run_forever _run_forever( ) canonical. com/python-oops-tools/eggs/oops_ amqp-0. 0.5-py2. 7.egg/oops_ amqp/receiver. py", line 107, in _run_forever channel. wait() canonical. com/python-oops-tools/eggs/amqplib- 1.0.2-py2. 7.egg/amqplib/ client_ 0_8/abstract_ channel. py", line 97, in wait method( method_ sig, args, content) canonical. com/python-oops-tools/eggs/amqplib- 1.0.2-py2. 7.egg/amqplib/ client_ 0_8/abstract_ channel. py", line 117, in dispatch_method canonical. com/python-oops-tools/eggs/amqplib- 1.0.2-py2. 7.egg/amqplib/ client_ 0_8/channel. py", line 2060, in _basic_deliver canonical. com/python-oops-tools/eggs/oops_ amqp-0. 0.5-py2. 7.egg/oops_ amqp/receiver. py", line 70, in handle_report config. publish( report) canonical. com/python-oops-tools/eggs/oops-0.0.10-py2. 7.egg/oops/ config. py", line 189, in publish canonical. com/python-oops-tools/src/oopstools/ scripts/ amqp2disk. py", line 130, in db_publisher oops_to_ model_oops( report, oops_path) canonical. com/python-oops-tools/src/oopstools/ oops/models. py", line 483, in parsed_ oops_to_ model_oops canonical. com/python-oops-tools/parts/ django/ django/ db/models/ base.py" , line 460, in save save_base( using=using, force_insert= force_insert, force_update= force_update) canonical. com/python-oops-tools/parts/ django/ django/ db/models/ base.py" , line 553, in save_base _insert( values, return_ id=update_ pk, using=using) canonical. com/python-oops-tools/parts/ django/ django/ db/models/ manager. py", line 195, in _insert query(self. model, values, **kwargs) canonical. com/python-oops-tools/parts/ django/ django/ db/models/ query.py" , line 1436, in insert_query compiler( using=using) .execute_ sql(return_ id) canonical. com/python-oops-tools/parts/ django/ django/ db/models/ sql/compiler. py", line 791, in execute_sql Compiler, self).execute_ sql(None) canonical. com/python-oops-tools/parts/ django/ django/ db/models/ sql/compiler. py", line 735, in execute_sql execute( sql, params) canonical. com/python-oops-tools/parts/ django/ django/ db/backends/ postgresql_ psycopg2/ base.py" , line 44, in execute execute( query, args) db.utils. DatabaseError: value too long for type character varying(500)
Traceback (most recent call last):
File "/srv/oops.
oopstools.
File "/srv/oops.
receiver.
File "/srv/oops.
self.
File "/srv/oops.
self.
File "/srv/oops.
return self.dispatch_
File "/srv/oops.
return amqp_method(self, args, content)
File "/srv/oops.
func(msg)
File "/srv/oops.
self.
File "/srv/oops.
id = publisher(report)
File "/srv/oops.
res = parsed_
File "/srv/oops.
res.save()
File "/srv/oops.
self.
File "/srv/oops.
result = manager.
File "/srv/oops.
return insert_
File "/srv/oops.
return query.get_
File "/srv/oops.
cursor = super(SQLInsert
File "/srv/oops.
cursor.
File "/srv/oops.
return self.cursor.
django.
Regards,
Haw