Skip to main content

Posts

Showing posts from September, 2021

Firefox ServiceWorker Error: When hitting Odoo homepage in Firefox

In this article, I am writing about the error I faced only in the Firefox browser while accessing the home page of the website developed in Odoo. Issue: It was throwing this error to me in Firefox browser First I thought, it's due to some javascript error or something related to Odoo and after spending some time, I was convinced that it's a Firefox bug. Here are the reference links: https://github.com/mozilla/send/issues/1222 Now the question is, why does this occurs and how to avoid it. Actually, user settings for the client browser play a big role here. Please make sure that the  "Delete cookies and site data when Firefox is closed" option is not selected as shown in the screenshot. If you remove this tick, it will work immediately. But if you want this tick set, you can use "Manage Exceptions". Add your website and click on the "Allow"  button. Then it works, even with the "Delete cookies and site data when Firefox closes" option. T...

Elasticsearch Explained: Trying to create too many scroll contexts. Must be less than or equal to 500

Hello Everyone, today we are going to discuss the following  Error in Elasticsearch " Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting" Let's try to understand why this occurs and how we can solve it. When & Why this error trigger? As the title indicates, this error will come if you are using scroll API and especially multiple scrolls Scrolls are expensive to run concurrently and reserves the resources for that particular time. For each scroll ID, there is a unique point-in-time view of the current set of segments preserved for that scroll. This hangs on to files and related caches that would otherwise be removed by the constant segment rewriting that happens while indexing is active. This is why it is especially resource-intensive to do concurrently. Let's dive a little deeper. In order to use scrolling, the initial search request should specify the  sc...