#23284: Amazon + Django each 12 hours appears that [Errno 5] Input/output error
---------------------------------+--------------------------------------
     Reporter:  guisoares2011    |                    Owner:  nobody
         Type:  Bug              |                   Status:  closed
    Component:  Uncategorized    |                  Version:  1.6
     Severity:  Normal           |               Resolution:  invalid
     Keywords:  ioerror, amazon  |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------
Description changed by timgraham:

Old description:

> I have problem in my application. When the application is started or
> restarted my code works 100% but after 6h and 12h appears strange error.
>
> That error only occurred in environment amazon.
>
>       File "/home/ubuntu/site/local/lib/python2.7/site-
> packages/dj_static.py", line 59, in __call__
>         return self.application(environ, start_response)
>       File "/home/ubuntu/site/local/lib/python2.7/site-
> packages/django/core/handlers/wsgi.py", line 206, in __call__
>         response = self.get_response(request)
>       File "/home/ubuntu/site/local/lib/python2.7/site-
> packages/django/core/handlers/base.py", line 114, in get_response
>         response = wrapped_callback(request, *callback_args,
> **callback_kwargs)
>       File "./main/decorators.py", line 12, in decorator
>         return function(*args, **kwargs)
>       File "./main/views.py", line 214, in get_nominals
>         qwt.report_trace(e, request)
>       File "./main/views.py", line 206, in get_nominals
>         credit=protocol_obj.get_credits(),
>       File "./Protocols/protocol.py", line 51, in get_credits
>         return self.request.management.get_credits(self.service.id,
> self.login)
>       File "./utils/Management.py", line 166, in get_credits
>         request = self.__create_request_my_api(Credits,
> 'find_active_credit', service_id, login)
>       File "./utils/Management.py", line 122, in __create_request_my_api
>         terminal_info = getattr(class_api, method_name)(**args)
>       File "./my_api/Credits.py", line 11, in find_active_credit
>         obj_response =
> credit.get_credit_from_response(self.send_request())
>       File "./my_api/to/Credit.py", line 17, in get_credit_from_response
>         print xml_response
>     IOError: [Errno 5] Input/output error
>

> When error ocurred i need restart server to fix but it return in some
> hours.
>
> **In settings.py**
>
> Debug = True
>
> **Obs:** Django 1.6
>

> Any idea how fix that?

New description:

 I have problem in my application. When the application is started or
 restarted my code works 100% but after 6h and 12h appears strange error.

 That error only occurred in environment amazon.
 {{{
       File "/home/ubuntu/site/local/lib/python2.7/site-
 packages/dj_static.py", line 59, in __call__
         return self.application(environ, start_response)
       File "/home/ubuntu/site/local/lib/python2.7/site-
 packages/django/core/handlers/wsgi.py", line 206, in __call__
         response = self.get_response(request)
       File "/home/ubuntu/site/local/lib/python2.7/site-
 packages/django/core/handlers/base.py", line 114, in get_response
         response = wrapped_callback(request, *callback_args,
 **callback_kwargs)
       File "./main/decorators.py", line 12, in decorator
         return function(*args, **kwargs)
       File "./main/views.py", line 214, in get_nominals
         qwt.report_trace(e, request)
       File "./main/views.py", line 206, in get_nominals
         credit=protocol_obj.get_credits(),
       File "./Protocols/protocol.py", line 51, in get_credits
         return self.request.management.get_credits(self.service.id,
 self.login)
       File "./utils/Management.py", line 166, in get_credits
         request = self.__create_request_my_api(Credits,
 'find_active_credit', service_id, login)
       File "./utils/Management.py", line 122, in __create_request_my_api
         terminal_info = getattr(class_api, method_name)(**args)
       File "./my_api/Credits.py", line 11, in find_active_credit
         obj_response =
 credit.get_credit_from_response(self.send_request())
       File "./my_api/to/Credit.py", line 17, in get_credit_from_response
         print xml_response
     IOError: [Errno 5] Input/output error
 }}}

 When error occurred i need restart server to fix but it return in some
 hours.

 **In settings.py**

 Debug = True

 **Obs:** Django 1.6


 Any idea how fix that?

--

--
Ticket URL: <https://code.djangoproject.com/ticket/23284#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/071.10b9d88f9b322a44b2f29974150f3e82%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to