Käynnissä

Upgraded to Python2.7 from Python2.6 and running into "[url removed, login to view]: current transaction is aborted, commands ignored until end of transaction block"

Running into a bunch of silly errors after simple upgrade to Python 2.7 (from 2.6)

noted@Billing:~/logs$ python /home/noted/web/[url removed, login to view] cron bill_subscriptions live

Loading [url removed, login to view]

Traceback (most recent call last):

File "/home/noted/web/[url removed, login to view]", line 52, in

main()

File "/home/noted/web/[url removed, login to view]", line 34, in main

BillingEvent.objects.retry_notify_remote_all()

File "/home/noted/web/billing/[url removed, login to view]", line 806, in retry_notify_remote_all

for be in [url removed, login to view](notified_remote=False, num_tries_notified_remote__lt=BillingEvent.MAX_TRIES_NOTIFIED_REMOTE):

File "/usr/local/lib/python2.7/dist-packages/django/db/models/[url removed, login to view]", line 106, in _result_iter

self._fill_cache()

File "/usr/local/lib/python2.7/dist-packages/django/db/models/[url removed, login to view]", line 760, in _fill_cache

[url removed, login to view]([url removed, login to view]())

File "/usr/local/lib/python2.7/dist-packages/django/db/models/[url removed, login to view]", line 269, in iterator

for row in compiler.results_iter():

File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/[url removed, login to view]", line 672, in results_iter

for rows in self.execute_sql(MULTI):

File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/[url removed, login to view]", line 727, in execute_sql

[url removed, login to view](sql, params)

File "/usr/local/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/[url removed, login to view]", line 44, in execute

return [url removed, login to view](query, args)

[url removed, login to view]: current transaction is aborted, commands ignored until end of transaction block

I will give you SSH access to the server to reproduce the problems. You can simply attempt to run "python /home/noted/web/[url removed, login to view] cron bill_subscriptions live" -- you will bump into the error above. This is not an issue of upgrading or downgrading the database server (I already tried changing the database server to Postgres 8.4 and 9.1 with the same error).

Maybe running an older python-psycopg2 would help?

This should be a quick fix for a solid Python hacker. I only upgraded the server to use Python2.7 instead of an older version (I also installed the correct packages from [url removed, login to view] within the project).

All the best,

Alex

Taidot: Django, Python

Näytä lisää: django current transaction aborted, iterator, iterator end, python end, postgres commands, db transaction, billing home, sql commands, python django, python django project, django, db query, correct main, access django, ssh python, django database web, access database transaction, fix python, running error, sql query cursor, append line file, web query python, access append, correct transaction, 2013 query

About the Employer:
( 9 reviews ) Brooklyn, United States

Projektin tunnus: #4236264

2 freelanceria on tarjonnut keskimäärin 40 $ tähän työhön

technofreakz

I am a Linux Consultant

30 $ USD 1 päivässä
(0 arvostelua)
0.0
nglayi

Hi. I can help you

50 $ USD 2 päivässä
(0 arvostelua)
0.0