Project

General

Profile

Actions

Anomalie #2785

closed

ADD FILE (new features) : crash on validation

Added by Yann Le Jeune about 9 years ago. Updated about 9 years ago.

Status:
Résolu
Priority:
Urgent
Assignee:
Category:
-
Target version:
Start date:
04 September 2015
Due date:
% Done:

0%

Estimated time:
Élément(s):
Difficulté:

Description

DatabaseError at /file_creation/done

ERREUR: la transaction est annulée, les commandes sont ignorées jusqu'à la fin du bloc

de la transaction

Request Method: GET

Request URL: http://ishtar-test.proxience.net/file_creation/done

Django Version: 1.4.5

Exception Type: DatabaseError

Exception Value:

ERREUR: la transaction est annulée, les commandes sont ignorées jusqu'à la fin du bloc

de la transaction

Exception Location: /usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py in execute, line 52

Python Executable: /usr/bin/uwsgi-core

Python Version: 2.7.3

Python Path:

['/srv/ishtar-ctest/ishtar/',

'.',

'',

'/usr/lib/python2.7',

'/usr/lib/python2.7/plat-linux2',

'/usr/lib/python2.7/lib-tk',

'/usr/lib/python2.7/lib-old',

'/usr/lib/python2.7/lib-dynload',

'/usr/local/lib/python2.7/dist-packages',

'/usr/lib/python2.7/dist-packages',

'/usr/lib/python2.7/dist-packages/PIL',

'/usr/lib/pymodules/python2.7']

Server time: ven, 4 Sep 2015 09:01:34 +0200

Traceback Switch to copy-and-paste view

/usr/lib/python2.7/dist-packages/django/core/handlers/base.py in get_response


                    response = middleware_method(request, response)


     ...

▶ Local vars

/usr/lib/python2.7/dist-packages/django/contrib/sessions/middleware.py in process_response


                        request.session.save()


     ...

▶ Local vars

/usr/lib/python2.7/dist-packages/django/contrib/sessions/backends/db.py in save


            sid = transaction.savepoint(using=using)


     ...

▶ Local vars

/usr/lib/python2.7/dist-packages/django/db/transaction.py in savepoint


        return connection.savepoint()


     ...

▶ Local vars

/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py in savepoint


            self._savepoint(sid)


     ...

▶ Local vars

/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py in _savepoint


            self.cursor().execute(self.ops.savepoint_create_sql(sid))


     ...

▶ Local vars

/usr/lib/python2.7/dist-packages/django/db/backends/util.py in execute


                return self.cursor.execute(sql, params)


     ...

▶ Local vars

/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py in execute


                return self.cursor.execute(query, args)


     ...

▶ Local vars

Request information

GET

No GET data

POST

No POST data

FILES

No FILES data

COOKIES

Variable Value

csrftoken

'yNCArW37gwjELcgCKyQDfnOU5hrfncft'

sessionid

'23716083a2f54903097f5748cdfdd495'

META

Variable Value

wsgi.multiprocess

True

HTTP_X_FORWARDED_SERVER

'ishtar-test.proxience.net'

HTTP_REFERER

'http://ishtar-test.proxience.net/file_creation/final-file_creation'

HTTP_X_FORWARDED_HOST

'ishtar-test.proxience.net'

uwsgi.version

'1.2.3-debian'

SCRIPT_NAME

u''

REQUEST_METHOD

'GET'

PATH_INFO

u'/file_creation/done'

SERVER_PROTOCOL

'HTTP/1.1'

QUERY_STRING

''

UWSGI_SCHEME

'http'

CONTENT_LENGTH

''

HTTP_USER_AGENT

'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.2.0'

HTTP_CONNECTION

'Keep-Alive'

HTTP_COOKIE

'csrftoken=yNCArW37gwjELcgCKyQDfnOU5hrfncft; sessionid=23716083a2f54903097f5748cdfdd495'

SERVER_NAME

'ishtar-test.proxience.net'

REMOTE_ADDR

'192.168.100.1'

HTTP_X_BLUECOAT_VIA

'0dbab5b78f36e1ff'

wsgi.url_scheme

'http'

HTTP_VIA

'1.1 localhost (squid/3.1.19)'

SERVER_PORT

'8080'

uwsgi.node

'vhagar'

DOCUMENT_ROOT

'/srv/ishtar-ctest/ishtar'

wsgi.input

HTTP_HOST

'ishtar-test.proxience.net'

wsgi.multithread

False

HTTP_CACHE_CONTROL

'max-age=259200, max-stale=0'

REQUEST_URI

'/file_creation/done'

HTTP_ACCEPT

'text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8'

wsgi.version

(1, 0)

HTTP_X_FORWARDED_FOR

'143.126.203.251'

wsgi.errors

REMOTE_PORT

'53905'

HTTP_ACCEPT_LANGUAGE

'fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3'

wsgi.run_once

False

CONTENT_TYPE

''

wsgi.file_wrapper

''

CSRF_COOKIE

'yNCArW37gwjELcgCKyQDfnOU5hrfncft'

HTTP_ACCEPT_ENCODING

'gzip, deflate'

Settings

Using settings module ctest.settings

Setting Value

YEAR_MONTH_FORMAT

'F Y'

SERVER_EMAIL

'root@localhost'

USE_L10N

True

ISHTAR_PERMIT_TYPES

{}

USE_THOUSAND_SEPARATOR

False

CSRF_COOKIE_SECURE

False

OP_PREFIX

'OP'

LANGUAGE_CODE

'fr-fr'

ROOT_URLCONF

'ctest.urls'

MANAGERS

()

ACCOUNT_ACTIVATION_DAYS

7

STATIC_ROOT

'//static/'

DEBUG_TOOLBAR

False

ALLOWED_HOSTS

['*']

ALT_ENCODING

'ISO-8859-15'

MESSAGE_STORAGE

'django.contrib.messages.storage.fallback.FallbackStorage'

WSGI_APPLICATION

None

EMAIL_SUBJECT_PREFIX

'[Django] '

SEND_BROKEN_LINK_EMAILS

False

URL_VALIDATOR_USER_AGENT

'Django/1.4.5 (https://www.djangoproject.com)'

STATICFILES_FINDERS

('django.contrib.staticfiles.finders.FileSystemFinder',

'django.contrib.staticfiles.finders.AppDirectoriesFinder')

SURFACE_UNIT_LABEL

u'm\xb2'

SESSION_COOKIE_DOMAIN

None

FILE_PREFIX

'SRA'

CSRF_COOKIE_NAME

'csrftoken'

ISHTAR_DPTS

[]

ADMIN_FOR

()

TIME_INPUT_FORMATS

('%H:%M:%S', '%H:%M')

DATABASES

{'default': {'ENGINE': 'django.contrib.gis.db.backends.postgis',

         'HOST': '192.168.100.205',

         'NAME': 'ishtar-ctest',

         'OPTIONS': {},

         'PASSWORD': u'********************',

         'PORT': '5432',

         'TEST_CHARSET': None,

         'TEST_COLLATION': None,

         'TEST_MIRROR': None,

         'TEST_NAME': None,

         'TIME_ZONE': 'Europe/Paris',

         'USER': 'ishtar-ctest'}}

STATIC_URL

'/static-2015-02-23/'

FILE_UPLOAD_PERMISSIONS

None

FILE_UPLOAD_HANDLERS

('django.core.files.uploadhandler.MemoryFileUploadHandler',

'django.core.files.uploadhandler.TemporaryFileUploadHandler')

DEFAULT_CONTENT_TYPE

'text/html'

PRE_APPS

['ishtar_pdl']

TEST_RUNNER

'django.test.simple.DjangoTestSuiteRunner'

JOINT

u' | '

APPEND_SLASH

True

FIRST_DAY_OF_WEEK

0

DATABASE_ROUTERS

[]

URL_PATH

''

SURFACE_UNIT

'square-metre'

STATICFILES_STORAGE

'django.contrib.staticfiles.storage.StaticFilesStorage'

CACHES

{'default': {'BACKEND': 'django.core.cache.backends.memcached.CacheClass',

         'LOCATION': '127.0.0.1:11211'}}

COUNTRY

'fr'

SESSION_COOKIE_PATH

'/'

USE_X_FORWARDED_HOST

False

MIDDLEWARE_CLASSES

['django.middleware.common.CommonMiddleware',

'django.contrib.sessions.middleware.SessionMiddleware',

'django.middleware.csrf.CsrfViewMiddleware',

'django.contrib.auth.middleware.AuthenticationMiddleware',

'django.contrib.messages.middleware.MessageMiddleware',

'django.middleware.locale.LocaleMiddleware']

USE_I18N

True

THOUSAND_SEPARATOR

','

SECRET_KEY

u'********************'

LANGUAGE_COOKIE_NAME

'django_language'

JQUERY_UI_URL

'/javascript/jquery-ui/'

DEFAULT_INDEX_TABLESPACE

''

CACHE_SMALLTIMEOUT

120

TRANSACTIONS_MANAGED

False

LOGGING_CONFIG

'django.utils.log.dictConfig'

SIGNING_BACKEND

'django.core.signing.TimestampSigner'

TEMPLATE_LOADERS

('django.template.loaders.filesystem.Loader',

'django.template.loaders.app_directories.Loader')

OOOK_DATE_FORMAT

u'%-d %B %Y'

SETTINGS_MODULE

'ctest.settings'

TEMPLATE_DEBUG

True

X_FRAME_OPTIONS

'SAMEORIGIN'

LOGFILE

'/var/log/django/ishtar.log'

FORCE_SCRIPT_NAME

None

CACHE_BACKEND

'memcached://127.0.0.1:11211/'

DEFAULT_CHARSET

'utf-8'

SESSION_COOKIE_SECURE

False

BASE_URL

'/'

CSRF_COOKIE_DOMAIN

None

FILE_CHARSET

'utf-8'

DEBUG

True

CACHE_TIMEOUT

3600

SESSION_FILE_PATH

None

DEFAULT_FILE_STORAGE

'django.core.files.storage.FileSystemStorage'

INSTALLED_APPS

['django.contrib.auth',

'django.contrib.admin',

'django.contrib.contenttypes',

'django.contrib.sessions',

'django.contrib.sites',

'django.contrib.gis',

'django.contrib.staticfiles',

'django.contrib.formtools',

'south',

'registration',

'ishtar_pdl',

'ishtar_common',

'archaeological_files',

'archaeological_operations',

'archaeological_files_pdl',

'archaeological_context_records',

'archaeological_warehouse',

'archaeological_finds']

LANGUAGES

(('fr', u'Fran\xe7ais'), ('en', u'English'))

COMMENTS_ALLOW_PROFANITIES

False

STATICFILES_DIRS

()

PREPEND_WWW

False

SECURE_PROXY_SSL_HEADER

None

PASSWORD_RESET_TIMEOUT_DAYS

u'********************'

SESSION_COOKIE_HTTPONLY

True

ISHTAR_DOC_TYPES

{u'undefined': u'Undefined'}

ISHTAR_OPE_TYPES

{}

MONTH_DAY_FORMAT

'F j'

LOGIN_URL

'/accounts/login/'

SESSION_EXPIRE_AT_BROWSER_CLOSE

False

DEFAULT_LANGUAGE

1

TIME_FORMAT

'P'

EXTRA_APPS

['archaeological_files_pdl',

'archaeological_context_records',

'archaeological_warehouse',

'archaeological_finds']

DATE_INPUT_FORMATS

('%Y-%m-%d',

'%m/%d/%Y',

'%m/%d/%y',

'%b %d %Y',

'%b %d, %Y',

'%d %b %Y',

'%d %b, %Y',

'%B %d %Y',

'%B %d, %Y',

'%d %B %Y',

'%d %B, %Y')

AUTHENTICATION_BACKENDS

('django.contrib.auth.backends.ModelBackend',

'ishtar_common.backend.ObjectPermBackend')

EMAIL_HOST_PASSWORD

u'********************'

AUTH_PROFILE_MODULE

'ishtar_common.IshtarUser'

CACHE_MIDDLEWARE_ALIAS

'default'

ROOT_PATH

'//'

SESSION_SAVE_EVERY_REQUEST

False

NUMBER_GROUPING

0

THUMB_MAX_SIZE

(300, 300)

ISHTAR_OPE_COL_FORMAT

None

SESSION_ENGINE

'django.contrib.sessions.backends.db'

CSRF_FAILURE_VIEW

'django.views.csrf.csrf_failure'

CSRF_COOKIE_PATH

'/'

LOGIN_REDIRECT_URL

'/'

LOGGING

{'disable_existing_loggers': False,

'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}},

'handlers': {'console': {'class': 'logging.StreamHandler', 'level': 'DEBUG'},

          'logfile': {'class': 'logging.handlers.WatchedFileHandler',

                      'filename': '/var/log/django/ishtar.log'},

          'mail_admins': {'class': 'django.utils.log.AdminEmailHandler',

                          'filters': ['require_debug_false'],

                          'include_html': True,

                          'level': 'ERROR'}},

'loggers': {'chimere': {'handlers': ['logfile'],

                     'level': 'WARNING',

                     'propogate': False},

         'django': {'handlers': ['logfile'],

                    'level': 'ERROR',

                    'propagate': False},

         'django.request': {'handlers': ['mail_admins'],

                            'level': 'ERROR',

                            'propagate': True}},

'version': 1}

IGNORABLE_404_URLS

()

LOCALE_PATHS

()

TEMPLATE_STRING_IF_INVALID

''

LOGOUT_URL

'/accounts/logout/'

EMAIL_USE_TLS

False

FIXTURE_DIRS

()

EMAIL_HOST

'localhost'

DATE_FORMAT

u'%-d %B %Y'

MEDIA_ROOT

'/srv/ishtar-ctest/ishtar/ctest/media/'

IMAGE_MAX_SIZE

(1024, 768)

DEFAULT_EXCEPTION_REPORTER_FILTER

'django.views.debug.SafeExceptionReporterFilter'

ADMINS

()

FORMAT_MODULE_PATH

None

DEFAULT_FROM_EMAIL

'webmaster@localhost'

MEDIA_URL

'/media/'

DATETIME_FORMAT

'N j, Y, P'

TEMPLATE_DIRS

('//templates',)

ENCODING

'windows-1252'

SITE_ID

1

DISALLOWED_USER_AGENTS

()

ALLOWED_INCLUDE_ROOTS

()

SRID

27572

DECIMAL_SEPARATOR

'.'

ISHTAR_PERIODS

{}

APP_NAME

u'Ishtar - test'

SHORT_DATE_FORMAT

'm/d/Y'

CACHE_MIDDLEWARE_KEY_PREFIX

u'********************'

TIME_ZONE

'Europe/Paris'

FILE_UPLOAD_MAX_MEMORY_SIZE

2621440

EMAIL_BACKEND

'django.core.mail.backends.smtp.EmailBackend'

DEFAULT_TABLESPACE

''

TEMPLATE_CONTEXT_PROCESSORS

('ishtar_common.context_processors.get_base_context',

'django.contrib.auth.context_processors.auth',

'django.core.context_processors.debug',

'django.core.context_processors.i18n',

'django.core.context_processors.media',

'django.core.context_processors.static')

ODT_TEMPLATE

'/srv/ishtar-ctest/ishtar/ishtar_common/static/template.odt'

SESSION_COOKIE_AGE

1209600

OOO_DATE_FORMAT

u'%-d %B %Y'

USE_ETAGS

False

LANGUAGES_BIDI

('he', 'ar', 'fa')

DEBUG_PROPAGATE_EXCEPTIONS

False

FILE_UPLOAD_TEMP_DIR

None

INTERNAL_IPS

('127.0.0.1',)

SESSION_COOKIE_NAME

'sessionid'

EMAIL_PORT

25

USE_TZ

False

SHORT_DATETIME_FORMAT

'm/d/Y P'

SQL_DEBUG

False

PASSWORD_HASHERS

u'********************'

ABSOLUTE_URL_OVERRIDES

{}

CACHE_MIDDLEWARE_SECONDS

600

DATETIME_INPUT_FORMATS

('%Y-%m-%d %H:%M:%S',

'%Y-%m-%d %H:%M:%S.%f',

'%Y-%m-%d %H:%M',

'%Y-%m-%d',

'%m/%d/%Y %H:%M:%S',

'%m/%d/%Y %H:%M:%S.%f',

'%m/%d/%Y %H:%M',

'%m/%d/%Y',

'%m/%d/%y %H:%M:%S',

'%m/%d/%y %H:%M:%S.%f',

'%m/%d/%y %H:%M',

'%m/%d/%y')

JQUERY_URL

'/javascript/jquery/jquery.js'

EMAIL_HOST_USER

''

PROFANITIES_LIST

u'********************'

Actions #1

Updated by Étienne Loks about 9 years ago

  • Status changed from Nouveau to Résolu
  • Description updated (diff)
Actions

Also available in: Atom PDF