openlearningtools / opencompetencies

A tool for organizing educational competencies.
MIT License
16 stars 3 forks source link

Server error on sa_summary_pdf #120

Closed ehmatthes closed 9 years ago

ehmatthes commented 9 years ago

Again! May be an issue with a cached urls.py being used by one of the gunicorn workers. I'm not sure I stopped all the gunicorn workers before restarting.

ehmatthes commented 9 years ago

Killed all gunicorn workers, restarted gunicorn, seems to be working again.

ehmatthes commented 9 years ago

This is creeping up again. In the logs, I'm getting the following error:

Internal Server Error: /sa_summary_pdf/2/
Traceback (most recent call last):
  File "/srv/projects/opencompetencies/venv/lib/python3.4/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/srv/projects/opencompetencies/competencies/views.py", line 82, in sa_summary_pdf
    print('Generating pdf of sa_summary...')
OSError: [Errno 5] Input/output error

I found this SO post, which might be relevant.

I'm going to try restarting gunicorn, see if that fixes the error. Then close the terminal in which I started gunicorn, and see if the fix is persistent.

ehmatthes commented 9 years ago

Closing in favor of the more specific #122.