Project

General

Profile

Bug #1419

I/O operation on closed file when trying to submit translations in pootle

Added by Alexander Werner over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
-
Category:
Pootle
Target version:
Team - Pool
Start date:
Due date:
% Done:

0%

Estimated time:
Tags:
URL:

Description

[pid: 3799|app: 0|req: 8590/30957] ::ffff:178.27.94.242 () {48 vars in 1171 bytes} [Mon Aug 31 08:58:58 2015] GET /xhr/units/100480344/edit/ => generated 10274 bytes in 415 msecs (HTTP/1.1 200) 9 headers
in 305 bytes (1 switches on core 0)
Traceback (most recent call last):
  File "/var/www/sites/translations.documentfoundation.org/env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/var/www/sites/translations.documentfoundation.org/env/local/lib/python2.7/site-packages/newrelic-2.50.0.39/newrelic/hooks/framework_django.py", line 499, in wrapper
    return wrapped(*args, **kwargs)
  File "/var/www/sites/translations.documentfoundation.org/src/pootle/apps/pootle_misc/util.py", line 59, in wrapper
    return f(request, *args, **kwargs)
  File "/var/www/sites/translations.documentfoundation.org/src/pootle/apps/pootle_store/decorators.py", line 76, in decorated_f
    return f(request, unit, *args, **kwargs)
  File "/var/www/sites/translations.documentfoundation.org/src/pootle/apps/pootle_store/views.py", line 963, in suggest
    mt_similarity=form.cleaned_data['mt_similarity'],
  File "/var/www/sites/translations.documentfoundation.org/src/pootle/apps/pootle_store/models.py", line 1109, in add_suggestion
    sub.save()
  File "/var/www/sites/translations.documentfoundation.org/src/pootle/apps/pootle_statistics/models.py", line 294, in save
    ScoreLog.record_submission(submission=self)
  File "/var/www/sites/translations.documentfoundation.org/src/pootle/apps/pootle_statistics/models.py", line 432, in record_submission
    ScoreLog.objects.create(**score)
  File "/var/www/sites/translations.documentfoundation.org/env/local/lib/python2.7/site-packages/django/db/models/manager.py", line 92, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/var/www/sites/translations.documentfoundation.org/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 372, in create
    obj.save(force_insert=True, using=self.db)
  File "/var/www/sites/translations.documentfoundation.org/src/pootle/apps/pootle_statistics/models.py", line 444, in save
    self.log()
  File "/var/www/sites/translations.documentfoundation.org/src/pootle/apps/pootle_statistics/models.py", line 480, in log
    log("\t".join(params) % d)
  File "/var/www/sites/translations.documentfoundation.org/src/pootle/core/log.py", line 36, in log
    logger.info(message)
  File "/usr/lib/python2.7/logging/__init__.py", line 1148, in info
    self._log(INFO, msg, args, **kwargs)
  File "/usr/lib/python2.7/logging/__init__.py", line 1267, in _log
    self.handle(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 1277, in handle
    self.callHandlers(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 1317, in callHandlers
    hdlr.handle(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 748, in handle
    self.emit(record)
  File "/usr/lib/python2.7/logging/handlers.py", line 427, in emit
    self.stream.flush()
ValueError: I/O operation on closed file

History

#1 Updated by Alexander Werner over 2 years ago

Perhaps related during restart of pootle:

Traceback (most recent call last):
  File "/var/www/sites/translations.documentfoundation.org/src/pootle/wsgi.py", line 29, in <module>
    application = get_wsgi_application()
  File "/var/www/sites/translations.documentfoundation.org/env/local/lib/python2.7/site-packages/django/core/wsgi.py", line 14, in get_wsgi_application
    django.setup()
  File "/var/www/sites/translations.documentfoundation.org/env/local/lib/python2.7/site-packages/django/__init__.py", line 20, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/var/www/sites/translations.documentfoundation.org/env/local/lib/python2.7/site-packages/django/utils/log.py", line 87, in configure_logging
    logging_config_func(logging_settings)
  File "/usr/lib/python2.7/logging/config.py", line 777, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib/python2.7/logging/config.py", line 575, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'log_action': [Errno 13] Permission denied: '/var/www/sites/translations.documentfoundation.org/log/pootle-activity.log'

#2 Updated by Alexander Werner over 2 years ago

  • Status changed from New to Resolved

#4 Updated by Alexander Werner over 2 years ago

  • Status changed from Resolved to Closed

#5 Updated by Alexander Werner over 2 years ago

  • Target version set to Pool

Also available in: Atom PDF