RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1694846 - long file cat seems to hang playback in the browser
Summary: long file cat seems to hang playback in the browser
Keywords:
Status: CLOSED DUPLICATE of bug 1793594
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cockpit-session-recording
Version: 8.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: jstephen
QA Contact: Ondrej Moriš
URL:
Whiteboard:
Depends On: 1751783
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-01 20:24 UTC by Scott Poore
Modified: 2020-05-26 18:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-26 18:31:11 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
journal export (10.29 MB, text/plain)
2019-04-01 20:28 UTC, Scott Poore
no flags Details

Description Scott Poore 2019-04-01 20:24:44 UTC
Description of problem:

If I cat a long file in a recorded session, playback hangs the browser tab.

Attempted in both Chrome and Firefox with the same results.  

Version-Release number of selected component (if applicable):
cockpit-session-recording-1-29.el8.noarch

How reproducible:
Unknown.

Steps to Reproduce:
1.  Install tlog and cockpit-session-recording
2.  Configure SSSD to enable session recording for all users
3.  login as local user and cat /usr/share/dict/linux.words
5.  exit
6.  Login to cockpit and select session from under Session Recording
7.  click play icon


Actual results:
playback hangs and I see an error about a web page slowing down the brower.


Expected results:

playback full ouput as normal.


Additional info:

Comment 1 Scott Poore 2019-04-01 20:25:33 UTC
FYI, this seems to affect other cases where there's a lot of output fast such as:

find /

Comment 2 Scott Poore 2019-04-01 20:28:57 UTC
Created attachment 1550743 [details]
journal export

Generated this journal export with:

journalctl -xel _EXE=/usr/bin/tlog-rec-session --since 14:55:20 --until 14:55:40 --lines=all -o export > /tmp/tlog-long_file_cat.export

You should be able to test with import like:

cat  /tmp/tlog-long_file_cat.export | /usr/lib/systemd/systemd-journal-remote -o /var/log/journal/remote/remote-192.168.122.80.journal -

Comment 3 Kirill Gliebov 2019-04-03 07:46:06 UTC
I just tested this on my side and I am definitely confirming the problem. 
My first idea about how to fix this is to replace old term.js with xterm.js. I already tried this and it worked faster without hanging browser, but resizing feature might be compromised in case of such replacement. Nevertheless, I believe this will be a right way to do, since Cockpit migrate to xterm.js already.

Comment 4 Kirill Gliebov 2019-04-03 07:49:20 UTC
One more thing. So for xterm test I used session recording on my host, but doing the same - cat /usr/share/dict/linux.words.
But xterm solution with xterm has no effect on the attached session in BZ. Could it be somehow related to some of the tlog params? It is definitely problem of cockpit-session-recording, but just would like to know.

Comment 5 Scott Poore 2019-05-09 19:09:50 UTC
No idea.  I could re-test on my system if you can create a scratch build with xterm.js.  See if it's still reproducible.

Comment 7 jstephen 2019-08-21 15:27:42 UTC
This is easily reproducible with any recording containing commands like 'find /' or 'cat /usr/share/dict/linux.words'

I replaced term.js with xterm.js upstream as we want to use the maintained xtermjs component anyway. However, it alleviates the problem described in this BZ only slightly. The playback no longer immediately hangs the page, however...
  
   1. The player page does still eventually hang
   2. Playback often produces slow, poor latency output
   3. Playback hangs and does not reproduce all logged output when the cockpit journal.journalctl method does not stream all entries to our calling code

For item #1 and #2, I will need to investigate these problems as performance issues more closely.

I created a ticket with the cockpit team for item #3, we are retrieving journal entries from the cockpit journal API: https://github.com/cockpit-project/cockpit/issues/12580

Comment 10 Ondrej Moriš 2020-05-05 12:22:29 UTC
Is this really still broken in cockpit-session-recording-3-1.el8, cockpit-211.3-1.el8? It looks like I cannot reproduce it anymore.

Comment 11 jstephen 2020-05-06 17:13:14 UTC
In my testing, a command like 'find /' is still not playing back the complete output. We made some changes to alleviate this issue on our side, but the fix on the cockpit side(1751783) is blocking us from completely resolving this problem.

Comment 12 jstephen 2020-05-26 18:31:11 UTC
This was fixed by the cockpit team in https://bugzilla.redhat.com/show_bug.cgi?id=1751783

*** This bug has been marked as a duplicate of bug 1793594 ***


Note You need to log in before you can comment on or make changes to this bug.