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
After saving a thread: Completed 500 Internal Server Error #179
Comments
The thread http://pageonex.com/numeroteca/corrupcion-espana-septiembre-2013/ worked again after editing it an adding two more days. |
That suggest that |
@numeroteca are you still seeing this after my last commit, or is it behaving better now? |
The error message provided at c34ce04 makes the fail better when the composite image can not be generated However, waiting or reloading usually does not help. Everyday I add one day to the thread http://pageonex.com/numeroteca/corrupcion-espana-septiembre-2013/ and it always returns a "500 Internal Server Error", but it is not a Started GET "/numeroteca/corrupcion-espana-septiembre-2013/" for 188.78.132.93 at 2013-09-22 08:27:33 +0000
Processing by CodingController#display as HTML
Parameters: {"username"=>"numeroteca", "thread_name"=>"corrupcion-espana-septiembre-2013"}
Creating composites for 'corrupcion-espana-septiembre-2013' (199) at app/assets/images/threads/2/199/970px
determining row heights
creating background image grid After refreshing the page it woks again. Wondering if there a way to avoid this? |
Now I am seeing the same behavior with a new thread (8 newspaper, 3 days, 4 topics) http://pageonex.com/numeroteca/corrupcion-espana-octubre-2013/. It fails when creating the overlays iamges for the topics, this is the log Parameters: {"username"=>"numeroteca", "thread_name"=>"corrupcion-espana-octubre-2013"}
Creating composites for 'corrupcion-espana-octubre-2013' (246) at app/assets/images/threads/2/246/970px
determining row heights
creating background image grid
creating overlays for topics Sometimes it failed after one more step: I erased 2 of the topics, and left the thread whit 2 topics, and it worked again. I tested again an added more topics (up to 6) and it crashed again when Could it be something related to lack of memory? When I entered the server I saw the swap usage at 99%. Now is at 80%. |
I made a few more tests extending the days of the thread (days > 3 or 4), and it worked well. So I guess it might be related to handling too big images when threads are to short (days < 3). @rahulbot , @elplatt do you think it could be related to that? If that is the case, it might be that something with "adds max thumbnail width to composite" bd73c8c might be not working. To have a a better display view I am thinking we should also limit the height of the rows so we never have huge images in the display view. To make that we would need to modify the bar chart, as the images will no longer occupy the entire width, but only the left part. |
Since the previous mentioned thread is working again, I have replicated this issue in the development server http://dev.pageonex.com/numeroteca/test-few-papers/ |
Reproducing step by step the problems of a short thread (one or two days), @elplatt.
It returns 500 Internal Server Error after
|
I made a video showing how it goes to "500 internal server error" when editing a thread and adding one extra day, including logs and top: |
After adding more RAM to the server "500 internal server error" has not been seen again. |
I am getting this error "We're sorry, but something went wrong" after coding and saving a thread, or after editing a thread (see log bellow). It has happened before several times, but I haven't been able to reproduce it always in the same conditions.
I have seen this bug with the thread http://pageonex.com/numeroteca/corrupcion-espana-septiembre-2013/, and I've also seen the same behaviour at http://pageonex.com/albocoven/apagon/ (a one day thread).
Sometimes, after a while, it gets fixed and things work again.
This is the log:
Sometimes I just get 500 Internal Server Error. Is this a question of lack of RAM?
The text was updated successfully, but these errors were encountered: