cockpit-session-recording icon indicating copy to clipboard operation
cockpit-session-recording copied to clipboard

Error:Unable to retrieve tlog user from system

Open VincentFortuneDeng opened this issue 3 years ago • 4 comments

Hi I have installed tlog, sssd and do relevant configuration and them be tested, then install cockpit-session-recording, made relevant configuration, repeated attempts and still reported error:"Unable to retrieve tlog user from system"; then i read some source code but do not know the reason of the error, hope to get help.

OS ver

Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy

/etc/sssd/sssd.conf

\# chmod 600 /etc/sssd/sssd.conf
\# chown root:root /etc/sssd/sssd.conf

[sssd]
config_file_version = 2
domains = local
services = nss , pam
debug_level = 0x1310
[nss]
filter_groups = root
filter_users = root , vincent

[pam]

[domain/local]
id_provider = files

/etc/sssd/conf.d/sssd-session-recording.conf

[session_recording]
scope=all
users=root,vincent
groups=root

VincentFortuneDeng avatar Sep 06 '22 09:09 VincentFortuneDeng

Hi,

The error you mentioned occurs when the following command fails:

getent passwd tlog

Can you check if the tlog user was added? Can you validate your /etc/nsswitch.conf also?

justin-stephenson avatar Sep 06 '22 13:09 justin-stephenson

I ran into the same issue, but there is error while running sudo make install:

╭─ /tmp/cockpit-session-recording │ on main ▓▒░───────────────────░▒▓ ✔ │ took 1m 3s │ with yue@mdesk │ at 10:27:39 AM
╰─ sudo make install
mkdir -p dist/
po/po2json -m po/po.empty.js -o dist/po.de.js.js.tmp po/de.po
mv dist/po.de.js.js.tmp dist/po.de.js
NODE_ENV= node_modules/.bin/webpack
assets by chunk 6.7 MiB (name: index)
  asset index.js 5.98 MiB [compared for emit] (name: index) 1 related asset
  asset index.css 733 KiB [compared for emit] (name: index) 1 related asset
asset index.html 1.24 KiB [compared for emit] [from: src/index.html] [copied]
asset manifest.json 603 bytes [compared for emit] [from: src/manifest.json] [copied]
Entrypoint index 6.7 MiB (6.58 MiB) = index.css 733 KiB index.js 5.98 MiB 2 auxiliary assets
orphan modules 10.2 MiB (javascript) 706 KiB (css/mini-extract) 937 bytes (runtime) [orphan] 8211 modules
runtime modules 85.4 KiB 374 modules
built modules 4.48 MiB (javascript) 708 KiB (css/mini-extract) [built]
  javascript modules 4.48 MiB
    modules by path ./node_modules/ 4.37 MiB 1616 modules
    modules by path ./src/ 105 KiB 11 modules
    external "cockpit" 42 bytes [built] [code generated]
  css modules 708 KiB
    modules by path ./node_modules/@patternfly/react-styles/css/components/ 611 KiB 30 modules
    modules by path ./src/ 46 KiB 4 modules
    modules by path ./node_modules/@patternfly/react-styles/css/layouts/ 44.5 KiB 2 modules
    css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/xterm/lib/xterm.css 3.98 KiB [built] [code generated]
    css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./node_modules/@patternfly/react-styles/css/utilities/Accessibility/accessibility.css 2.68 KiB [built] [code generated]

ERROR in [eslint] Failed to load plugin 'n' declared in '.eslintrc.json » eslint-config-standard': Cannot find module 'eslint-plugin-n'
Require stack:
- /tmp/cockpit-session-recording/__placeholder__.js

webpack 5.75.0 compiled with 1 error in 31159 ms
make: *** [Makefile:71: dist/manifest.json] Error 1

I restarted cockpit service via sytemctl: sudo systemctl restart cockpit Then the issue is gone but it says:

No recordings found
No recordings matched the filter criteria.

And refuse to work image

For command getent passwd tlog: image

YueMiyuki avatar Jan 29 '23 02:01 YueMiyuki

I ran into the same issue, but there is error while running sudo make install:


ERROR in [eslint] Failed to load plugin 'n' declared in '.eslintrc.json » eslint-config-standard': Cannot find module 'eslint-plugin-n'
Require stack:
- /tmp/cockpit-session-recording/__placeholder__.js

webpack 5.75.0 compiled with 1 error in 31159 ms
make: *** [Makefile:71: dist/manifest.json] Error 1

Are the eslint plugins from package.json installed properly? What distribution are you using?


I restarted cockpit service via sytemctl: `sudo systemctl restart cockpit` Then the issue is gone but it says:

No recordings found No recordings matched the filter criteria.


And refuse to work ![image](https://user-images.githubusercontent.com/76854136/215301228-eb05e4f1-687b-4540-b47b-0b492cec5667.png)

What message/error do you see in the browser console log? I assume you have tlog recordings stored in the journal on this system where cockpit-session-recording is being used.

For command getent passwd tlog: image

justin-stephenson avatar Jan 30 '23 14:01 justin-stephenson

I ran into the same issue, but there is error while running sudo make install:


ERROR in [eslint] Failed to load plugin 'n' declared in '.eslintrc.json » eslint-config-standard': Cannot find module 'eslint-plugin-n'
Require stack:
- /tmp/cockpit-session-recording/__placeholder__.js

webpack 5.75.0 compiled with 1 error in 31159 ms
make: *** [Makefile:71: dist/manifest.json] Error 1

Are the eslint plugins from package.json installed properly? What distribution are you using?


I restarted cockpit service via sytemctl: `sudo systemctl restart cockpit` Then the issue is gone but it says:

No recordings found No recordings matched the filter criteria.


And refuse to work ![image](https://user-images.githubusercontent.com/76854136/215301228-eb05e4f1-687b-4540-b47b-0b492cec5667.png)

What message/error do you see in the browser console log? I assume you have tlog recordings stored in the journal on this system where cockpit-session-recording is being used.

For command getent passwd tlog: image

I just ran make && sudo make install, the docs never mentioned that i have you install eslint manually...

Using ubuntu server 22.04

YueMiyuki avatar Feb 04 '23 07:02 YueMiyuki