New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: failed to write data #233
Comments
You will see that message when the HTTP client disconnects before all response data has been sent. It can occur normally if network connection dies (high chance for mobile users) or user navigates away from page before response comes. |
Can you upgrade mod_wsgi to latest version as the version you are using is quite old? As I said this is normal. There were changes in more recent mod_wsgi version to try and not be so noisey with the messages in certain cases. Also, are you using embedded mode or daemon mode of mod_wsgi? |
I just installed |
Do not use any system package for mod_wsgi, especially on Debian/Ubuntu based systems. They are usually hopelessly out of date and unsupported. Remove any system package for mod_wsgi and install using |
Ok I just done that in my virtual env for |
Do not
Then use the Apache command to enable the
|
I didn't say to put:
in the This is explained in section 'Connecting into Apache installation' of: which I linked to earlier. Read that again to get an explanation. |
I did read the docs, but got an error straight after
I got the error |
Do you have the virtual environment activated? What do you get for running |
Yes virtual env is active. The output of |
What do you get from running:
and:
Also run:
and in the interpreter do:
What is output? |
Run:
Keep running that until it says nothing to remove. Then run:
What is the output? Do you have the |
|
No. Are you using daemon mode of mod_wsgi as is recommended? And delegating each separate WSGI application to a different daemon process group? If you are, replace the
Then set If you are aren't using daemon mode, you should. Also look at: for how to set up virtual environments when using daemon mode. Post the actual configs you are using when have something so I don't have to guess. |
Are you checking the Apache error logs and system startup logs for Apache at all? Apache wouldn't even have started with the configuration you use but the logs should have told you why. For:
The:
can't be inside of the Also:
should be:
The So try again, and make sure you are checking Apache error logs and system startup logs for Apache if Apache is not restarting. Include the details here of any errors. |
I keep getting an
OSError: failed to write data
on my site. It seems my mysql data is not updating and deleting as it should be. But I cannot work out if this is to do with wsgi or the server. I have 3.5gb of RAM and it is hardly using 1gb. Here is my error log;Am I missing something?
The text was updated successfully, but these errors were encountered: