Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error:Unable to retrieve tlog user from system #103

Open
VincentFortuneDeng opened this issue Sep 6, 2022 · 4 comments
Open

Error:Unable to retrieve tlog user from system #103

VincentFortuneDeng opened this issue Sep 6, 2022 · 4 comments

Comments

@VincentFortuneDeng
Copy link

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
@justin-stephenson
Copy link
Collaborator

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?

@YueMiyuki
Copy link

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

@justin-stephenson
Copy link
Collaborator

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

@YueMiyuki
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants