Landscape UI Lag

Bug #2043035 reported by Ryan Stewart
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Landscape Server
Fix Committed
High
Mitch Burton

Bug Description

The UI lagging when trying to switch to different pages within the same tab (i.e. going from /administrators to /access-groups in the same browser tab). This occurs in Chrome, and Edge but could not be reproduced in Firefox. The page lags for about 50-60s before switching to the next tab.

Myself, I was able to reproduce in snapped Chromium 119.0.6045.105. I used a self-hosted Landscape instance deployed via the juju landscape-scalable bundle on a LXD cloud.

Log into the portal. Once logged in, start rapidly clicking different pages below the purple navbar (account, settings, administrators, etc). Somewhere between 2-50 clicks you should find that the page no longer loads quickly, but takes almost a minute to respond. Though I don't know if it's a correlation, this seems to work often on the access-groups tab.

Tags: ui
Ryan Stewart (stew3254)
description: updated
description: updated
Revision history for this message
Ryan Stewart (stew3254) wrote :

I forgot to mention, this is in the landscape 23.03+17-0landscape0

Revision history for this message
Alan Baghumian (alanbach) wrote :

I am running a Juju deployed Landscape dense 19.10 and was able to easily reproduce this over Organisation as well as the Computers tabs.

Just quickly click around different menu items and the UI stops responding for a period of time.

I tested this on a Chrome browser. Would be nice to get it fixed.

Best,
Alan

Revision history for this message
Heather Lemon (hypothetical-lemon) wrote (last edit ):

I've tried both juju versions 2.9 and 3.1 and still having troubles getting landscape-server deployed.
Here's my pastebin trying with 2.9 https://pastebin.ubuntu.com/p/ThB7CrXg6Y/

Here's my attempt with juju 3.1
ls-bug ststack-hlemon-controller-3 stsstack/stsstack 3.1.6 unsupported 17:29:31Z

App Version Status Scale Charm Channel Rev Exposed Message
haproxy error 1 haproxy stable 75 yes hook failed: "reverseproxy-relation-changed"
landscape-server waiting 1 landscape-server stable 87 no Waiting on relations: db

root@juju-0c1426-ls-bug-0:/var/lib/juju/agents/unit-haproxy-0/charm/hooks# ./reverseproxy-relation-changed
...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+...+............+++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.......+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+......+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.............+
............+..+....+.................+.......+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
Cannot write random bytes:
++++++++++++++++++++++++++++++++++++++*...+...+..+.+.........+.....+......+.......+...+..+.+.................+...+..........+..+...+.++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++
....+......+...+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+..........+........+.......+...+..+............+..........+...+..+.+.....+.......
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.....+...+.......+.....+...+...+.......+...+..+...+.+......+...+...........+...+.......+...+..+.+..+...+.
..........................+.+..+.......+......+..+.......+.....+.+.....+....+..+...+......+.+.........+.....+.+...+........+..........+.....+.......+...+...+.........+..+...
......+....+.....+...........................+.+........................+......+.....+............+...+....+...+.....+......+....+...+..+.+......+......+...+.....+......+...
...+.......+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
Cannot write random bytes:
40D70E08E67F0000:error:1200007A:random number generator:RAND_write_file:Not a regular file:../crypto/rand/randfile.c:190:Filename=/dev/urandom

I've tried both bundles of landscape-dense and landscape-scalable and deploying them each individually.

I'm not sure how people are able to reproduce this issue as I've had many problems deploying landscape itself.

description: updated
information type: Proprietary → Public
Revision history for this message
Heather Lemon (hypothetical-lemon) wrote :

performance capture on chrome 1 - use dev tools

Revision history for this message
Heather Lemon (hypothetical-lemon) wrote :

performance capture 2 chrome - use dev tools

Revision history for this message
Heather Lemon (hypothetical-lemon) wrote :

ajax timeout response

Revision history for this message
Heather Lemon (hypothetical-lemon) wrote :

bundle deployed with jammy, juju 3.2.4, on lxd openstack instance with landscape-dense

Revision history for this message
Kyle Metscher (kmetscher) wrote :

Bumping as this is becoming a frequent source of support tickets with customers replicating in Chrome, Edge, and Firefox with the hang consistently lasting about 50 seconds. Notably the issue seems to be centered around views into Computers and access groups, but customers have reported the problem on different pages.

Revision history for this message
Mitch Burton (mitchburton) wrote :

I put this at the top of my priorities. Let's see what I can do about it.

Changed in landscape:
assignee: nobody → Mitch Burton (mitchburton)
status: New → In Progress
importance: Undecided → High
Revision history for this message
Mitch Burton (mitchburton) wrote :

I've got an MR that seems to significantly improve things. Once merged we can consider back-porting.

Changed in landscape:
status: In Progress → Fix Committed
Revision history for this message
Nicolas Bock (nicolasbock) wrote :
Revision history for this message
Nicolas Bock (nicolasbock) wrote :
Revision history for this message
Mitch Burton (mitchburton) wrote :

Fix released for 23.10. Currently releasing for 23.03.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.