Closed Bug 669965 Opened 13 years ago Closed 13 years ago

Fixing 500 Internal Error when using ElasticSearch for search

Categories

(Socorro :: General, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: adrian, Assigned: adrian)

References

Details

(Whiteboard: [fuzzer])

Attachments

(2 files, 1 obsolete file)

As for bug 665251, Powerfuzzer found some 500 errors when using ElasticSearch for the search in the middleware. Todo: * Re-run powerfuzzer on the refactored code (see bug 669961 ) * Attach here the result * Send patches * Run tests with QA to confirm ES is ready to be turned on in prod
Assignee: nobody → adrian
Blocks: 651279
Problem know, to be fixed soon.
This is now fixed by another bug, right?
Not yet, it still has to be r+ed, pushed on prod and tested. But yes, the fix is part of the patch you can find on bug 669961.
Fixed in commit r3275, by the patch on bug 669961. To be QAed.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
I'm not sure if what I'm seeing is due to the patch not having landed on dev yet but I'm still seeing the 500s: https://crash-stats-dev.allizom.org/query/query?build_id=on&do_query=1&query_search=<script>var+pf_687474703a2f2f616761756465626572742e6b68616e2e6d6f7a696c6c612e6f72672f71756572792f7175657279_71756572795f736561726368=new+Boolean();</script>&hang_type=hang&query_type=on&product=on&process_type=plugin&platform=on&reason=on&version=on&range_unit=on&date=07/07/2011+16:21:00&query=Find&range_value=1 https://crash-stats-dev.allizom.org/query/query?build_id=on&do_query=1&query_search=<script>var+pf_687474703a2f2f616761756465626572742e6b68616e2e6d6f7a696c6c612e6f72672f71756572792f7175657279_71756572795f736561726368=new+Boolean();</script>&hang_type=hang&query_type=on&product=on&process_type=plugin&platform=on&reason=on&version=on&range_unit=on&date=07/07/2011+16:21:00&query=on&range_value=1 https://crash-stats-dev.allizom.org/query/query?build_id=on&do_query=1&query_search=<script>var+pf_687474703a2f2f616761756465626572742e6b68616e2e6d6f7a696c6c612e6f72672f71756572792f7175657279_71756572795f736561726368=new+Boolean();</script>&hang_type=hang&query_type=on&product=on&process_type=plugin&platform=on&reason=on&version=on&range_unit=on&date=07/07/2011&query=on&range_value=1 https://crash-stats-dev.allizom.org/query/query?build_id=on&do_query=1&query_search=<script>var+pf_687474703a2f2f616761756465626572742e6b68616e2e6d6f7a696c6c612e6f72672f71756572792f7175657279_71756572795f736561726368=new+Boolean();</script>&hang_type=hang&query_type=on&product=on&process_type=plugin&platform=on&reason=on&version=on&range_unit=on&date=07/07/2011&query=on&range_value=14
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
dev is using Postgres, so it's weird we see 500 Errors here. I don't know if it's up-to-date though...
Status: REOPENED → ASSIGNED
Target Milestone: --- → 2.1
Version: 2.1 → Trunk
(In reply to comment #6) > dev is using Postgres, so it's weird we see 500 Errors here. I don't know if > it's up-to-date though... -dev pulls trunk automatically, so unless that's not working it should always be up-to-date.
Waiting for dev to be able to access the ES instance, and then it should be ready for testing. Btw dev was up-to-date but not the config, which caused the 500 problem.
(In reply to comment #8) > Waiting for dev to be able to access the ES instance, and then it should be > ready for testing. Btw dev was up-to-date but not the config, which caused > the 500 problem. Are we still waiting on this? Is there a dependency we can link to, if so?
Depends on: 672992
dev should be ready for testing as soon as the build is finished. Previous Errors where due to bugs fixed in bug 669961.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
https://crash-stats-dev.allizom.org/query/query?build_id=on&do_query=1&query_search=signature&hang_type=hang&query_type=on&product=on&process_type=plugin&platform=on&reason=on&version=on&range_unit=on&date=07/26/2011+12:01:08&query=<script>var+pf_68747470733a2f2f63726173682d73746174732d6465762e616c6c697a6f6d2e6f72672f71756572792f7175657279_7175657279=new+Boolean();</script>&range_value=1 https://crash-stats-dev.allizom.org/query/query?build_id=on&do_query=1&query_search=signature&hang_type=hang&query_type=on&product=on&process_type=plugin&platform=on&reason=on&version=on&range_unit=on&date=07/26/2011+12:01:09&query=<script>var+pf_68747470733a2f2f63726173682d73746174732d6465762e616c6c697a6f6d2e6f72672f71756572792f7175657279_7175657279=new+Boolean();</script>&range_value=1 https://crash-stats-dev.allizom.org/query/query?build_id=on&do_query=1&query_search=signature&hang_type=hang&query_type=on&product=on&process_type=plugin&platform=on&reason=on&version=on&range_unit=on&date=07/26/2011&query=<script>var+pf_68747470733a2f2f63726173682d73746174732d6465762e616c6c697a6f6d2e6f72672f71756572792f7175657279_7175657279=new+Boolean();</script>&range_value=14 https://crash-stats-dev.allizom.org/query/query?build_id=on&do_query=1&query_search=signature&hang_type=hang&query_type=on&product=on&process_type=plugin&platform=on&reason=on&version=on&range_unit=on&date=07/26/2011&query=<script>var+pf_68747470733a2f2f63726173682d73746174732d6465762e616c6c697a6f6d2e6f72672f71756572792f7175657279_7175657279=new+Boolean();</script>&range_value=1 Adrian asked that I reopen and paste the above problematic URLs.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch Securing search_mode and dates parameters (obsolete) (deleted) — Splinter Review
* Securing the search_mode so it can only be one of the authorized values ; * Securing the date fields to make sure it's always a datetime.
Attachment #548540 - Flags: review?(lars)
Comment on attachment 548540 [details] [diff] [review] Securing search_mode and dates parameters instead of: if not authorized_modes.count(args["search_mode"]): args["search_mode"] = "default" how about: if args["search_mode"] not in authorized_modes: args["search_mod"] = "default" and drop the "pass" in the date exception handler.
Attachment #548540 - Flags: review?(lars) → review-
Attachment #548540 - Attachment is obsolete: true
Attachment #548545 - Flags: review?(lars)
Comment on attachment 548545 [details] [diff] [review] Securing search_mode and dates parameters we'll take up the "to be moved into a config file" comments at some later date.
Attachment #548545 - Flags: review?(lars) → review+
Fixed with commit r3304. Can be tested on dev.
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Verified FIXED; I spun off bug 674420 -- not sure in which milestone it should be.
Status: RESOLVED → VERIFIED
Component: Socorro → General
Product: Webtools → Socorro
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: