Closed Bug 656437 Opened 14 years ago Closed 14 years ago

[webifyme] POST request after completing the quiz is a 500

Categories

(Websites :: webifyme.org, defect)

defect
Not set
blocker

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: krupa.mozbugs, Assigned: krupa.mozbugs)

References

Details

(Whiteboard: [qa-blocker])

Attachments

(2 files)

steps to reproduce: 1. Complete the quiz at https://webifyme-dev.allizom.org/quiz/ 2. Add a name and check the option to add the collage to the gallery. Click 'Get my results' observed behavior: The collage loads but the POST request is 500 [13:25:20.784] POST https://webifyme-dev.allizom.org/collage/c5fa6c08254d/ [HTTP/1.1 500 INTERNAL SERVER ERROR 4105ms] PS: I didn't reopen bug 652968 since the collage actually loads and that bug was marked a blocker.
Whiteboard: [qa-blocker]
I'll look into this.
Assignee: nobody → adam
Seeing the same, and the error content starts like this: OSError at /collage/596b595da6a3/ [Errno 13] Permission denied: '/data/www/python/webifyme.org/webifyme/ff4/../static/collages/thumbs_gallery/59' Could this be a permissions problem? Maybe the app doesn't have write access to the directory it's trying to create the collage in? It works fine locally for me, so I'm guessing it is.
It's possible that Celery (the message queue) is either *not running or not running properly .. There is a POST at the end of the quiz which sends the dimensions of the collage - we can confirm that something is wrong with the message queue by looking at the gallery page: https://webifyme-dev.allizom.org/gallery/ None of the collages are being created. It's also possible that the data / images are out of sync - I see that the new fixtures have not been installed yet, so a good candidate.. Of course being able to access this machine directly would help a lot.
You need to grant the app write access to the following DIRs in order to resolve this... /data/www/python/webifyme.org/webifyme/static/collages/snapshots/ /data/www/python/webifyme.org/webifyme/static/collages/thumbs_featured/ /data/www/python/webifyme.org/webifyme/static/collages/thumbs_gallery/ Currently the app is throwing that 500 error because it does not have permission to create files and directories in those three directories.
Assignee: adam → williamr
Severity: normal → blocker
Depends on: 662939
Blocks: 663161
(In reply to comment #4) Adam can you verify this fixed the issue on webifyme-dev?
Attached image Fragmented obects
I'm still seeing the fragmented objects at the end of a quiz.
No, it's timing out for me. https://webifyme-dev.allizom.org/ right?
ozten, that's due to a different bug due to improperly set image sizes in the DB. You can reload fixtures to fix it, or run the set image sizes script ./manage.py set_image_sizes
(In reply to comment #9) Adam - please comment in Bug#663523 with the proper image size and any other details an ops person would need to fix this.
Assignee: williamr → adam
Verified. Works fine for me on webifyme-dev.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
I still see [21:27:58.010] POST https://webifyme-dev.allizom.org/en-US/collage/c415f57b28e5/ [HTTP/1.1 500 INTERNAL SERVER ERROR 1186ms] reopening
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: adam → jbresnik
Open web console when posting and you will see the error.
Not able to recreate this locally - theres was a ticket earlier about the collage image not being generate, might be related to that which was likely the result of the celery queue not set up properly - unfortunately,as in that case, I don't have access to the machine - could be an issue with the proxy too - assign back to cmore so it can be assigned to someone with access to the environment that its failing on
Assignee: jbresnik → chrismore.bugzilla
Krupa: I no longer see a 500 error on submit of a new collage when I have the web console open. I still see "b is null", but no error. Can you confirm and close?
Assignee: chrismore.bugzilla → krupa.mozbugs
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: