WebFaction
Community site: login faq
0
1

I am getting this error when running a long process with djcelery.

This happens when I check to see it an Item is already in the DB (using try: nuevo_release = Release.objects.get() ), the strange thing is I only get the error on the last elements.

File "/home/lasarten/webapps/heymusica/hey/musica/tasks.py", line 133, in AgregarRelease
    nuevo_release = Release.objects.get(artista = artista, slug=slugify(release.title))

  File "/home/lasarten/webapps/heymusica/lib/python2.7/django/db/models/manager.py", line 132, in get
    return self.get_query_set().get(*args, **kwargs)

  File "/home/lasarten/webapps/heymusica/lib/python2.7/django/db/models/query.py", line 344, in get
    num = len(clone)

  File "/home/lasarten/webapps/heymusica/lib/python2.7/django/db/models/query.py", line 82, in __len__
    self._result_cache = list(self.iterator())

  File "/home/lasarten/webapps/heymusica/lib/python2.7/django/db/models/query.py", line 273, in iterator
    for row in compiler.results_iter():

  File "/home/lasarten/webapps/heymusica/lib/python2.7/django/db/models/sql/compiler.py", line 680, in results_iter
    for rows in self.execute_sql(MULTI):

  File "/home/lasarten/webapps/heymusica/lib/python2.7/django/db/models/sql/compiler.py", line 735, in execute_sql
    cursor.execute(sql, params)

  File "/home/lasarten/webapps/heymusica/lib/python2.7/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
    return self.cursor.execute(query, args)

DatabaseError: current transaction is aborted, commands ignored until end of transaction block

asked 11 Apr '11, 15:00

vierja
323
accept rate: 0%


This usually occurs when there is an error in your query and you try to run an additional query before rolling back the transaction. You will need to find out what is generating the bad query.

If you would like for us to take a look, please open a support ticket.

permanent link

answered 11 Apr '11, 17:35

aaronh ♦♦
1.3k3
accept rate: 34%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×910
×109
×21

question asked: 11 Apr '11, 15:00

question was seen: 6,142 times

last updated: 11 Apr '11, 17:35

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM