ERPNext gets stuck when clicking module-icons

Hi

I have 2 ERPNext systems running on two different droplets.
The one I use to “play” around to get to know ERPNext and the other is my actual system.

My “Play” system has been working fine until now.

This is what happens:
I log-on : fine
All modules are displayed : fine
I can select a module : fine
When I select an icon within a module it doesn’t do anything.

It does not freeze completely, but just does nothing.

THen -
When I exit the module and go back into the module and click the same icon, I get access.
And from there-on I can access the icon as normal.

The same happens with the other icons in that module-
first time I select it … nothing happens
go out of module and back again…
select that icon again and then it works.

In that way I have to go in and out of the module, repeating this procedure for each icon,
and then it works.

I am aware of the fact that first time access always is slower, but this is not just slow …
it does nothing … you can wait as long as you want.

Anyone got a pointer for me please?

Update

I have done a bit of data-capturing on the access.log of nginx.

(I changed the IP addresses and URL)

Here I click salary-structure ( within HR module )

X.Y.218.175 - - [03/Sep/2021:06:00:03 +0000] “GET /api/method/frappe.desk.form.load.getdoctype?doctype=Salary+Structure&with_parent=1&cached_timestamp=&_=1630648657266 HTTP/1.1” 200 10301 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

Here I click Payroll-entry within HR module

X.Y.218.175 - - [03/Sep/2021:06:01:46 +0000] “GET /api/method/frappe.desk.form.load.getdoctype?doctype=Payroll+Entry&with_parent=1&cached_timestamp=&_=1630648657267 HTTP/1.1” 200 5145 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

This is an automatic entry by the scheduler

X.Y.218.175 - - [03/Sep/2021:06:02:38 +0000] “POST /api/method/frappe.core.page.background_jobs.background_jobs.get_scheduler_status HTTP/1.1” 200 30 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

And then , without exiting HR module and going back like I explained above, I click
salary-structure again and it works correctly

X.Y.218.175 - - [03/Sep/2021:06:03:04 +0000] “POST /api/method/frappe.desk.listview.get_list_settings HTTP/1.1” 200 32 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

X.Y.218.175 - - [03/Sep/2021:06:03:05 +0000] “GET /api/method/frappe.model.db_query.get_list?fields=%5B%22name%22%2C%22filter_name%22%2C%22for_user%22%2C%22filters%22%5D&filters=%7B%22reference_doctype%22%3A%22Salary+Structure%22%7D&or_filters=%5B%5B%22for_user%22%2C%22%3D%22%2C%22Administrator%22%5D%2C%5B%22for_user%22%2C%22%3D%22%2C%22%22%5D%5D&doctype=List+Filter&limit=20&_=1630648657268 HTTP/1.1” 200 14 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

X.Y.218.175 - - [03/Sep/2021:06:03:05 +0000] “POST /api/method/frappe.desk.doctype.kanban_board.kanban_board.get_kanban_boards HTTP/1.1” 200 14 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

X.Y.218.175 - - [03/Sep/2021:06:03:05 +0000] “GET /api/method/frappe.model.db_query.get_list?filters=%7B%22reference_doctype%22%3A%22Salary+Structure%22%7D&doctype=Calendar+View&fields=%5B%22name%22%5D&limit=20&_=1630648657269 HTTP/1.1” 200 14 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

X.Y.218.175 - - [03/Sep/2021:06:03:05 +0000] “POST /api/method/frappe.desk.reportview.get HTTP/1.1” 200 244 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

X.Y.218.175 - - [03/Sep/2021:06:03:05 +0000] “POST /api/method/frappe.model.utils.user_settings.save HTTP/1.1” 200 32 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

X.Y.218.175 - - [03/Sep/2021:06:03:05 +0000] “POST /api/method/frappe.model.utils.user_settings.save HTTP/1.1” 200 76 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

X.Y.218.175 - - [03/Sep/2021:06:03:05 +0000] “GET /api/method/frappe.desk.reportview.get?doctype=Salary+Structure&filters=%5B%5D&fields=%5B%22count(+%60tabSalary+Structure%60.%60name%60)+AS+total_count%22%5D&_=1630648657270 HTTP/1.1” 200 51 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

X.Y.218.175 - - [03/Sep/2021:06:03:05 +0000] “GET /api/method/frappe.desk.reportview.get_sidebar_stats?stats=%5B%22_user_tags%22%5D&doctype=Salary+Structure&filters=%5B%5D&_=1630648657271 HTTP/1.1” 200 52 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

X.Y.218.175 - - [03/Sep/2021:06:03:06 +0000] “POST /api/method/frappe.desk.reportview.get HTTP/1.1” 200 244 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

X.Y.218.175 - - [03/Sep/2021:06:03:06 +0000] “POST /api/method/frappe.model.utils.user_settings.save HTTP/1.1” 200 95 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

X.Y.218.175 - - [03/Sep/2021:06:03:06 +0000] “GET /api/method/frappe.desk.reportview.get?doctype=Salary+Structure&filters=%5B%5D&fields=%5B%22count(+%60tabSalary+Structure%60.%60name%60)+AS+total_count%22%5D&_=1630648657272 HTTP/1.1” 200 51 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

X.Y.218.175 - - [03/Sep/2021:06:03:06 +0000] “GET /api/method/frappe.desk.reportview.get_sidebar_stats?stats=%5B%22_user_tags%22%5D&doctype=Salary+Structure&filters=%5B%5D&_=1630648657273 HTTP/1.1” 200 52 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

X.Y.218.175 - - [03/Sep/2021:06:03:14 +0000] “POST /api/method/frappe.deferred_insert.deferred_insert HTTP/1.1” 200 2 “http://dummy-access.co.za/desk” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36” “-”

Update

I have been doing some checking.

This is not an ERPNext issue. It is my browser.

I noticed that , if I access my site from my Rapsberry PI browser I did not notice any of the symptoms I saw earlier. Thats when I thought of the browser cashing that may be the problem.

So I went back to the problem-browser ( Chrome ) and cleared the cache. It still did not seem
to clear the problem. then I logged out and back in again and on the home page with all the modules I right-clicked and selected “Reload”.

Problem solved.